unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20258: 24.5; format-time-string miscounting of multibyte characters
@ 2015-04-04 14:33 Gunnar Horrigmo
  2015-04-04 15:42 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Gunnar Horrigmo @ 2015-04-04 14:33 UTC (permalink / raw)
  To: 20258


As the subject says, format-time-string miscounts multibyte characters.
Simple example with nb_NO.utf8 locale, where ø is two bytes:

(format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015"))
"  lø."

(length (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015")))
5

Let me know if you need more info.

--Gunnar




In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.10)
 of 2015-04-01 on lumpy-gravy.uio.no
Repository revision: 1b70aa634c9ce117fed418894b54b1f2647bda1c
Windowing system distributor `StarNet Communications Corp.', version 11.0.14000
System Description:	Fedora release 21 (Twenty One)

Important settings:
  value of $LC_MONETARY: nb_NO.utf8
  value of $LC_NUMERIC: nb_NO.utf8
  value of $LC_TIME: nb_NO.utf8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Help

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
nnimap read 417k from secure.runbox.no
nnimap read 466k from secure.runbox.no
nnimap read 581k from secure.runbox.no
nnimap read 655k from secure.runbox.no
nnimap read 729k from secure.runbox.no
Mark set
Mark saved where search started [2 times]
Making completion list...
Quit [4 times]
Type C-x 1 to delete the help window, C-M-v to scroll help.
Quit [2 times]

Load-path shadows:
/uio/kant/usit-gdw-u1/horrigmo/emacs/locate hides /uio/kant/usit-gdw-u1/horrigmo/emacs/src/emacs-24/emacs/lisp/locate

Features:
(shadow nnir emacsbug reposition sort smiley gnus-cite mm-archive
mail-extr gnus-bcklg eieio-opt speedbar sb-image ezimage dframe
find-func gnus-async qp gnus-ml disp-table pp gnus-eform debug jka-compr
misearch multi-isearch help-mode gnus-topic nndraft nnmh utf-7 gnutls
nnimap utf7 parse-time netrc network-stream starttls tls gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu
mml2015 nntp gnus-cache gnus-sum gnus-group gnus-undo nnfolder nnoo
nnmail mail-source avoid mm-view mml-smime smime dig mailcap gnus-start
gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems wid-edit nnheader
rt-liberation edmacro kmacro browse-url markstack epa-file epa derived
epg etags info smtpmail auth-source eieio byte-opt bytecomp byte-compile
cl-extra cconv eieio-core gnus-util password-cache sendmail message
cl-macs format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns
mail-prsvr mailabbrev mail-utils gmm-utils mailheader ange-ftp comint
ansi-color ring cl gv cl-loaddefs cl-lib package epg-config time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 278530 45717)
 (symbols 48 32240 0)
 (miscs 40 185 563)
 (strings 32 55977 9185)
 (string-bytes 1 1975855)
 (vectors 16 32030)
 (vector-slots 8 1345064 168271)
 (floats 8 255 726)
 (intervals 56 14581 139)
 (buffers 960 37)
 (heap 1024 54088 6705))


-- 
Gunnar





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2015-04-04 14:33 bug#20258: 24.5; format-time-string miscounting of multibyte characters Gunnar Horrigmo
@ 2015-04-04 15:42 ` Eli Zaretskii
  2015-04-04 16:03   ` Stefan Monnier
  2015-04-04 16:42 ` Andreas Schwab
  2019-09-30  0:35 ` Stefan Kangas
  2 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2015-04-04 15:42 UTC (permalink / raw)
  To: Gunnar Horrigmo; +Cc: 20258

> From: Gunnar Horrigmo <gunnar.horrigmo@usit.uio.no>
> Date: Sat, 04 Apr 2015 16:33:50 +0200
> 
> 
> As the subject says, format-time-string miscounts multibyte characters.
> Simple example with nb_NO.utf8 locale, where ø is two bytes:
> 
> (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015"))
> "  lø."
> 
> (length (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015")))
> 5

'length' counts characters, not bytes.  If you need to count bytes,
use 'string-bytes' instead:

  (string-bytes "  lø.") => 6







^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2015-04-04 15:42 ` Eli Zaretskii
@ 2015-04-04 16:03   ` Stefan Monnier
  0 siblings, 0 replies; 16+ messages in thread
From: Stefan Monnier @ 2015-04-04 16:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 20258, Gunnar Horrigmo

> 'length' counts characters, not bytes.  If you need to count bytes,
> use 'string-bytes' instead:

>   (string-bytes "  lø.") => 6

And in 99% of the cases, using length-bytes doesn't do what you think
(it doesn't count the number of bytes that it would take in your
favorite coding-system, but the number of bytes it takes within Emacs's
internal encoding).
If you want to know how many bytes it would take in your locale's
encoding, then you need:

   (length (encode-coding-string <thestring> locale-coding-system))


        Stefan





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2015-04-04 14:33 bug#20258: 24.5; format-time-string miscounting of multibyte characters Gunnar Horrigmo
  2015-04-04 15:42 ` Eli Zaretskii
@ 2015-04-04 16:42 ` Andreas Schwab
  2019-09-30  0:35 ` Stefan Kangas
  2 siblings, 0 replies; 16+ messages in thread
From: Andreas Schwab @ 2015-04-04 16:42 UTC (permalink / raw)
  To: Gunnar Horrigmo; +Cc: 20258

Gunnar Horrigmo <gunnar.horrigmo@usit.uio.no> writes:

> As the subject says, format-time-string miscounts multibyte characters.
> Simple example with nb_NO.utf8 locale, where ø is two bytes:
>
> (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015"))
> "  lø."

This is a limitation of the underlying strftime, which operates on
bytes, not characters.  This could be fixed by using wcsftime instead.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2015-04-04 14:33 bug#20258: 24.5; format-time-string miscounting of multibyte characters Gunnar Horrigmo
  2015-04-04 15:42 ` Eli Zaretskii
  2015-04-04 16:42 ` Andreas Schwab
@ 2019-09-30  0:35 ` Stefan Kangas
  2019-09-30  3:09   ` Lars Ingebrigtsen
  2 siblings, 1 reply; 16+ messages in thread
From: Stefan Kangas @ 2019-09-30  0:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 20258-done, Gunnar Horrigmo

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Gunnar Horrigmo <gunnar.horrigmo@usit.uio.no>
>> Date: Sat, 04 Apr 2015 16:33:50 +0200
>>
>>
>> As the subject says, format-time-string miscounts multibyte characters.
>> Simple example with nb_NO.utf8 locale, where ø is two bytes:
>>
>> (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015"))
>> "  lø."
>>
>> (length (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015")))
>> 5
>
> 'length' counts characters, not bytes.  If you need to count bytes,
> use 'string-bytes' instead:
>
>   (string-bytes "  lø.") => 6

I can see no bug here, only a misunderstanding about the length
function.  I'm therefore closing this bug.  If that's incorrect, please
reopen this bug report.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30  0:35 ` Stefan Kangas
@ 2019-09-30  3:09   ` Lars Ingebrigtsen
  2019-09-30  7:01     ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30  3:09 UTC (permalink / raw)
  To: 20258; +Cc: stefan, gunnar.horrigmo

Stefan Kangas <stefan@marxist.se> writes:

>>> As the subject says, format-time-string miscounts multibyte characters.
>>> Simple example with nb_NO.utf8 locale, where ø is two bytes:
>>>
>>> (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015"))
>>> "  lø."
>>>
>>> (length (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015")))
>>> 5
>>
>> 'length' counts characters, not bytes.  If you need to count bytes,
>> use 'string-bytes' instead:
>>
>>   (string-bytes "  lø.") => 6
>
> I can see no bug here, only a misunderstanding about the length
> function.  I'm therefore closing this bug.  If that's incorrect, please
> reopen this bug report.

But the issue here is that "%6a" should give you a string that's six
characters long, I think?  Admittedly the doc string is vague here:

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

But the natural interpretation of "positions" isn't bytes, I think, and
if is, then the doc string should say so.

(let ((system-time-locale "nb_NO.UTF-8"))
  (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015")))
=> "  lø."

(if you have that locale in /etc/locale.gen.)

But I seem to remember from previous discussions that this quirk is in
the C strftime function?  And Emacs just call it?  I haven't checked.
But this means that you can't use format-time-string to line stuff up,
but have to use `format':

(let ((system-time-locale "nb_NO.UTF-8"))
  (format "%6s" (format-time-string "%a" (date-to-time "Sat Apr  4 16:14:40 2015"))))
=> "   lø."

So I think what WIDTH means should be said explicitly in the doc string.

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





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30  3:09   ` Lars Ingebrigtsen
@ 2019-09-30  7:01     ` Eli Zaretskii
  2019-09-30  8:41       ` Andreas Schwab
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2019-09-30  7:01 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 20258, stefan, gunnar.horrigmo

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Mon, 30 Sep 2019 05:09:08 +0200
> Cc: stefan@marxist.se, gunnar.horrigmo@usit.uio.no
> 
> 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.
> ---
> 
> But the natural interpretation of "positions" isn't bytes, I think, and
> if is, then the doc string should say so.
> 
> (let ((system-time-locale "nb_NO.UTF-8"))
>   (format-time-string "%6a" (date-to-time "Sat Apr  4 16:14:40 2015")))
> => "  lø."
> 
> (if you have that locale in /etc/locale.gen.)
> 
> But I seem to remember from previous discussions that this quirk is in
> the C strftime function?  And Emacs just call it?

Yes, that's true.

> So I think what WIDTH means should be said explicitly in the doc string.

It can only warn that WIDTH _might_ be measured in bytes, since the
underlying implementation of strftime just might DTRT.  Or not.

I think this should be raised as a bug to glibc developers, as their
documentation says "characters", according to my reading.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30  7:01     ` Eli Zaretskii
@ 2019-09-30  8:41       ` Andreas Schwab
  2019-09-30  9:13         ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Andreas Schwab @ 2019-09-30  8:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 20258, Lars Ingebrigtsen, stefan, gunnar.horrigmo

On Sep 30 2019, Eli Zaretskii <eliz@gnu.org> wrote:

> I think this should be raised as a bug to glibc developers, as their
> documentation says "characters", according to my reading.

The POSIX descriptions says bytes.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30  8:41       ` Andreas Schwab
@ 2019-09-30  9:13         ` Eli Zaretskii
  2019-09-30 13:39           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2019-09-30  9:13 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 20258, larsi, stefan, gunnar.horrigmo

> From: Andreas Schwab <schwab@suse.de>
> Cc: Lars Ingebrigtsen <larsi@gnus.org>,  20258@debbugs.gnu.org,  stefan@marxist.se,  gunnar.horrigmo@usit.uio.no
> Date: Mon, 30 Sep 2019 10:41:23 +0200
> 
> On Sep 30 2019, Eli Zaretskii <eliz@gnu.org> wrote:
> 
> > I think this should be raised as a bug to glibc developers, as their
> > documentation says "characters", according to my reading.
> 
> The POSIX descriptions says bytes.

Right.  So it might be a glibc documentation bug (or maybe the glibc
manual I have here is outdated).

And there is the issue with non-glibc implementations.

Thanks.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30  9:13         ` Eli Zaretskii
@ 2019-09-30 13:39           ` Lars Ingebrigtsen
  2019-09-30 13:58             ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30 13:39 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 20258, Andreas Schwab, stefan, gunnar.horrigmo

Eli Zaretskii <eliz@gnu.org> writes:

>> The POSIX descriptions says bytes.
>
> Right.  So it might be a glibc documentation bug (or maybe the glibc
> manual I have here is outdated).
>
> And there is the issue with non-glibc implementations.

What about something appropriately vague like the following patch to
draw attention to the issue:

diff --git a/src/timefns.c b/src/timefns.c
index 330d5623f0..20f7ccb7d7 100644
--- a/src/timefns.c
+++ b/src/timefns.c
@@ -1437,8 +1437,11 @@ DEFUN ("format-time-string", Fformat_time_string, Sformat_time_string, 1, 3, 0,
 `^' Use upper case characters if possible.
 `#' Use opposite case characters if possible.
 
-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
+depends on the locale what the width (in characters) %NX will end up
+being.
 
 The modifiers are:
 


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





^ permalink raw reply related	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30 13:39           ` Lars Ingebrigtsen
@ 2019-09-30 13:58             ` Eli Zaretskii
  2019-09-30 14:12               ` Lars Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2019-09-30 13:58 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 20258, schwab, stefan, gunnar.horrigmo

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Andreas Schwab <schwab@suse.de>,  20258@debbugs.gnu.org,
>   stefan@marxist.se,  gunnar.horrigmo@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.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30 13:58             ` Eli Zaretskii
@ 2019-09-30 14:12               ` Lars Ingebrigtsen
  2019-09-30 14:30                 ` Gunnar Horrigmo
  2019-09-30 14:41                 ` Eli Zaretskii
  0 siblings, 2 replies; 16+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30 14:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 20258, schwab, stefan, gunnar.horrigmo

Eli Zaretskii <eliz@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





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30 14:12               ` Lars Ingebrigtsen
@ 2019-09-30 14:30                 ` Gunnar Horrigmo
  2019-09-30 14:44                   ` Eli Zaretskii
  2019-09-30 14:41                 ` Eli Zaretskii
  1 sibling, 1 reply; 16+ messages in thread
From: Gunnar Horrigmo @ 2019-09-30 14:30 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 20258, schwab, stefan, gunnar.horrigmo

Lars Ingebrigtsen <larsi@gnus.org> writes:

> I was pondering whether any users had a locale of *.UTF-16.

Windows users might, if that's at all relevant to the discussion.

--Gunnar





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30 14:12               ` Lars Ingebrigtsen
  2019-09-30 14:30                 ` Gunnar Horrigmo
@ 2019-09-30 14:41                 ` Eli Zaretskii
  2019-09-30 14:48                   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2019-09-30 14:41 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 20258, schwab, stefan, gunnar.horrigmo

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: schwab@suse.de,  20258@debbugs.gnu.org,  stefan@marxist.se,
>   gunnar.horrigmo@usit.uio.no
> Date: Mon, 30 Sep 2019 16:12:38 +0200
> 
> > 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.

Unlikely.

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

Yes, that's what I had in mind.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30 14:30                 ` Gunnar Horrigmo
@ 2019-09-30 14:44                   ` Eli Zaretskii
  0 siblings, 0 replies; 16+ messages in thread
From: Eli Zaretskii @ 2019-09-30 14:44 UTC (permalink / raw)
  To: Gunnar Horrigmo; +Cc: 20258, schwab, larsi, stefan, gunnar.horrigmo

> From: Gunnar Horrigmo <gunnar.horrigmo@usit.uio.no>
> Cc: Eli Zaretskii <eliz@gnu.org>,  <schwab@suse.de>,
>   <20258@debbugs.gnu.org>,  <stefan@marxist.se>,
>   <gunnar.horrigmo@usit.uio.no>
> Date: Mon, 30 Sep 2019 16:30:55 +0200
> 
> Lars Ingebrigtsen <larsi@gnus.org> writes:
> 
> > I was pondering whether any users had a locale of *.UTF-16.
> 
> Windows users might

I don't think so.  AFAIK, UTF-16 is not a valid codeset of any Windows
locale.  Windows uses UTF-16 internally, and exposes it in the Windows
APIs, but APIs that came from Posix (and locale is one of them) only
support single-byte and DBCS encodings as their codeset.






^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#20258: 24.5; format-time-string miscounting of multibyte characters
  2019-09-30 14:41                 ` Eli Zaretskii
@ 2019-09-30 14:48                   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 16+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30 14:48 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 20258, schwab, stefan, gunnar.horrigmo

Eli Zaretskii <eliz@gnu.org> writes:

>> But perhaps saying something like "especially with non-ASCII characters"
>> wouldn't be too misleading?
>
> Yes, that's what I had in mind.

OK; doc string updated accordingly, and I'm closing this bug report.

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





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-09-30 14:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-04 14:33 bug#20258: 24.5; format-time-string miscounting of multibyte characters Gunnar Horrigmo
2015-04-04 15:42 ` Eli Zaretskii
2015-04-04 16:03   ` Stefan Monnier
2015-04-04 16:42 ` Andreas Schwab
2019-09-30  0:35 ` Stefan Kangas
2019-09-30  3:09   ` Lars Ingebrigtsen
2019-09-30  7:01     ` Eli Zaretskii
2019-09-30  8:41       ` Andreas Schwab
2019-09-30  9:13         ` Eli Zaretskii
2019-09-30 13:39           ` Lars Ingebrigtsen
2019-09-30 13:58             ` Eli Zaretskii
2019-09-30 14:12               ` Lars Ingebrigtsen
2019-09-30 14:30                 ` Gunnar Horrigmo
2019-09-30 14:44                   ` Eli Zaretskii
2019-09-30 14:41                 ` Eli Zaretskii
2019-09-30 14:48                   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).