Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -123,13 +123,8 @@ public Encoding getLocaleEncoding() {
String localeEncodingName;
try {
final int codeset;
if (Platform.getPlatform().getOS() == OS.SOLARIS) {
// Workaround until jnr-constants is released
codeset = 49;
} else {
assert LangInfo.CODESET.defined();
codeset = LangInfo.CODESET.intValue();
}
assert LangInfo.CODESET.defined();
codeset = LangInfo.CODESET.intValue();
localeEncodingName = context.getNativePlatform().getPosix().nl_langinfo(codeset);
}
catch (UnsupportedOperationException e) {

0 comments on commit 353623b

Please sign in to comment.