Make BE working with non-ASCII username.
[be.git] / libbe / ui / command_line.py
index d94da80c5586dda3bd8a8b6c59c839c85008d6ca..614366d8a6edbea4320302be953ced1a66c48d7d 100644 (file)
@@ -23,6 +23,7 @@ A command line interface to Bugs Everywhere.
 import optparse
 import os
 import sys
+import locale
 
 import libbe
 import libbe.bugdir
@@ -340,6 +341,7 @@ def dispatch(ui, command, args):
     return ret
 
 def main():
+    locale.setlocale(locale.LC_ALL, '')
     io = libbe.command.StdInputOutput()
     ui = CommandLine(io)
     be = BE(ui=ui)