Node: Character Set Control, Next: File Naming Control, Previous: Compiling Ada 83 Programs, Up: Switches for gcc
-gnati
c
Normally GNAT recognizes the Latin-1 character set in source program identifiers, as described in the Ada 95 Reference Manual. This switch causes GNAT to recognize alternate character sets in identifiers. c is a single character indicating the character set, as follows:
1
2
3
4
5
9
p
8
f
n
w
See Foreign Language Representation, for full details on the
implementation of these character sets.
-gnatW
e
h
u
s
e
8
b
-gnatW8
specifies that both
brackets and UTF-8
encodings will be recognized. The units that are
with'ed directly or indirectly will be scanned using the specified
representation scheme, and so if one of the non-brackets scheme is
used, it must be used consistently throughout the program. However,
since brackets encoding is always recognized, it may be conveniently
used in standard libraries, allowing these libraries to be used with
any of the available coding schemes.
scheme. If no -gnatW?
parameter is present, then the default
representation is Brackets encoding only.
Note that the wide character representation that is specified (explicitly or by default) for the main program also acts as the default encoding used for Wide_Text_IO files if not specifically overridden by a WCEM form parameter.