Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 5FD7E17A6B for ; Fri, 27 Feb 2015 17:20:07 +0000 (UTC) Received: (qmail 73544 invoked by uid 500); 27 Feb 2015 17:20:07 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 73498 invoked by uid 500); 27 Feb 2015 17:20:07 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 73486 invoked by uid 99); 27 Feb 2015 17:20:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2015 17:20:07 +0000 Date: Fri, 27 Feb 2015 17:20:07 +0000 (UTC) From: "Tsuyoshi Ozawa (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-11602) Fix toUpperCase/toLowerCase to use Locale.ENGLISH MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-11602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14340400#comment-14340400 ] Tsuyoshi Ozawa commented on HADOOP-11602: ----------------------------------------- {code} + contentType = (contentType != null) ? StringUtils.toLowerCase(contentType) {code} This line looks just 80 characters. Please correct me if I'm wrong. > Fix toUpperCase/toLowerCase to use Locale.ENGLISH > ------------------------------------------------- > > Key: HADOOP-11602 > URL: https://issues.apache.org/jira/browse/HADOOP-11602 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 2.6.0 > Reporter: Tsuyoshi Ozawa > Assignee: Tsuyoshi Ozawa > Attachments: HADOOP-11602-001.patch, HADOOP-11602-002.patch, HADOOP-11602-003.patch, HADOOP-11602-branch-2.001.patch, HADOOP-11602-branch-2.002.patch > > > String#toLowerCase()/toUpperCase() without a locale argument can occur unexpected behavior based on the locale. It's written in [Javadoc|http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#toLowerCase()]: > {quote} > For instance, "TITLE".toLowerCase() in a Turkish locale returns "t\u0131tle", where '\u0131' is the LATIN SMALL LETTER DOTLESS I character > {quote} > This issue is derived from HADOOP-10101. -- This message was sent by Atlassian JIRA (v6.3.4#6332)