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: dalanicolai <dalanicolai <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 50718 <at> debbugs.gnu.org
Subject: bug#50718: 28.0.50; `split-string` fails on certain unicode strings
Date: Wed, 22 Sep 2021 09:59:22 +0200
[Message part 1 (text/plain, inline)]
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 <at> 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 <at> linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
>
[Message part 2 (text/html, inline)]

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

Previous Next


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