Task #10251 (new)
Opened 11 years ago
Last modified 11 years ago
Bug: Non-standard character encodings in source files — at Version 1
Reported by: | spli | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Unscheduled |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | jburel, jamoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description (last modified by spli)
components/blitz/test/ome/services/blitz/test/utests/ManagedRepositoryITest.java in the develop branch contains non-ASCII characters, which aren't encoded in UTF-8, and it's unclear what the correct character encoding should be
Or look at the raw Github file and change the browser encoding to whatever:
https://raw.github.com/openmicroscopy/openmicroscopy/a4e2c07c6b69cef407239ce87bc6520141ec03e0/components/blitz/test/ome/services/blitz/test/utests/ManagedRepositoryITest.java
Apparently this should be String expected = "%björk%". Depending on operating system/environment/Java settings this may fail to compile (the test-compile target fails for me, but works for mtbcarroll).
We should either pick a single encoding (UTF-8?) or stick to plain ASCII and use \uXXXX escapes.
test-compile: Copying 6 files to /Users/simon/work/openmicroscopy.dev/components/blitz/target/test-classes Compiling 112 source files to /Users/simon/work/openmicroscopy.dev/components/blitz/target/test-classes /Users/simon/work/openmicroscopy.dev/components/blitz/test/ome/services/blitz/test/utests/ManagedRepositoryITest.java:405: error: unmappable character for encoding UTF8 String expected = "%bj?rk%"; ^ /Users/simon/work/openmicroscopy.dev/components/blitz/test/ome/services/blitz/test/utests/ManagedRepositoryITest.java:407: error: unmappable character for encoding UTF8 String actual = this.tmri.expandTemplate("%bj?rk%", curr); ^ 2 errors BUILD FAILED /Users/simon/work/openmicroscopy.dev/build.xml:315: The following error occurred while executing this line: /Users/simon/work/openmicroscopy.dev/build.xml:309: The following error occurred while executing this line: /Users/simon/work/openmicroscopy.dev/components/antlib/resources/global.xml:361: The following error occurred while executing this line: /Users/simon/work/openmicroscopy.dev/components/antlib/resources/lifecycle.xml:213: Compile failed; see the compiler error output for details.