Re: [gtkmm] Does Gtkmm, Glibmm work on systems where sizeof(wchar_t) < sizeof(gunichar)?
- From: Murray Cumming <murrayc murrayc com>
- To: Anastasios Bassoukos <abas aix meng auth gr>
- Cc: Paul Elliott <pelliott io com>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Does Gtkmm, Glibmm work on systems where sizeof(wchar_t) < sizeof(gunichar)?
- Date: Wed, 24 Mar 2004 15:31:39 +0100
On Wed, 2004-03-24 at 10:08, Anastasios Bassoukos wrote:
> On Tue, 2004-03-23 at 23:56, Paul Elliott wrote:
>
> > My original question is: "Does gtkmm, glibmm run on any systems
> > where sizeof(wchar_t) == 2?" (I want my code to use another
> > library (boost::regex) that needs these characters to be in wchar_t.)
>
> Yes. If you can accept the fact that your program will be broken for
> uncommon locales, you can simply assign gunichars to wchar_t.
I think there is almost certainly some encoding conversion to do here,
rather than just forcing characters into different bytes. There's more
to a encoding than how bit its bytes are, or whether they are multibyte.
If it was me, I would want to know what encoding the library uses, and
whether that encoding can support the locales that I want.
--
Murray Cumming
www.murrayc.com
murrayc murrayc com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]