GNU bug report logs - #50718
28.0.50; `split-string` fails on certain unicode strings

Previous Next

Package: emacs;

Reported by: dalanicolai <dalanicolai <at> gmail.com>

Date: Tue, 21 Sep 2021 09:29:02 UTC

Severity: normal

Tags: notabug

Found in version 28.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: dalanicolai <dalanicolai <at> gmail.com>
Cc: 50718 <at> debbugs.gnu.org
Subject: bug#50718: 28.0.50; `split-string` fails on certain unicode strings
Date: Tue, 21 Sep 2021 11:51:44 +0200
On Sep 21 2021, dalanicolai wrote:

> Evaluate: (split-string "१०.३" ".")
> It wrongly returns a list with only empty string.

You have specified all characters as separators, since "." matches any
character.  If you want to match only the period you need to use "\\."
has the regexp.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 3 years and 240 days ago.

Previous Next


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