[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49118] GUI editor cannot run file in folder n
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #49118] GUI editor cannot run file in folder name with umlaut |
Date: |
Mon, 7 Nov 2016 17:31:17 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #34, bug #49118 (project octave):
Attached is a work in progress patch which enables changing to a directory
with non-ASCII chars in Windows for me (feature A from comment #32).
I think this was working for Umlaut characters before file #38798 (the
"cstrings-patch") was applied because our system codepage coincidentially was
latin-1 and we only tried with Latin-1 characters.
The patch converts the UTF-8 encoded path to UTF-16 and calls the wchar_t
variant of chdir (_wchdir) for Windows.
This is still "work in progress" because I definitely have the #if-conditions
wrong. Can someone please help me figure out which constants should be checked
(UNICODE, OCTAVE_USE_WINDOWS_API, ...)?
And more importantly: Is this the right way to do it? Most probably "mkdir",
"rmdir" and other functions that access the file system would need special
treatment for Win32 as well...
(file #38898)
_______________________________________________________
Additional Item Attachment:
File name: bug49118_win32_wchar_chdir.patch Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49118>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/