[Top][All Lists]

[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: Hartmut
Subject: [Octave-bug-tracker] [bug #49118] GUI editor cannot run file in folder name with umlaut
Date: Sun, 23 Oct 2016 21:33:09 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #26, bug #49118 (project octave):

I have compiled Octave with my proposed changes from comment #25 (change all
QString::toLatin1 into QString::toLocal8Bit) and it does NOT help (with qt 4
under Linux). It seems that those encodings don't take effect "deep" enough in
the GUI.

But I tried an even simpler patch, and it DOES help! If I re-add the line with
"setCodecForCStrings" in octave-gui.cc for (only in qt4 builds), then all
works fine:
* running m-scripts in folders with Umlauts works fine from the GUI editor
* using the inputdlg command to receive non-english characters, also works

I will attach a tiny PATCH to show what I only did to solve all the observed
behaviors reported in this bug report. I have tested this patch only for qt4
builds under Linux, so far. But I would nevertheless consider this patch very
"low risk": It only changes the code for qt4 builts (qt5 builts will not
change at all). And it only re-adds a single line of code, that was present in
all former (GUI) releases as well.

If noone else finds any problems with this patch, then I would be happy to see
it in the upcomaing Octave 4.2 release. It would make using the GUI a
significant bit nicer for all non-english Octave users.

(file #38798)

Additional Item Attachment:

File name: SetQt4EncodingForCStrings.patch Size:0 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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