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

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

[Octave-bug-tracker] [bug #52905] Can't manage paths that contain extend


From: anonymous
Subject: [Octave-bug-tracker] [bug #52905] Can't manage paths that contain extended unicode characters
Date: Wed, 17 Jan 2018 00:19:37 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #3, bug #52905 (project octave):

Well, it does not look like an API misuse in the GUI binary.
Windows GUI shell opens "unicoded" filenames without questions.

It seems to me, the problem is in interpreter. It looks like standard
path/name handling in such functions as cd(), or readcvs/dlm do not  handle,
or do not allow handling strings (probably corrupting them) as Unicode when
passing to Windows system. 

You see, "TESTテスト①.csv" looks like
exact 8-bit conversion of "TESTテスト①.csv", so there is no data
corruption, only data-type is undetermined in Ocave, since there is no
UTF-char type.
However, (AFAIK) WinAPI functions expect the data in specific format for
further handling. And I foresee three possibilities:
1)Octave cripples the string with precaution procedures when passing it to
WinAPI. I.e. like truncating or extending the string basing on difference in
byte/character count. Or replacing "unknown" bytes with "?"...
2)Octave misuses WinAPI, calling obsolete functions(like winapi OpenFile,
fopen instead of _wfopen)


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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