Skip Menu |

This queue is for tickets about the Net-Address-Ethernet CPAN distribution.

Report information
The Basics
Id: 110772
Status: resolved
Priority: 0/
Queue: Net-Address-Ethernet

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.123
Fixed in: (no value)



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
On 2015-12-30 06:47:33, SREZIC wrote: Show quoted text
> With LC_ALL=de_DE.UTF-8 I see the following failure:
And depending on your system, you have alternatively set LANGUAGE=de (or unset the LANGUAGE environment variable).
I think I fixed this in version 0.14 of Net::Ifconfig::Wrapper, but I have no way to test it 8-) -- - - Martin 'Kingpin' Thurn
On 2016-02-06 10:55:18, MTHURN wrote: Show quoted text
> I think I fixed this in version 0.14 of Net::Ifconfig::Wrapper, but I > have no way to test it 8-)
Checked it on a Debian/wheezy system with LC_ALL=de_DE.UTF-8 --- with the old Net::Ifconfig::Wrapper version it is failing, with the new one is is passing.