bugGNU Octave - Bugs: bug #50409, Octave CLI should use UTF-8 at...


bug #50409: Octave CLI should use UTF-8 at command prompt

Submitter:  Markus Mützel <mmuetzel>
Submitted:  Sun 26 Feb 2017 05:57:52 PM UTC
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sat 05 Nov 2022 07:03:17 PM UTC, comment #1: 

There's /src/main-cli.cc, which includes "octave.h", from libinterp/octave.h and its corresponding implementation libinterp/octave.cc.

That looks like a good place to start looking to see if there's any lower level file this should correspond to.

Also, I don't understand the role of `OCTAVE_HAVE_WINDOWS_UTF8_LOCALE`, which seems to depend on `__MSVCRT_VERSION__`, so on the machine doing the compilation. Shouldn't this depend on the Windows version, as is checked in the GUI version of this? Anyway, found the commit https://github.com/gnu-octave/octave/commit/b70358e7fd78cedab82638da5165579a777ebf1a

Related issues: https://savannah.gnu.org/bugs/?47571 (CLI)
https://savannah.gnu.org/bugs/?42036 (dealing with the GUI version of this problem, IIUC)

Lucas Fehlau Arbulu <lucasfa>
Sun 26 Feb 2017 05:57:52 PM UTC, original submission:  

The Octave CLI uses the system code page on Windows. On supported systems, it should use UTF-8 instead (e.g. for sym or international character support in general).
The GUI command window correctly uses UTF-8 on supported systems. This is done in "libgui\qterminal\libqterminal\win32\QWinTerminalImpl.cpp" @ around line 387.
This code is not executed in CLI mode and should be moved to a better position. Where would that be?
Any hints would be appreciated.

Markus Mützel <mmuetzel>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lucasfa (Posted a comment)
  • -email is unavailable- added by cbm
  • -email is unavailable- added by marczellm
  • -email is unavailable- added by mmuetzel (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-29 cbm Carbon-Copy- Added cbm
    2018-07-14 marczellm Carbon-Copy- Added marczellm

    Back to the top

    Powered by Savane 3.12