* GNAT and ISO 10646 (UTF) characters
@ 2010-02-12 1:01 Georg Bauhaus
2010-02-12 1:05 ` Georg Bauhaus
0 siblings, 1 reply; 4+ messages in thread
From: Georg Bauhaus @ 2010-02-12 1:01 UTC (permalink / raw)
Using -gnatW8 and -gnati8 works just fine when
an input file is using international characters.
Gnatstub does not seem to know about the same international
characters, though. Or have I just missed the options
I should specify?
Some hodgepodge source text (encoded using UTF-8) for the
sake of an example (with apologies to the French):
package Largeur is
type Metre is delta 0.001 digits 9 range 0.0 .. 10_000.0;
function Imprimé (C : Character) return Metre;
end Largeur;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNAT and ISO 10646 (UTF) characters
2010-02-12 1:01 GNAT and ISO 10646 (UTF) characters Georg Bauhaus
@ 2010-02-12 1:05 ` Georg Bauhaus
2010-02-12 1:13 ` Georg Bauhaus
2010-02-12 11:46 ` Georg Bauhaus
0 siblings, 2 replies; 4+ messages in thread
From: Georg Bauhaus @ 2010-02-12 1:05 UTC (permalink / raw)
On 2/12/10 2:01 AM, Georg Bauhaus wrote:
> package Largeur is
>
> type Metre is delta 0.001 digits 9 range 0.0 .. 10_000.0;
>
> function Imprimé (C : Character) return Metre;
>
> end Largeur;
I forgot, sorry:
$ gnatstub -v largeur.ads
GNATSTUB (built with ASIS 2.0.R for GNAT GPL 2009 (20090519))
Copyright 1997-2009, Free Software Foundation, Inc.
largeur.ads:5:20: illegal character
gnatstub: cannot create the tree file for largeur.ads
$
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNAT and ISO 10646 (UTF) characters
2010-02-12 1:05 ` Georg Bauhaus
@ 2010-02-12 1:13 ` Georg Bauhaus
2010-02-12 11:46 ` Georg Bauhaus
1 sibling, 0 replies; 4+ messages in thread
From: Georg Bauhaus @ 2010-02-12 1:13 UTC (permalink / raw)
On 2/12/10 2:05 AM, Georg Bauhaus wrote:
> On 2/12/10 2:01 AM, Georg Bauhaus wrote:
>> package Largeur is
>>
>> type Metre is delta 0.001 digits 9 range 0.0 .. 10_000.0;
>>
>> function Imprimé (C : Character) return Metre;
>>
>> end Largeur;
>
> I forgot, sorry:
>
> $ gnatstub -v largeur.ads
> GNATSTUB (built with ASIS 2.0.R for GNAT GPL 2009 (20090519))
> Copyright 1997-2009, Free Software Foundation, Inc.
> largeur.ads:5:20: illegal character
> gnatstub: cannot create the tree file for largeur.ads
> $
>
And when trying to work around the illegal character
by (naively) reusing the tree file built by GNAT, I get
$ gnatstub -v -r largeur.ads
GNATSTUB (built with ASIS 2.0.R for GNAT GPL 2009 (20090519))
Copyright 1997-2009, Free Software Foundation, Inc.
Unexpected bug in GNATSTUB (built with ASIS 2.0.R for GNAT GPL 2009
(20090519))
ASIS.EXCEPTIONS.ASIS_INAPPROPRIATE_CONTEXT raised
gnatstub: ASIS Diagnosis is Unopened Context argument in
Asis.Extensions.Main_Unit_In_Current_Tree
gnatstub: Status Value is VALUE_ERROR
Please report to ...@gnat.com
Which I'll do.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNAT and ISO 10646 (UTF) characters
2010-02-12 1:05 ` Georg Bauhaus
2010-02-12 1:13 ` Georg Bauhaus
@ 2010-02-12 11:46 ` Georg Bauhaus
1 sibling, 0 replies; 4+ messages in thread
From: Georg Bauhaus @ 2010-02-12 11:46 UTC (permalink / raw)
Georg Bauhaus schrieb:
> On 2/12/10 2:01 AM, Georg Bauhaus wrote:
>> package Largeur is
>>
>> type Metre is delta 0.001 digits 9 range 0.0 .. 10_000.0;
>>
>> function Imprimé (C : Character) return Metre;
>>
>> end Largeur;
>
> I forgot, sorry:
>
> $ gnatstub -v largeur.ads
Sorry for creating more noice, I had not seen gcc_switches,
i.e. -cargs, which can be specified on the gnatstub command
line. However, the result is still Latin-1 output. International
wide_string "€" (the EUR sign) becomes " " (blank).
Has anyone used this and can tell me what I'm doing wrong?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-12 11:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-12 1:01 GNAT and ISO 10646 (UTF) characters Georg Bauhaus
2010-02-12 1:05 ` Georg Bauhaus
2010-02-12 1:13 ` Georg Bauhaus
2010-02-12 11:46 ` Georg Bauhaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox