byobu bug with not "en_EN" LANG enviroment

Bug #578792 reported by Marcus Asshauer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Medium
Dustin Kirkland 
byobu (Ubuntu)
Fix Released
Medium
Dustin Kirkland 

Bug Description

Today i found a bug with a german de_DE.UTF8 LANG enviroment. This breaks the ip_address script because ifconfig gives me "inet Adresse" and not "inet addr". I solved this for myself by making a backup of my LANG variable setting it to LANG=en_EN and at the end of the script i set my old varbiable back. I think this should be done everytime you expect a special output.

If it is ok for you i could do the patch by myself and upload either a new branch to launchpad or diff files.

I am using Lucid with the latest byobu version from your ppa.

Changed in byobu:
importance: Undecided → Medium
status: New → Triaged
Changed in byobu (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi Marcus-

Could you please attach the output of this command:

 LC=C /sbin/ifconfig

Thanks!

Revision history for this message
Marcus Asshauer (mcas) wrote :
Download full text (3.6 KiB)

Hi Dustin,

here is my output:

:~$ LC=C /sbin/ifconfig
eth0 Link encap:Ethernet Hardware Adresse 00:23:5a:55:88:e7
          UP BROADCAST MULTICAST MTU:1500 Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:28 Basisadresse:0xc000

lo Link encap:Lokale Schleife
          inet Adresse:127.0.0.1 Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING MTU:16436 Metrik:1
          RX packets:854 errors:0 dropped:0 overruns:0 frame:0
          TX packets:854 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:74184 (74.1 KB) TX bytes:74184 (74.1 KB)

tun0 Link encap:UNSPEC Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet Adresse:10.0.0.14 P-z-P:10.0.0.13 Maske:255.255.255.255
          UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1500 Metrik:1
          RX packets:197242 errors:0 dropped:0 overruns:0 frame:0
          TX packets:150561 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:100
          RX bytes:199705344 (199.7 MB) TX bytes:30739725 (30.7 MB)

wlan0 Link encap:Ethernet Hardware Adresse 00:24:2b:86:dd:05
          inet Adresse:192.168.2.108 Bcast:192.168.2.255 Maske:255.255.255.0
          inet6-Adresse: fe80::224:2bff:fe86:dd05/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
          RX packets:571040 errors:0 dropped:0 overruns:0 frame:0
          TX packets:437595 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:427129703 (427.1 MB) TX bytes:80443130 (80.4 MB)

but LC_ALL=C works
:~$ LC_ALL=C /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:23:5a:55:88:e7
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:28 Base address:0xc000

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:854 errors:0 dropped:0 overruns:0 frame:0
          TX packets:854 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:74184 (74.1 KB) TX bytes:74184 (74.1 KB)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.0.0.14 P-t-P:10.0.0.13 Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
          RX packets:197295 errors:0 dropped:0 overruns:0 frame:0
          TX packets:150610 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:199742637 (199.7 MB) TX bytes:307516...

Read more...

Changed in byobu (Ubuntu):
status: Triaged → In Progress
Changed in byobu:
assignee: nobody → Dustin Kirkland (kirkland)
status: Triaged → In Progress
Changed in byobu (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
Changed in byobu:
status: In Progress → Fix Committed
Changed in byobu (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 2.75-0ubuntu1

---------------
byobu (2.75-0ubuntu1) maverick; urgency=low

  * usr/bin/byobu: ensure that .screenrc gets sourced if byobu is run
    with arguments, LP: #580760
  * ec2_cost, ip_address, network, rcs_cost: fix bug when calling ifconfig
    without setting lang to english, LP: #578792
  * byobu-launcher-uninstall: create the directory, in case this script is
    executed before byobu actually runs, LP: #580384
  * usr/bin/byobu-launcher: allow user to add custom screen arguments to
    byobu-launcher (useful in .profile for adding an option like -UDR),
    LP: #578373
 -- Dustin Kirkland <email address hidden> Sat, 15 May 2010 15:32:30 -0400

Changed in byobu (Ubuntu):
status: Fix Committed → Fix Released
Changed in byobu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.