Changeset 140 for SHX/trunk/src/sandbox/sscanf.py
- Timestamp:
- 08/07/2009 05:07:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SHX/trunk/src/sandbox/sscanf.py
r138 r140 5 5 import locale 6 6 7 lib = C.CDLL(os.path.join(".", "sscanflib.so"), mode=C.RTLD_GLOBAL) 8 9 print locale.getlocale() 10 7 11 import gtk 8 12 del gtk 9 13 10 lib = C.CDLL(os.path.join(".", "sscanflib.so")) 14 print locale.getlocale() 15 lib.test() 11 16 12 17 # if not set, the test function will fail (if your locale settings say, that 13 18 # number fractions are not separated by a dot (e.g. comma) 14 locale.setlocale(locale.LC_ ALL, "C")19 locale.setlocale(locale.LC_NUMERIC, "C") 15 20 16 21 lib.test()
Note: See TracChangeset
for help on using the changeset viewer.