Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12897

Re: Portable locale usage

Date 2011-09-07 15:15 +0200
From Thomas Jollans <t@jollybox.de>
Subject Re: Portable locale usage
References <e4299b1f-c855-4bc9-9e61-3006172410dc@l28g2000yqh.googlegroups.com> <mailman.796.1315307774.27778.python-list@python.org> <6abee826-23f3-4d5e-948e-f2a436bf0ac0@t3g2000vbe.googlegroups.com> <mailman.804.1315324373.27778.python-list@python.org> <2ecebe91-9d4d-4ce9-8e0a-2efbaf026273@l4g2000vbv.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.834.1315401312.27778.python-list@python.org> (permalink)

Show all headers | View raw


On 07/09/11 12:39, ssegvic wrote:
> On 6 ruj, 17:53, Thomas Jollans <t...@jollybox.de> wrote:
>> On 06/09/11 16:46, ssegvic wrote:
>>
>>> For the moment, I only wish to properly sort a Croatian text file
>>> both on Windows and Linux (I am a cautious guy, I like reachable
>>> goals).
>>> When the locale is properly set, sorting works like a charm
>>> with mylist.sort(key=locale.strxfrm).
>>
>> The problem with that is of course that a Croatian locale has to be
>> installed. Many Linux systems don't have locales that aren't used.
> 
> It appears we did not understand each other completely.

Yes we did. I was just pointing out that your code wouldn't be portable
to systems that don't have that specific locale.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Portable locale usage ssegvic <sinisa.segvic@fer.hr> - 2011-09-06 02:59 -0700
  Re: Portable locale usage Thomas Jollans <t@jollybox.de> - 2011-09-06 13:16 +0200
    Re: Portable locale usage ssegvic <sinisa.segvic@fer.hr> - 2011-09-06 07:46 -0700
      Re: Portable locale usage Thomas Jollans <t@jollybox.de> - 2011-09-06 17:53 +0200
        Re: Portable locale usage ssegvic <sinisa.segvic@fer.hr> - 2011-09-07 03:39 -0700
          Re: Portable locale usage Thomas Jollans <t@jollybox.de> - 2011-09-07 15:15 +0200
        Re: Portable locale usage ssegvic <sinisa.segvic@fer.hr> - 2011-09-07 04:17 -0700
    Re: Portable locale usage garabik-news-2005-05@kassiopeia.juls.savba.sk - 2011-09-06 20:58 +0000
      Re: Portable locale usage ssegvic <sinisa.segvic@fer.hr> - 2011-09-07 04:02 -0700
  Re: Portable locale usage Vlastimil Brom <vlastimil.brom@gmail.com> - 2011-09-06 15:13 +0200
    Re: Portable locale usage ssegvic <sinisa.segvic@fer.hr> - 2011-09-06 08:31 -0700

csiph-web