Re: Glib::ustring in mingw

Hash: SHA1

Em 02-09-2013 19:42, Edscott Wilson escreveu:
> Hey,
>    If I use Glib::ustring in Linux, everything works fine. But when I compile the program under mingw in windows, segv invariably follows any GLib::ustring. Methinks the culprit would be the internal utf-8 conversions which distiguish Glib:ustring from std:string.
>    If I try to specify locale with:
> |std::locale::global(std::locale(""));|
>    Will abort the program (invalid locale, windows will argue). The only locale that seems to work is "C".
> Further information: the program in question is also using glade to build the gtk window framework. Maybe the glade gettext stuff screws things up with Glib::ustring?   Usage of giomm and other functions which rely on Glib:ustring will also lead to segv.
> Any ideas or pointers on the subject will be greatly appreciated.

Boa noite!
Tive problemas com a convers ̄o de tipos no in■cio mas o Glib::ustring resolveu tudo sem problemas, a nica altera￧ ̄o que tive que fazer para sistemas em win32 foi acrescentar a biblioteca correspondente ao SO <windows.h>.
Segue o techo que usei para testar:
#if  defined(__WIN32__) || defined(__WIN__)
#include <windows.h>

Para esclarecer tenho um sistema de Fluxo de Caixa rodando em ambos os sistemas feito em GTKmm com acesso a banco de dados MYSQL e POSTGRESQL.


Good night!
I had problems with type conversion in the beginning but the Glib :: ustring solved everything without problems, the only change I had to do was to add win32 systems in the library corresponding to SO <windows.h>.
Follows the techo I used to test:
# if defined (__WIN32__) | | defined (__WIN__)
# include <windows.h>
# endif

To have a clear system cash flow running on both systems made ??in GTKmm with access to MYSQL database and POSTGRESQL.


- --
Paz e Bem!
Alcione Ferreira
- -----------------------------------------------
Liberdade e conhecimento ao alcance de todos.

Office Escrit￳rio -
Navegador Firefox -
Email Thunderbird -
- ---------------------------------------------------------------
Linux user number 432030 of
- ---------------------------------------------------------------
ICQ: 377035698
Jabber: ksombrah jabber org
MSN: alcione sombra hotmail com
- ---------------------------------------------------------------
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -


Attachment: 0x0D2F8DEF.asc
Description: application/pgp-keys

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