Skip to content

Draft: Set encoding to UTF-8

Vignesh Raman requested to merge wip/vignesh/fix-encoding-error into apertis/v2023pre

swt4-gtk fails to build with the below error,

[  308s] copy.translationfiles:
[  308s]     [javac] Compiling 436 source files to /usr/src/packages/BUILD/bundles/org.eclipse.swt/temp.folder/@dot.bin
[  309s]     [javac] /usr/src/packages/BUILD/bundles/org.eclipse.swt/temp.folder/@dot.src/org/eclipse/swt/layout/FillLayout.java:13: error: unmappable character (0xC3) for encoding US-ASCII
[  309s]     [javac]  *     Christoph L??ubrich - Bug 513185
[  309s]     [javac]                   ^
[  309s]     [javac] /usr/src/packages/BUILD/bundles/org.eclipse.swt/temp.folder/@dot.src/org/eclipse/swt/layout/FillLayout.java:13: error: unmappable character (0xA4) for encoding US-ASCII
[  309s]     [javac]  *     Christoph L??ubrich - Bug 513185
[  309s]     [javac]                    ^
[  310s]     [javac] 2 errors
[  310s]
[  310s] BUILD FAILED
[  310s] /usr/src/packages/BUILD/bundles/org.eclipse.swt/buildFragment.xml:88: The following error occurred while executing this line:
[  310s] /usr/src/packages/BUILD/bundles/org.eclipse.swt/buildFragment.xml:61: Compile failed; see the compiler error output for details.

The default encoding is US-ASCII. Some packages contain characters that cannot be displayed with the default encoding and thus will cause build failures. Set encoding to UTF-8 to fix this error.

Fixes: https://phabricator.apertis.org/T9344

Edited by Vignesh Raman

Merge request reports