forked from GitHub/gf-core
change the locale in the test script for the Python binding
This commit is contained in:
@@ -2,6 +2,7 @@ import pgf
|
|||||||
import sys
|
import sys
|
||||||
import sets
|
import sets
|
||||||
import readline
|
import readline
|
||||||
|
import locale
|
||||||
|
|
||||||
sys.stdout.write("loading...")
|
sys.stdout.write("loading...")
|
||||||
sys.stdout.flush();
|
sys.stdout.flush();
|
||||||
@@ -42,6 +43,7 @@ class Completer():
|
|||||||
completer = Completer(source_lang)
|
completer = Completer(source_lang)
|
||||||
readline.set_completer(completer.complete)
|
readline.set_completer(completer.complete)
|
||||||
readline.parse_and_bind("tab: complete")
|
readline.parse_and_bind("tab: complete")
|
||||||
|
locale.setlocale(locale.LC_CTYPE, "")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user