Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Last standing unicode problem
takeshimiya:
I don't know if this helps, but from the wxWiKi:
Converting an integer to wxString
To convert, for example, an integer to a wxString, you can use several methods:
* wxString mynewstring = wxString::Format("%d", myoldinteger)
* wxString s; s.Printf("%d", myint);
* wxString mynewstring = wxString("") << myoldinteger;
If you're going straight into a text control, you can skip the conversion entirely: *textctrl << myint;
undofen:
using the latest rocket engeeniering and the post above I developed this fix, I suppose its not the best solution, but if someone wants a working debugger with wx-2.6.2 and knows nothing about codeblocks it should be enough:
in /src/plugins/debuggergdb/gdb_commands.h , lines ~ 200
--- Code: --- if (!m_BP->temporary)
m_Cmd << _T("break ");
else
m_Cmd << _T("tbreak ");
++ wxString s; s.Printf(_("%d"), m_BP->line + 1);
++ m_Cmd << out << _T(":") << s;
-- m_Cmd << out << _T(":") << m_BP->line + 1;
}
--- End code ---
EDIT: the debugger is working now, a pity though it's not highlighting the actual line, nor any other line (breakpoint line, error line)
anonuser:
There shouldn't be any unicode issue with the STL.
there's wstring and string. wstring being the wide character version which is also capable of doing unicode.
Perhaps there is an issue with wxString?
me22:
--- Quote from: anonuser on December 10, 2005, 06:42:39 pm ---There shouldn't be any unicode issue with the STL.
there's wstring and string. wstring being the wide character version which is also capable of doing unicode.
Perhaps there is an issue with wxString?
--- End quote ---
Unfortunatly, wstring is not guaranteed to be unicode =(
In fact, it basically never it, since to be unicode it's have to be UTF-32 ( otherwise you'd have surrogate troubles ) and I've never seen a numeric_limits<wchar_t>::digits large enough for that to be possible.
anonuser:
not according to the gnu standard. wchar must be 32 bits wide. http://www.gnu.org/software/libc/manual/html_node/Extended-Char-Intro.html for more info.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version