[Bug 344885] [NEW] italc-launcher sets LANG=C
Leberwurscht
pbmaxi at hoegners.de
Wed Mar 18 15:53:13 UTC 2009
Public bug reported:
If italc is launched by italc-launcher, the LANG variable is set to C,
so localisation is disabled.
To fix the bug, change in italc-launcher:
def getLocalIPs():
"Scan ifconfig output for local IPV4 addresses"
os.environ["LANG"]="C" # Set environ LANG to C
ip=[]
output=subprocess.Popen("ifconfig",stdout=subprocess.PIPE)
output.wait()
for line in output.stdout.readlines():
line=line.strip()
if line.startswith("inet addr"):
ip.append(line.split(" ")[1].split(":")[1])
return ip
to:
def getLocalIPs():
"Scan ifconfig output for local IPV4 addresses"
bak=os.environ["LANG"]
os.environ["LANG"]="C" # Set environ LANG to C
ip=[]
output=subprocess.Popen("ifconfig",stdout=subprocess.PIPE)
output.wait()
for line in output.stdout.readlines():
line=line.strip()
if line.startswith("inet addr"):
ip.append(line.split(" ")[1].split(":")[1])
os.environ["LANG"]=bak
return ip
** Affects: italc (Ubuntu)
Importance: Undecided
Status: New
--
italc-launcher sets LANG=C
https://bugs.launchpad.net/bugs/344885
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list