GNU bug report logs - #26796
26.0.50; (2 characters) is usually wrong

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Sat, 6 May 2017 09:51:01 UTC

Severity: normal

Found in version 26.0.50

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: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 26796 <at> debbugs.gnu.org
Subject: bug#26796: 26.0.50; (2 characters) is usually wrong
Date: Sat, 06 May 2017 13:32:33 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Sat, 06 May 2017 11:49:55 +0200
> 
> To reproduce, open a file, type in "á" and save the file.  Emacs will
> now say (if you're a utf-8 kind of person)
> 
> Wrote ‘/tmp/a’ (2 characters)
> 
> which is wrong, since there's just one character in the buffer.

I see "1 characters" here.  I think the result depends on who you type
the above: if there are two characters, a followed by ́, then the file
really has 2 characters, and they are only shown as one on display.
Try "C-u C-x =" to see what you have in the buffer.

> Perhaps saying "(2 bytes)" will be more helpful?

I really doubt that: Emacs users tend to think in terms of characters
than in terms of bytes.




This bug report was last modified 8 years and 101 days ago.

Previous Next


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