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


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20258 <at> debbugs.gnu.org, schwab <at> suse.de, stefan <at> marxist.se, gunnar.horrigmo <at> usit.uio.no
Subject: bug#20258: 24.5; format-time-string miscounting of multibyte characters
Date: Mon, 30 Sep 2019 16:12:38 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

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

OK.

>> +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.

I was pondering whether any users had a locale of *.UTF-16.  Then even
the ASCII characters will be subject to the byte/character difference,
so I thought it was best to leave even that vague.

But perhaps saying something like "especially with non-ASCII characters"
wouldn't be too misleading?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

Previous Next


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