-
Notifications
You must be signed in to change notification settings - Fork 139
Devel GTK Non‐Ascii Characters
Simeon Andreev edited this page Feb 23, 2023
·
1 revision
One should avoid having non-ascii characters in the code base as it brings up warnings in compilitations. This can happen if you copy and paste from some webpage.
This can lead to compilation issues like:
/opt/public/hipp/homes/genie.cbi/workspace/cbi-swt-natives-linux- x86_64/eclipse.platform.swt.binaries/
bundles/org.eclipse.swt.gtk.linux.x86_64/temp.folder/@dot.src/org/eclipse/swt/
accessibility/AccessibleObject.java:46: warning: unmappable character for encoding ASCII
// ATK_ROLE_TABLE_ROW was introduced in ATK 2.1.0. See Bug??470629 for details.
^
SRC: <https://hudson.eclipse.org/cbi/job/cbi-swt-natives-linux-x86_64/3561/console>
To check if you have ascii characters in your code base, you can use a script like:
#!/bin/sh
cd "/home/lufimtse/git/eclipse.platform.swt"
grep -r --color='auto' -P -n "[\x80-\xFF]" --include=*.java
Example use:
# swtasciicheck
bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java:46: // ATK_ROLE_TABLE_ROW was introduced in ATK 2.1.0. See Bug 470629 for details