GNU bug report logs - #20258
24.5; format-time-string miscounting of multibyte characters

Previous Next

Package: emacs;

Reported by: Gunnar Horrigmo <gunnar.horrigmo <at> usit.uio.no>

Date: Sat, 4 Apr 2015 15:36:01 UTC

Severity: minor

Tags: fixed, patch

Found in version 24.5

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 20258 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 20258 <at> debbugs.gnu.org, schwab <at> suse.de, stefan <at> marxist.se,
 gunnar.horrigmo <at> usit.uio.no
Subject: Re: bug#20258: 24.5; format-time-string miscounting of multibyte
 characters
Date: Mon, 30 Sep 2019 16:58:49 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Andreas Schwab <schwab <at> suse.de>,  20258 <at> debbugs.gnu.org,
>   stefan <at> marxist.se,  gunnar.horrigmo <at> usit.uio.no
> Date: Mon, 30 Sep 2019 15:39:15 +0200
> 
> -A field width N is an unsigned decimal integer with a leading digit nonzero.
> -%NX is like %X, but takes up at least N positions.
> +A field width N is an unsigned decimal integer with a leading digit
> +nonzero.  %NX is like %X, but takes up at least N positions.  The
> +field width is (on most systems) in bytes, not characters, so it

"is measured in bytes".  Also, I'd say "on GNU/Linux and some other
systems", which is marginally more accurate.

> +depends on the locale what the width (in characters) %NX will end up
> +being.

I would mention "non-ASCII characters" here in some way, not just the
locale, to make this more explicit.

Thanks.




This bug report was last modified 5 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.