bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50718: 28.0.50; `split-string` fails on certain unicode strings


From: dalanicolai
Subject: bug#50718: 28.0.50; `split-string` fails on certain unicode strings
Date: Wed, 22 Sep 2021 09:59:22 +0200

Haha, okay that is a some unexperienced (or not fully awake) mistake. Anyway, will not forget about that again, I guess. Thanks for the reply!

On Tue, 21 Sept 2021 at 11:51, Andreas Schwab <schwab@linux-m68k.org> wrote:
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@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]