* Chess game in character over MS Windows
@ 2019-03-01 13:07 manueledensenster
2019-03-01 13:08 ` manueledensenster
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: manueledensenster @ 2019-03-01 13:07 UTC (permalink / raw)
Hello,
I have inserted the 12 Wide_Character into a string of length 12 but gnatmake say at the exécution : length check failed.
Help me please.
I have tested with UTF-8-auto-dos encoding with Emacs.
With GPS in UTF-8 is the same problem.
Thank you.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Chess game in character over MS Windows
2019-03-01 13:07 Chess game in character over MS Windows manueledensenster
@ 2019-03-01 13:08 ` manueledensenster
2019-03-01 13:17 ` manueledensenster
2019-03-01 13:32 ` manueledensenster
2 siblings, 0 replies; 4+ messages in thread
From: manueledensenster @ 2019-03-01 13:08 UTC (permalink / raw)
On Friday, March 1, 2019 at 2:07:21 PM UTC+1, manueled...@gmail.com wrote:
> Hello,
>
> I have inserted the 12 Wide_Character into a string of length 12 but gnatmake say at the exécution : length check failed.
>
> Help me please.
>
>
> I have tested with UTF-8-auto-dos encoding with Emacs.
>
> With GPS in UTF-8 is the same problem.
>
> Thank you.
Sorry !
With GPS the program is normaly exécuted but the Wide_Character images are no printed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Chess game in character over MS Windows
2019-03-01 13:07 Chess game in character over MS Windows manueledensenster
2019-03-01 13:08 ` manueledensenster
@ 2019-03-01 13:17 ` manueledensenster
2019-03-01 13:32 ` manueledensenster
2 siblings, 0 replies; 4+ messages in thread
From: manueledensenster @ 2019-03-01 13:17 UTC (permalink / raw)
On Friday, March 1, 2019 at 2:07:21 PM UTC+1, manueled...@gmail.com wrote:
> Hello,
>
> I have inserted the 12 Wide_Character into a string of length 12 but gnatmake say at the exécution : length check failed.
>
> Help me please.
>
>
> I have tested with UTF-8-auto-dos encoding with Emacs.
>
> With GPS in UTF-8 is the same problem.
>
> Thank you.
Sorry bis.
Ok, over MS Windows the problem is same over GPS or simple make with gnatmake and GtkAda.
My program is an chess game in text in a GtkAda project.
Sensibly the cocage of 12 Wide_Character is Ok.
But the Chess character are not printed.
I convert The literal Wide_Character with the line :
[code]
Locale_From_Utf8
(Ada.Strings.UTF_Encoding.Conversions.Convert
("" & Images(Piece_Type'Pos(Piece)),
UTF_8)
)
[/code]
To be inserted in gtk_text_buffer.
Thank you for your help.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Chess game in character over MS Windows
2019-03-01 13:07 Chess game in character over MS Windows manueledensenster
2019-03-01 13:08 ` manueledensenster
2019-03-01 13:17 ` manueledensenster
@ 2019-03-01 13:32 ` manueledensenster
2 siblings, 0 replies; 4+ messages in thread
From: manueledensenster @ 2019-03-01 13:32 UTC (permalink / raw)
On Friday, March 1, 2019 at 2:07:21 PM UTC+1, manueled...@gmail.com wrote:
> Hello,
>
> I have inserted the 12 Wide_Character into a string of length 12 but gnatmake say at the exécution : length check failed.
>
> Help me please.
>
>
> I have tested with UTF-8-auto-dos encoding with Emacs.
>
> With GPS in UTF-8 is the same problem.
>
> Thank you.
Ok, i'am sorry. The problem is solved. I have removed Local_From_UTF8 instruction. And the chess character is printed.
Thank you very much.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-01 13:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-01 13:07 Chess game in character over MS Windows manueledensenster
2019-03-01 13:08 ` manueledensenster
2019-03-01 13:17 ` manueledensenster
2019-03-01 13:32 ` manueledensenster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox