Prev: Gnat Programming Studio (GPS) crashes immediately after starton SuSE 11.2
Next: Initialization and Finalization of limited object "returned" by afunction
From: Georg Bauhaus on 11 Feb 2010 20:01 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 11 Feb 2010 20:05 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 11 Feb 2010 20:13 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 12 Feb 2010 06:46
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? |