Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF9DC10DE0 for ; Mon, 9 Mar 2015 00:20:38 +0000 (UTC) Received: (qmail 41480 invoked by uid 500); 9 Mar 2015 00:20:38 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 41378 invoked by uid 500); 9 Mar 2015 00:20:38 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 41365 invoked by uid 99); 9 Mar 2015 00:20:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 00:20:38 +0000 Date: Mon, 9 Mar 2015 00:20:38 +0000 (UTC) From: "Leandro Reis (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IO-471) Support for additional encodings needed in ReversedLinesFileReader MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IO-471?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:all-tabpanel ] Leandro Reis updated IO-471: ---------------------------- Attachment: commons-io-reversedlinesfilereader-ccjk-encodings.txt > Support for additional encodings needed in ReversedLinesFileReader > ------------------------------------------------------------------ > > Key: IO-471 > URL: https://issues.apache.org/jira/browse/IO-471 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 2.4 > Reporter: Leandro Reis > Fix For: 2.5 > > Attachments: commons-io-reversedlinesfilereader-ccjk-encodings.tx= t > > > I=C2=B9m 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: > "(java.io.UnsupportedEncodingException: 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 org.apache.commons.io.in= put.ReversedLinesFileReader [0]. > 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 sup= port Chinese Simplified, Chinese Traditional and Korean.=20 > A newline byte can never appear as part of a multi-byte character in any > of those encodings.=20 > - Japanese: http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP9= 32.TXT > - Simplified Chinese: http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/W= INDOWS/CP936.TXT > - Korean: http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949= .TXT > - Traditional Chinese: http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/= WINDOWS/CP950.TXT -- This message was sent by Atlassian JIRA (v6.3.4#6332)