[gtkada] Problem with writting accents in Button

I xer-pil at terra.es
Fri May 17 18:37:17 CEST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hello.
I'm writting a program which needs to use writting accents. In Linux
GtkAda shows writting accents perfectly but in Windows it doesn't.
Instead of the characters i wrote it shows strange mixture of ASCII
character. I send a little program which works badly in a Windows 2000
machine. Any idea on how to fix it?

with Gtk.Window, Gtk.Main, Gtk.Button;

procedure Acentos is
~    Win    : Gtk.Window.Gtk_Window;
~    Button : Gtk.Button.Gtk_Button;
begin
~    Gtk.Main.Set_Locale;
~    Gtk.Main.Init;

~    Gtk.Window.Gtk_New(Win);
~    Gtk.Button.Gtk_New(Button,"|ñ|Ñ|á|é|í|ó|ú|Á|É|Í|Ó|Ú|"); -- PROBLEM
HERE!
~    Gtk.Window.Add(Win, Button);

~    Gtk.Window.Show_All(Win);
~    Gtk.Main.Main;
end Acentos;

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE85TG6ZCbKnLn9SKURAnrNAJ9+xjZeKFCoymtyIoggQLFhO5MJfgCeJunK
UKqZX2JjInF5Z66s4lnfg04=
=LQVG
-----END PGP SIGNATURE-----





More information about the gtkada mailing list