Article View: pl.comp.lang.python
Article #28500Re: [3.3.3linux] 'ฤ' < 'g' (False)
From: marrgol
Date: Mon, 31 Mar 2014 22:15
Date: Mon, 31 Mar 2014 22:15
30 lines
1385 bytes
1385 bytes
On 2014-03-31 18:12, noname wrote:
>
> locale.getlocale()
> ('pl_PL','UTF-8')
> 'c' < 'g'
> True
> 'd' < 'g'
> True
> 'ฤ' < 'g'
> False
>
> locale.setlocale(locale.LC_COLLATE,'pl_PL.UTF-8')
> ('pl_PL.UTF-8')
> 'ฤ' < 'g'
> False
>
> To chyba nie ma rady? - trzeba sobie coล sensownego napisaฤ?
locale.setlocale(locale.LC_COLLATE,'pl_PL.UTF-8')
'pl_PL.UTF-8'
locale.strcoll('ฤ','c')
1
locale.strcoll('ฤ','ฤ')
0
locale.strcoll('ฤ','d')
-1
--
mrg
Technical Details
Message-ID:
<lhcpel$otm$1@node2.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<53399409$0$2144$65785112@news.neostrada.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: marrgol <marspamrgol@gspammail.com> Newsgroups: pl.comp.lang.python Subject: Re: [3.3.3linux] 'ฤ' < 'g' (False) Date: Tue, 01 Apr 2014 00:15:49 +0200 Organization: ATMAN - ATM S.A. Lines: 30 Message-ID: <lhcpel$otm$1@node2.news.atman.pl> References: <53399409$0$2144$65785112@news.neostrada.pl> NNTP-Posting-Host: 176.111.234.41 Mime-Version: 1.0 X-Trace: node2.news.atman.pl 1396304149 25526 176.111.234.41 (31 Mar 2014 22:15:49 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Mon, 31 Mar 2014 22:15:49 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <53399409$0$2144$65785112@news.neostrada.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit