<property name="jdk.version.class" value="1.5" description="JDK version of generated class files"/>
<property name="compile.debug" value="true"/>
+ <!-- issue warnings if source code contains unmappable characters for encoding ASCII -->
+ <property name="java.source.encoding" value="ASCII"/>
+
<!--
JVM system properties for running tests,
user.language and user.country are required as we have locale-sensitive formatters
destdir="${main.output.dir}"
srcdir="${main.src}"
debug="${compile.debug}"
+ encoding="${java.source.encoding}"
fork="yes">
<classpath refid="main.classpath"/>
</javac>
destdir="${main.output.test.dir}"
srcdir="${main.src.test}"
debug="${compile.debug}"
+ encoding="${java.source.encoding}"
fork="yes">
<classpath>
<path refid="main.classpath"/>
destdir="${scratchpad.output.dir}"
srcdir="${scratchpad.src}"
debug="${compile.debug}"
+ encoding="${java.source.encoding}"
fork="yes">
<classpath refid="scratchpad.classpath"/>
</javac>
destdir="${scratchpad.output.test.dir}"
srcdir="${scratchpad.src.test}"
debug="${compile.debug}"
+ encoding="${java.source.encoding}"
fork="yes">
<classpath>
<path refid="scratchpad.classpath"/>
destdir="${contrib.output.dir}"
srcdir="${contrib.src}"
debug="${compile.debug}"
+ encoding="${java.source.encoding}"
fork="yes">
<classpath refid="contrib.classpath"/>
</javac>
destdir="${contrib.output.test.dir}"
srcdir="${contrib.src.test}"
debug="${compile.debug}"
+ encoding="${java.source.encoding}"
fork="yes">
<classpath>
<path refid="contrib.classpath"/>
destdir="${examples.output.dir}"
srcdir="${examples.src}"
debug="${compile.debug}"
+ encoding="${java.source.encoding}"
fork="yes">
<classpath>
<path refid="ooxml.classpath"/>
source="${jdk.version.source}"
destdir="${ooxml.output.dir}"
srcdir="${ooxml.src}"
+ encoding="${java.source.encoding}"
debug="${compile.debug}">
<classpath refid="ooxml.classpath"/>
</javac>
destdir="${ooxml.output.test.dir}"
srcdir="${ooxml.src.test}"
debug="${compile.debug}"
+ encoding="${java.source.encoding}"
fork="yes">
<classpath>
<path refid="ooxml.classpath"/>
<!-- Compile -->
<javac target="${jdk.version.class}" source="${jdk.version.source}"
failonerror="true" destdir="${main.output.dir}" debug="on" fork="yes"
- srcdir="${main.output.dir}"/>
+ srcdir="${main.output.dir}"
+ encoding="${java.source.encoding}">
+ </javac>
<!-- Tidy up -->
<delete file="${version.java}"/>
</target>
assertEquals("10.5", f.formatCellValue(sheet.getRow(11).getCell(1)));
// text isn't quite the format rule...
- assertEquals("£nn.nn", sheet.getRow(12).getCell(0).getStringCellValue());
- assertEquals("\"£\"#,##0.00", sheet.getRow(12).getCell(1).getCellStyle().getDataFormatString());
- assertEquals("£10.52", f.formatCellValue(sheet.getRow(12).getCell(1)));
+ assertEquals("\u00a3nn.nn", sheet.getRow(12).getCell(0).getStringCellValue());
+ assertEquals("\"\u00a3\"#,##0.00", sheet.getRow(12).getCell(1).getCellStyle().getDataFormatString());
+ assertEquals("\u00a310.52", f.formatCellValue(sheet.getRow(12).getCell(1)));
}
private static void log(String msg) {