From: Georg Bauhaus on
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;
From: Georg Bauhaus on
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
$

From: Georg Bauhaus on
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.
From: Georg Bauhaus on
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?