unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Štěpán Němec" <stepnem@gmail.com>,
	"Dima Kogan" <dima@secretsauce.net>,
	40702@debbugs.gnu.org
Subject: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
Date: Wed, 30 Sep 2020 05:45:05 +0200	[thread overview]
Message-ID: <87ft707wse.fsf@gnus.org> (raw)
In-Reply-To: <jwvy2qr4f4w.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 19 Apr 2020 12:44:33 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> I'm not sure if `encode-coding-string/char` should accept a nil argument
> nor how it should treat it, so maybe it's a bug in `what-char-position`
> which should not pass a nil argument here.  So maybe the patch below
> is a good fix?

With

LANG=C LANGUAGE= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=C ./src/emacs -geometry -0+0 -Q  

I can reproduce the bug Dima is seeing, and Stefan's patch fixes the
problem, and seems otherwise unproblematic, so I've pushed it to Emacs
28.

There may be other, more general problems when running under the "C"
locale, but...

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





      parent reply	other threads:[~2020-09-30  3:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-18 21:27 bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char Dima Kogan
2020-04-18 21:53 ` Štěpán Němec
2020-04-18 22:22   ` Dima Kogan
2020-04-19 13:02     ` Štěpán Němec
2020-04-19 15:22       ` Eli Zaretskii
2020-04-19 16:18         ` Štěpán Němec
2020-04-19 16:50           ` Eli Zaretskii
2020-04-19 19:39             ` Štěpán Němec
2020-04-19 16:44     ` Stefan Monnier
2020-04-20  4:16       ` Dima Kogan
2020-04-20 13:27         ` Stefan Monnier
2020-04-20 21:44           ` Dima Kogan
2020-09-30  3:45       ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft707wse.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=40702@debbugs.gnu.org \
    --cc=dima@secretsauce.net \
    --cc=monnier@iro.umontreal.ca \
    --cc=stepnem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).