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

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

[Octave-bug-tracker] [bug #55306] non-english typing in the editor don't


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #55306] non-english typing in the editor don't appear but still there hidden causing error
Date: Mon, 31 Dec 2018 11:24:34 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Follow-up Comment #6, bug #55306 (project octave):

If I follow the Qt sources correctly, QTextCodec::canEncode uses
QTextCodec::convertFromUnicode to convert to the local encoding and checks
invalidChars of its ConverterState whether it was successful. Unfortunately
some implementations (e.g. for ICU [1]) don't update the invalidChars member
and the check is always true.

The attached patch uses gnulib to check whether the conversion is possible.
IIRC, you (Torsten) had to map some codepage names from gnulib to Qt. Do you
know whether this is necessary the other way round as well?

[1]:
https://code.woboq.org/qt5/qtbase/src/corelib/codecs/qicucodec.cpp.html#628

(file #45814)
    _______________________________________________________

Additional Item Attachment:

File name: bug55306_file_editor_codec.patch Size:3 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55306>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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