Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2006-07-26 15:03:23 +0000
committerSilenio Quarti2006-07-26 15:03:23 +0000
commit4743acf54d7792ad12c7bcfdc41f07c6eb072fdb (patch)
tree3827e3ccd185cf767ba53444bb23f61a03074868 /bundles
parent19f993eb34c2e907386e41cb8c6b720e6223aee2 (diff)
downloadeclipse.platform.swt-4743acf54d7792ad12c7bcfdc41f07c6eb072fdb.tar.gz
eclipse.platform.swt-4743acf54d7792ad12c7bcfdc41f07c6eb072fdb.tar.xz
eclipse.platform.swt-4743acf54d7792ad12c7bcfdc41f07c6eb072fdb.zip
137621 - License Agreement Does Not Display on HP-UX
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Font.java6
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/Converter.java1
2 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Font.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Font.java
index cf63dc82b3..43b2bbd718 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Font.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Font.java
@@ -221,6 +221,12 @@ static String getCodePage (int xDisplay, int fontList) {
if (OS.IsLinux) {
codePage = "ISO-" + codePage.substring (3, codePage.length ());
}
+ if (OS.IsHPUX) {
+ start = codePage.lastIndexOf('-');
+ if (start != -1) {
+ codePage = codePage.substring (0, start) + codePage.substring (start + 1, codePage.length ());
+ }
+ }
}
}
}
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 894353fd14..bcd6855be4 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
@@ -72,6 +72,7 @@ public final class Converter {
if (OS.IsLinux) CodePage = "ISO-8859-1";
else if (OS.IsAIX) CodePage = "ISO8859-1";
else if (OS.IsSunOS) CodePage = "8859-1";
+ else if (OS.IsHPUX) CodePage = "iso88591";
else CodePage = "iso8859_1";
}

Back to the top