After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 432141 - cannot restart firewall on a Chinese system after GNOME login
cannot restart firewall on a Chinese system after GNOME login
Status: RESOLVED DUPLICATE of bug 537082
Product: firestarter
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Tomas Junnonen
Tomas Junnonen
Depends on:
Blocks:
 
 
Reported: 2007-04-22 03:44 UTC by Hao Song
Modified: 2008-06-10 19:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hao Song 2007-04-22 03:44:34 UTC
Please describe the problem:
The firewall startup script /etc/firestarter/firestarter.sh relies on commands like
MASK=`/sbin/ifconfig $IF | grep Mas | cut -d : -f 4`
to detect the state of the network interface
but on a system with default locale zh_CN.UTF8, the output from ifconfig will use Chinese to represent the keys like  subnet mask, then this command will fail and set MASK to empty string, this cause the script to abort with a message like
External Network Interface eth0 not ready

Steps to reproduce:
1. set the system's default locale to zh_CN.UTF8
2. after log into the GNOME desktop
3. stop the firewall
4. try to start it up again


Actual results:


Expected results:


Does this happen every time?
yes

Other information:
The firewall can be started successfully at system boot time, I guess this is because at that time, the locale has not be set to the one specified by the user, and is still the generic C or POSIX
but after GNOME login, the locale is guarenteed to be set to the one specified by the user, and the firewall startup script will need to be executed when the GUI monitoring tool is started or the firewall configuration is changed and need a restart.
a simple workaround does exist, just add LANG=C at the beginning of the /etc/firestarter/firestarter.sh script. At least, this works for me.
Comment 1 André Klapper 2008-06-10 19:10:39 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 537082 ***