diff options
author | Grant Gayed <ggayed> | 2003-12-15 20:45:56 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2003-12-15 20:45:56 +0000 |
commit | 256792aebd90d2f8c53986080dfe51fb699810e0 (patch) | |
tree | 5879b19642299292e494d150f1277bdbd6c20078 | |
parent | 8c39b34962cfded7e6172f21e46b551566c1e88f (diff) | |
download | eclipse.platform.swt-256792aebd90d2f8c53986080dfe51fb699810e0.tar.gz eclipse.platform.swt-256792aebd90d2f8c53986080dfe51fb699810e0.tar.xz eclipse.platform.swt-256792aebd90d2f8c53986080dfe51fb699810e0.zip |
45877v2135m
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/Converter.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/Converter.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/Converter.java index a44e223d4d..b5b162e045 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/Converter.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/Converter.java @@ -46,8 +46,12 @@ public final class Converter { static int BufferTimes2; static int BufferTimes4; - static { - Unicode = getAsciiBytes("UCS-2"); + static { + if (OS.IsHPUX) { + Unicode = getAsciiBytes("ucs2"); + } else { + Unicode = getAsciiBytes("UCS-2"); + } int length, item = OS.nl_langinfo (OS.CODESET); if (item != 0 && (length = OS.strlen (item)) > 0) { |