jhbuild r2102 - in trunk: . jhbuild/frontends
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2102 - in trunk: . jhbuild/frontends
- Date: Sun, 18 May 2008 21:57:31 +0000 (UTC)
Author: fpeters
Date: Sun May 18 21:57:31 2008
New Revision: 2102
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2102&view=rev
Log:
* jhbuild/frontends/terminal.py: also use locale preferred encoding
when asking for input.
Modified:
trunk/ChangeLog
trunk/jhbuild/frontends/terminal.py
Modified: trunk/jhbuild/frontends/terminal.py
==============================================================================
--- trunk/jhbuild/frontends/terminal.py (original)
+++ trunk/jhbuild/frontends/terminal.py Sun May 18 21:57:31 2008
@@ -22,6 +22,7 @@
import os
import signal
import subprocess
+import locale
from jhbuild.frontends import buildscript
from jhbuild.utils import cmds
@@ -44,6 +45,7 @@
t_colour[i+8] = t_bold + t_colour[i]
except: pass
+
user_shell = os.environ.get('SHELL', '/bin/sh')
import curses
@@ -264,7 +266,8 @@
for altstate in altstates:
uprint(_(' [%d] go to stage %s') % (i, altstate))
i = i + 1
- val = raw_input(_('choice: ').encode(get_term_encoding(), 'replace'))
+ val = raw_input(_('choice: ').encode(
+ locale.getpreferredencoding(), 'replace'))
val = val.strip()
if val == '1':
return state
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]