[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: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #49118] GUI editor cannot run file in folder name with umlaut |
Date: |
Wed, 17 Jan 2018 17:06:14 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #56, bug #49118 (project octave):
There's no need to create octave::sys::octave_mkdir since we already have
octave::sys::mkdir that also accepts a std::string argument.
The existing octave::sys::mkdir function does this:
... = octave_mkdir_wrapper (name.c_str (), mode);
Could we just modify our octave_mkdir_wrapper to handle calling the proper
function for wide characters? If not, then I would just fix this
octave::sys::mkdir to call the appropriate function.
To handle the file name argument, your patch was doing this instead
_wmkdir (u8_to_wstring (name).c_str ());
Does the conversion have to happen at the std::string level? Is it not
possible to apply the conversion function to the result of the name.c_str ()
function?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49118>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/