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

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

[Octave-bug-tracker] [bug #64331] unicode2native demands codepage input


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #64331] unicode2native demands codepage input on Windows
Date: Fri, 23 Jun 2023 10:21:51 -0400 (EDT)

Update of bug #64331 (project octave):

                  Status:                    None => Ready For Test         
        Operating System:       Microsoft Windows => Any                    
           Fixed Release:                    None => 8.3.0 (current stable) 
         Planned Release:                    None => 8.3.0 (current stable) 

    _______________________________________________________

Follow-up Comment #4:

It's likely a regression from here:
https://hg.savannah.gnu.org/hgweb/octave/rev/e9771f0e180c

In particular, this part:

     error ("unicode2native: UTF8_STR must be a character vector");
   endif
 
-  if (! ischar (codepage))
+  if (! (ischar (codepage) && isrow (codepage)))
     error ("unicode2native: CODEPAGE must be a string");
   endif
 


The default value of `codepage` is the empty string `""`. `isrow ("")` results
in false. But it should be allowed.


Should be fixed with this change:
https://hg.savannah.gnu.org/hgweb/octave/rev/fab3e312a0b4

Marking as ready for test.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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