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

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

[Octave-bug-tracker] [bug #51836] uigetfile() returns unusable path with


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #51836] uigetfile() returns unusable path with special characters (German Umlaut)
Date: Sat, 26 Aug 2017 16:18:30 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

Update of bug #51836 (project octave):

              Depends on:                         => bugs #49118            

    _______________________________________________________

Follow-up Comment #2:

The patch in bug #49118 (file #41670) should fix dlmread with non-ASCII
characters.

As a workaround, you could manually replace the non-ASCII characters (stored
internally as UTF-8 in Octave) with their respective code points on your local
codepage. Assuming you are using ISO 8859-1, ISO 8859-15 or Windows-1252, the
following code snippet would replace the "ü" character:

fname = "test.S1P";
fpath = "Tür";
fpath = strrep (fpath, "ü", char(252));
input = dlmread (fullfile (fpath, fname), '\t');


...and similarly for the other non-ASCII characters you want to use.

In Octave 4.3.0+ (development version), the replacement would be done with:

fpath = char (unicode2native (fpath));



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51836>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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