Bug#260303: base-config: hwclock | cut doesn't work in some locales
Package: base-config
Version: 2.35
Severity: normal
Tags: patch
In some locales, the "cut -d ' ' -f 1-6" that tzsetup does to remove
drift information doesn't work properly, because ctime() output in those
locales doesn't contain the same number of spaces. This is quite
noticeable in ja_JP.UTF-8, for instance.
Using "sed 's/ .*//'" instead works better, since ctime() output
doesn't seem to contain a double space in any locale I can see while
hwclock always outputs the double space.
The following patch fixes this:
http://www.no-name-yet.com/patches/base-config.hwclock-cut.diff
I've also filed bug #260272 asking for a proper option to hwclock so
that this hack can be removed.
Thanks,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: