Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Last standing unicode problem

<< < (5/7) > >>

rickg22:
Oh well...  :| I guess there's nothing else we can do.

me22:

--- Quote from: MortenMacFly on December 02, 2005, 12:19:16 pm ---Just curious, but does this work-around work?:

--- Code: ---std::string str;
str << "Hi" << 5;
wxString str_new(_T(str));

--- End code ---

Please notice that I've used default std::string for the first one.
(I cannot test it at the moment since I am at work.)

Morten.
--- End quote ---
That wont work because std::string doesn't have formatting -- you'd use a stringstream for that:

--- Code: ---std::basic_stringstream<wxChar> ss;
ss << "Hi" << 5;
wxString str_new( ss.str() );

--- End code ---
( because iostreams keep all the formatting information in istream and ostream, to avoid excessive duplication )

Note that I do not think this would be a good solution.

MortenMacFly:

--- Quote from: me22 on December 02, 2005, 04:46:26 pm ---That wont work because std::string doesn't have formatting [...]

--- End quote ---
I know about that. This was a copy&paste mistake because I had posted this already in another thread using wxString instead of std::string. But i found out that this had already been tested in this thread...

I was hoping that nobody would realise... :oops: :oops: :oops:

Morten.

undofen:
I'm not sure if thats so easy to do, but I would really appreciate if anyone could write down a "not nice but working" solution to this, a solution that I could just paste into that place in the file and make codeblocks usable until the right fix is found. I tried to convert that number to a string but I only know the basics of c++ and dont know anything about wx so it didnt work ;-). TIA

andrimar:
We could go the old QT <-> KDE relationship way and wrap our workaround in an extended wxString class. That way we wouldn't have to change wx internals, keeping distro makers and users happy. Just my 2 cents on the matter after reading this thread but no related code. Hope it inspires someone :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version