source: SHX/trunk/src/sandbox/sscanf.py @ 138

Revision 138, 322 bytes checked in by marcus, 14 years ago (diff)
  • locale issue discovered
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Rev Id Date
Line 
1# -*- coding: utf-8 -*-
2
3import ctypes as C
4import os
5import locale
6
7import gtk
8del gtk
9
10lib = C.CDLL(os.path.join(".", "sscanflib.so"))
11
12# if not set, the test function will fail (if your locale settings say, that
13# number fractions are not separated by a dot (e.g. comma)
14locale.setlocale(locale.LC_ALL, "C")
15
16lib.test()
Note: See TracBrowser for help on using the repository browser.