Ignore:
Timestamp:
08/07/2009 05:07:29 PM (14 years ago)
Author:
marcus
Message:
  • locale issue clearified (hopefully)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/src/sandbox/sscanf.py

    r138 r140  
    55import locale 
    66 
     7lib = C.CDLL(os.path.join(".", "sscanflib.so"), mode=C.RTLD_GLOBAL) 
     8 
     9print locale.getlocale() 
     10 
    711import gtk 
    812del gtk 
    913 
    10 lib = C.CDLL(os.path.join(".", "sscanflib.so")) 
     14print locale.getlocale() 
     15lib.test() 
    1116 
    1217# if not set, the test function will fail (if your locale settings say, that 
    1318# number fractions are not separated by a dot (e.g. comma) 
    14 locale.setlocale(locale.LC_ALL, "C") 
     19locale.setlocale(locale.LC_NUMERIC, "C") 
    1520 
    1621lib.test() 
Note: See TracChangeset for help on using the changeset viewer.