BytesToUnicode.java (getDefaultDecoder): Let default decoder use iconv.
* gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let default decoder use iconv. * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder): Let default encoder use iconv. * configure: Rebuilt. * configure.in: Check for nl_langinfo and <langinfo.h>. * java/lang/natSystem.cc (file_encoding): New function. (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible. From-SVN: r36306
This commit is contained in:
@@ -52,7 +52,14 @@ public abstract class BytesToUnicode extends IOConverter
|
||||
}
|
||||
catch (Throwable ex)
|
||||
{
|
||||
return new Input_8859_1();
|
||||
try
|
||||
{
|
||||
return new Input_iconv (System.getProperty ("file.encoding"));
|
||||
}
|
||||
catch (Throwable ex2)
|
||||
{
|
||||
return new Input_8859_1();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user