[Top][All Lists]

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

[Octave-bug-tracker] [bug #52681] Bad reading for UTF-8 characters with

From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #52681] Bad reading for UTF-8 characters with fscanf()
Date: Sat, 30 Dec 2017 15:01:24 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0

Follow-up Comment #18, bug #52681 (project octave):

"std::string" is basically a "typedef basic_string<char> string;". Also "buf"
is a "std::ostringstream" which is "typedef basic_ostringstream<char>
ostringstream;". Casting the integer "c" to "unsigned char" before inserting
it in "buf" would have no effect.
We could define our own types based on "unsigned char". But since
"std::istream& is" is based on "char" as well, there would probably always be
some places with casts between "char" and "unsigned char" were necessary.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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