commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leandro Reis (JIRA)" <>
Subject [jira] [Created] (IO-471) Support for additional encodings needed in ReversedLinesFileReader
Date Mon, 09 Mar 2015 00:18:38 GMT
Leandro Reis created IO-471:

             Summary: Support for additional encodings needed in ReversedLinesFileReader
                 Key: IO-471
             Project: Commons IO
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 2.4
            Reporter: Leandro Reis

I¹m working on a product that uses Commons IO via Jackrabbit Oak. In the
process of testing the launch of such product on Japanese Windows 2012
Server R2, I came across the following exception:
"( Encoding windows-31j is not
supported yet (feel free to submit a patch))"

windows-31j is the IANA name for Windows code page 932 (Japanese), and
is returned by Charset.defaultCharset(), used in

This issue can be resolved by adding a check for
'windows-31j' to ReversedLinesFileReader.

The attached patch includes such addition, as well as those needed to support Chinese Simplified,
Chinese Traditional and Korean. 

A newline byte can never appear as part of a multi-byte character in any
of those encodings. 

- Japanese:
- Simplified Chinese:
- Korean:
- Traditional Chinese:

This message was sent by Atlassian JIRA

View raw message