1. Using localisation
- Posted by CChris <christian.cuvier at agric?l?ure.gouv.fr> May 07, 2008
- 609 views
- Last edited May 08, 2008
Localisation also governs how characters in the 128-255 range are turned to lower or upper case. As a result, perhaps replacing, under Windows, lower() and upper() by ansiLower() and ansiUpper() as defined in win32lib.ew (provided by R. Stowasser). I'd suggest using the code for ansiLower() as the body of lower(). Under Linux/BSD, I don't know if the same functionality is available. Under DOS, there is support for proper capitalisation too. It is implemented in the interpreter in dos_compare() for the purpose of comparing file names. lowr() or upper() should (at least could) turn ä to A¨and back, for instance. CChris