Skip to content

Commit

Permalink
[Truffle] No need for a workaround since jnr-constants was released.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Nov 22, 2016
1 parent 93226f5 commit 353623b
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -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) {
Expand Down

0 comments on commit 353623b

Please sign in to comment.