[issue15562] CaseFolding not working properly

2012-08-05 Thread Chris Jerdonek
Chris Jerdonek added the comment: Yes, the documentation for str.casefold() suggests that lower() is not meant to casefold: "For example, the German lowercase letter 'ß' is equivalent to "ss". Since it is already lowercase, lower() would do nothing to 'ß'; casefold() converts it to "ss"." ht

[issue15562] CaseFolding not working properly

2012-08-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue15562] CaseFolding not working properly

2012-08-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Naturally, you have to use casefold(): >>> hex(ord("\u00b5".casefold())) '0x3bc' -- resolution: -> invalid status: open -> pending ___ Python tracker _

[issue15562] CaseFolding not working properly

2012-08-05 Thread STINNER Victor
STINNER Victor added the comment: Hum, strange. $ ./python Python 3.3.0b1 (default:b7b8e4ada3e5+, Aug 5 2012, 16:19:18) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux >>> print(ascii('\xb5'.casefold())) '\u03bc' -- nosy: +haypo ___ Python tracker

[issue15562] CaseFolding not working properly

2012-08-05 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15562] CaseFolding not working properly

2012-08-05 Thread Martin v . Löwis
New submission from Martin v. Löwis: IIUC, Python 3.3 is intended to support CaseFolding.txt. In http://unicode.org/Public/UNIDATA/CaseFolding.txt U+00B5 maps to U+03BC. However, in 3.3.0b1 (80a1ae3a1b39), ascii('\u00b5'.lower()) gives '\xb5'. -- messages: 167515 nosy: benjamin.peters