Package: libwxgtk2.5-dev
Version: 2.5.3.2

Hi,

>From one of the tutorials referenced from the wxWidget site, there is
this example of using wxTextCtrl to load a text file with LoadFile. Now,
I seem to need to pass a wchar arg. otherwise I get 

text_edit.cpp: In member function `void BasicFrame::OnOpenFile(wxCommandEvent&)
   ':
text_edit.cpp:77: error: conversion from `char[32]' to `const wxString' is
   ambiguous
/usr/include/wx-2.5/wx/string.h:646: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx-2.5/wx/string.h:635: error:
   wxString::wxString(int) <near match>

However if I do that (like L"myfile.txt"), I get this runtime error from gtk:

(text_edit:28235): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion 
`g_utf8_validate (text, len, NULL)' failed

So gtk wants utf8, but I can't pass it because of the wchar.

Thanks,
Koos

***************DISCLAIMER***************
Bewijs van Afstand:
Dit emailbericht is slechts bestemd voor de personen aan wie het is gericht
en kan informatie bevatten die persoonlijk of vertrouwelijk is en niet
openbaar mag worden gemaakt zonder goedkeuring van de auteur.
Indien u dit bericht per vergissing heeft ontvangen, verzoeken wij u ons op
de hoogte te stellen en het bericht te vernietigen zonder het te kopiëren of
te distribueren.
Ons bedrijf staat niet in voor juiste en volledige overbrenging van de inhoud
van een verzonden bericht, noch voor de tijdige ontvangst daarvan.
Disclaimer:
This E-mail is for use of the intended recipient(s) only and can contain
information that is personal or confidential. It is prohibited to distribute
the content of this message without the author's prior permission.
If you have received it in error, please notify the sender and immediately
delete this message without distributing or retaining copies hereof.
Our company is not responsible for the comprehensiveness of this message nor
it's time of delivery.
*********************************************


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to