You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2015/06/19 22:07:01 UTC

[jira] [Comment Edited] (CASSANDRA-9626) Make C* work in all locales

    [ https://issues.apache.org/jira/browse/CASSANDRA-9626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14593887#comment-14593887 ] 

Robert Stupp edited comment on CASSANDRA-9626 at 6/19/15 8:06 PM:
------------------------------------------------------------------

Attached patch against 2.2 sets the file-encoding to UTF-8 and locale to en_US.
I don't think that we ever need to take the machine's real locale or file encoding into account since C* daemon is not user facing. This may change if tools get localizations.


was (Author: snazy):
Attached patch sets the file-encoding to UTF-8 and locale to en_US.
I don't think that we ever need to take the machine's real locale or file encoding into account since C* daemon is not user facing. This may change if tools get localizations.

> Make C* work in all locales
> ---------------------------
>
>                 Key: CASSANDRA-9626
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9626
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>            Priority: Minor
>         Attachments: 9626.txt
>
>
> Default locale and default charset has immediate effect on how strings are encoded and handles - e.g. via {{String.toLowerCase()}} or {{new String(byte[])}}.
> Problems with different default locales + charsets don't become obvious for US and most European regional settings. But some regional OS settings will cause severe errors. Example: {{"BILLY".toLowerCase()}} returns {{bılly}} with Locale tr_TR (take a look at the second letter - it's an i without the dot).
> (ref: http://blog.thetaphi.de/2012/07/default-locales-default-charsets-and.html)
> It's not a problem I'm currently facing, but it could become a problem for some users. A quick fix could be to set default locale and charset in the start scripts - maybe that's all we need.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)