summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2003-12-15 20:45:56 +0000
committerGrant Gayed <ggayed>2003-12-15 20:45:56 +0000
commit256792aebd90d2f8c53986080dfe51fb699810e0 (patch)
tree5879b19642299292e494d150f1277bdbd6c20078
parent8c39b34962cfded7e6172f21e46b551566c1e88f (diff)
downloadeclipse.platform.swt-256792aebd90d2f8c53986080dfe51fb699810e0.tar.gz
eclipse.platform.swt-256792aebd90d2f8c53986080dfe51fb699810e0.tar.xz
eclipse.platform.swt-256792aebd90d2f8c53986080dfe51fb699810e0.zip
45877v2135m
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/Converter.java8
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) {