summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2003-08-08 21:17:06 +0000
committerGrant Gayed <ggayed>2003-08-08 21:17:06 +0000
commit38e23d067c681e2f6d4eedd990f7acb4e0416bd6 (patch)
tree0ee26c106d73831d3ca4c01942a69f934387f0f6 /bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java
parent56124a7d872e77705ed209a0fbc3fb11ebde70aa (diff)
downloadeclipse.platform.swt-38e23d067c681e2f6d4eedd990f7acb4e0416bd6.tar.gz
eclipse.platform.swt-38e23d067c681e2f6d4eedd990f7acb4e0416bd6.tar.xz
eclipse.platform.swt-38e23d067c681e2f6d4eedd990f7acb4e0416bd6.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java
index eda79fd609..7e5128e48f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java
@@ -36,8 +36,8 @@ public class OS {
IsAIX = isAIX; IsSunOS = isSunOS; IsLinux = isLinux; IsHPUX = isHPUX;
IsDBLocale = OS.MB_CUR_MAX () != 1;
}
- public static final int CODESET = OS.IsLinux ? 14 : 49;
- public static final int LC_CTYPE = OS.IsAIX ? 1 : 0;
+ public static final int CODESET = CODESET ();
+ public static final int LC_CTYPE = LC_CTYPE ();
static final int RESOURCE_LENGTH = 1024 * 3;
static final int RESOURCE_START = OS.XtMalloc (RESOURCE_LENGTH);
@@ -528,9 +528,11 @@ public class OS {
/** Natives */
public static final synchronized native int Call(int proc, int arg1, int arg2);
public static final synchronized native int ConnectionNumber(int display);
+public static final native int CODESET();
public static final native boolean FD_ISSET(int fd, byte[] fd_set);
public static final native void FD_SET(int fd, byte[] fd_set);
public static final native void FD_ZERO(byte[] fd_set);
+public static final native int LC_CTYPE();
public static final native int MB_CUR_MAX();
public static final synchronized native int overrideShellWidgetClass();
public static final synchronized native int shellWidgetClass();