Subject: | Tests fail on Linux systems with non-English locale |
With LC_ALL=de_DE.UTF-8 I see the following failure:
# Failed test 'not empty'
# at t/normal.t line 9.
# got: ''
# expected: anything else
# Failed test 'looks like an address'
# at t/normal.t line 10.
# FYI, your ethernet address is
# in integer bytes, that's
# Failed test 'got 6 bytes'
# at t/normal.t line 23.
# got: '0'
# expected: '6'
# Looks like you failed 3 tests of 27.
t/normal.t ........
I guess that's because ifconfig output is different with a non-English locale:
$ env LC_ALL=C ifconfig | head -2
eth0 Link encap:Ethernet HWaddr 00:16:3e:b7:8b:22
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
$ env LC_ALL=de_DE.UTF-8 ifconfig | head -2
eth0 Link encap:Ethernet Hardware Adresse 00:16:3e:b7:8b:22
inet Adresse:10.0.0.2 Bcast:10.0.0.255 Maske:255.255.255.0