Debian Bug report logs - #260303
base-config: hwclock | cut doesn't work in some locales

version graph

Package: base-config; Maintainer for base-config is (unknown);

Reported by: Colin Watson <cjwatson@debian.org>

Date: Mon, 19 Jul 2004 20:33:02 UTC

Severity: normal

Tags: patch

Found in version 2.35

Fixed in version base-config/2.37

Done: Joey Hess <joeyh@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#260303; Package base-config. (full text, mbox, link).


Acknowledgement sent to Colin Watson <cjwatson@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Colin Watson <cjwatson@debian.org>
To: submit@bugs.debian.org
Subject: base-config: hwclock | cut doesn't work in some locales
Date: Mon, 19 Jul 2004 21:21:50 +0100
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 sent to Joey Hess <joeyh@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Colin Watson <cjwatson@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 260303-close@bugs.debian.org (full text, mbox, reply):

From: Joey Hess <joeyh@debian.org>
To: 260303-close@bugs.debian.org
Subject: Bug#260303: fixed in base-config 2.37
Date: Wed, 21 Jul 2004 21:17:03 -0400
Source: base-config
Source-Version: 2.37

We believe that the bug you reported is fixed in the latest version of
base-config, which is due to be installed in the Debian FTP archive:

base-config_2.37.dsc
  to pool/main/b/base-config/base-config_2.37.dsc
base-config_2.37.tar.gz
  to pool/main/b/base-config/base-config_2.37.tar.gz
base-config_2.37_all.deb
  to pool/main/b/base-config/base-config_2.37_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 260303@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <joeyh@debian.org> (supplier of updated base-config package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 21 Jul 2004 21:05:23 -0400
Source: base-config
Binary: base-config
Architecture: source all
Version: 2.37
Distribution: unstable
Urgency: high
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Joey Hess <joeyh@debian.org>
Description: 
 base-config - Debian base system configurator
Closes: 260303
Changes: 
 base-config (2.37) unstable; urgency=high
 .
   * Colin Watson
     - Fix hwclock drift removal to work in more locales. Closes: #260303
   * Translations
     - Updated Bulgarian translations (debian/po/bg.po and po/bg.po).
     - Updated Portuguese debconf translation.
     - Initial Croatian translations (debian/po/hr.po and po/hr.po).
     - Updated German debconf and program translation de.po by Dennis Stampfer
     - Spanish (Castilian) (es.po) by Javier Fernández-Sanguino
     - Slovak (sk.po) by Peter KLFMANiK Mann
     - Extra dot removed in French po/fr.po
     - Completed Arabic from Arabeyes repository
Files: 
 0d88c785912cd3a95a456867588ea0d1 715 base optional base-config_2.37.dsc
 5ff9c8c93329f813d74c9ecd2a8d66bf 377843 base optional base-config_2.37.tar.gz
 d3e1848f55901b0b003b302db7eb27c1 290908 base optional base-config_2.37_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA/xMd2tp5zXiKP0wRAsbNAKCu4mReEFUONUx5HxNDshEg/3agwQCffvE3
qS5XoRxqSI6ytrA6Xjfdjrs=
=gLBb
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#260303; Package base-config. (full text, mbox, link).


Acknowledgement sent to Martin Michlmayr <tbm@cyrius.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (full text, mbox, link).


Message #15 received at 260303@bugs.debian.org (full text, mbox, reply):

From: Martin Michlmayr <tbm@cyrius.com>
To: 260303@bugs.debian.org
Subject: Re: Bug#260303: base-config: hwclock | cut doesn't work in some locales
Date: Sat, 24 Jul 2004 03:40:31 +0100
* Colin Watson <cjwatson@debian.org> [2004-07-19 21:21]:
>   http://www.no-name-yet.com/patches/base-config.hwclock-cut.diff

--- base-config.orig/tzsetup	2004-06-27 19:37:07.000000000 +0100
+++ base-config/tzsetup	2004-07-19 20:46:56.000000000 +0100
@@ -137,9 +137,9 @@
 				db_set tzconfig/gmt false
 			fi
 
-			# The cut removes info about drift from the 
+			# The sed removes info about drift from the 
 			# hwclock output.
-			db_subst tzconfig/gmt hwtime $(hwclock --show --localtime | cut -d ' ' -f 1-6)
+			db_subst tzconfig/gmt hwtime $(hwclock --show --localtime | sed 's/  .*//')
 			db_fset tzconfig/gmt seen false
 			db_input high tzconfig/gmt || true
 		fi
-- 
Martin Michlmayr
tbm@cyrius.com



Bug unarchived. Request was from Stefano Zacchiroli <zack@debian.org> to control@bugs.debian.org. (Sun, 10 Apr 2011 08:43:24 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 09 May 2011 07:31:47 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 12:07:07 2017; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.