octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #35910] Incorrect regex matching of multi-byte


From: Guillaume
Subject: [Octave-bug-tracker] [bug #35910] Incorrect regex matching of multi-byte UTF-8 characters
Date: Thu, 17 Oct 2019 10:56:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #22, bug #35910 (project octave):

bug #57064 made me notice this bug report. Describing the change would indeed
be important as I already came across this:

Octave 5.1:


octave> regexprep (char (181), 'u', 'micro')
ans = �


Octave 6.0:


octave> regexprep (char (181), 'u', 'micro')                                  
                                       
error: regexprep: internal error calling pcre_exec; the input string is
invalid UTF-8                                


Matlab:


>> regexprep (char (181), 'u', 'micro')
ans =
    'µ'


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?35910>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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