Re: Glib::ustring in mingw




-----BEGIN PGP SIGNED MESSAGE-----
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>
#endif

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.

Att.

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.

Att


- --
Paz e Bem!
Alcione Ferreira
Sombraᆴ
101080
[http://www.alcionesytes.net/]
- -----------------------------------------------
Liberdade e conhecimento ao alcance de todos.

Office Escrit￳rio - http://www.openoffice.org.br/
Navegador Firefox - http://www.mozilla.org.br/
Email Thunderbird - http://www.mozilla.org.br/
- ---------------------------------------------------------------
Linux user number 432030 of http://counter.li.org/
- ---------------------------------------------------------------
ICQ: 377035698
Jabber: ksombrah jabber org
MSN: alcione sombra hotmail com
- ---------------------------------------------------------------
Curriculum: http://lattes.cnpq.br/0545256741852110
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIlWlYACgkQ3m8gMw0vje8rsQCghrsGF7EUgmotLNOaI9m1UpAV
e/IAn0Bk7n19EezZWyXRSFPXol0n046D
=yiEc
-----END PGP SIGNATURE-----

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



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