diff options
author | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-20 13:35:38 +0000 |
---|---|---|
committer | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-20 13:35:38 +0000 |
commit | 33a62e3f367250cd0c22fea39dffcc6b9a6f33ac (patch) | |
tree | 671dda9b98d314335b4825d12e41d06427ebd8ce /gcc/invoke.texi | |
parent | 293c562e711efa3e1a5fb9c36437a9a259528e45 (diff) | |
download | gcc-33a62e3f367250cd0c22fea39dffcc6b9a6f33ac.tar.gz |
Mon Jul 20 16:16:38 1998 Dave Brolley <brolley@cygnus.com>
* configure.in (enable_c_mbchar): New configure option.
(extra_cpp_objs): Always available now.
* cexp.y (mbchar.h): #include it.
(yylex): Handle Multibyte characters in character literals.
* cccp.c (mbchar.h): #include it.
(main): Set character set based on LANG environment variable.
(rescan): Handle multibyte characters in comments.
(skip_if_group): See above.
(validate_else): See above.
(skip_to_end_of_comment): See above.
(macarg1): See above.
(discard_comments): See above.
(rescan): Handle multibyte characters in string and character literals.
(collect_expansion): See above.
(skip_quoted_string): See above.
(macroexpand): See above.
(macarg1): See above.
(discard_comments): See above.
(change_newlines): See above.
* c-lex.c (mbchar.h): #include it.
(GET_ENVIRONMENT): New macro.
(init_lex): Set character set based on LANG environment variable.
(yylex): Handle multibyte characters in character literals.
(yylex): Handle multibyte characters in string literals.
* Makefile.in (mbchar.o): New target.
(cccp$(exeext)): @extra_cpp_objs@ is always available.
(cppmain$(exeext)): @extra_cpp_objs@ is always available.
* mbchar.[ch]: New files for multibyte character handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21303 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/invoke.texi')
-rw-r--r-- | gcc/invoke.texi | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/gcc/invoke.texi b/gcc/invoke.texi index 8056b8478bb..3b3ad4313db 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -5964,8 +5964,9 @@ the language standard. You should not need to use these options yourself. @cindex environment variables This section describes several environment variables that affect how GNU -CC operates. They work by specifying directories or prefixes to use -when searching for various kinds of files. +CC operates. Some of them work by specifying directories or prefixes to use +when searching for various kinds of files. Some are used to specify other +ascpects of the compilation environment. @ifclear INTERNALS Note that you can also specify places to search using options such as @@ -6065,6 +6066,28 @@ which case the Make rules are written to that file, guessing the target name from the source file name. Or the value can have the form @samp{@var{file} @var{target}}, in which case the rules are written to file @var{file} using @var{target} as the target name. + +@item LANG +@findex LANG +@cindex locale definition +This variable is used to pass locale information to the compiler. One way in +which this information is used is to determine the character set to be used +when character literals, string literals and comments are parsed in C and C++. +When the compiler is configured to allow multibyte characters, +the following values for @code{LANG} are recognized: + +@table @code +@item C-JIS +Recognize JIS characters. +@item C-SJIS +Recognize SJIS characters. +@item C-EUCJP +Recognize EUCJP characters. +@end table + +If @code{LANG} is not defined, or if it has some ther value, then the +compiler will use mblen and mbtowc as defined by the default locale to +recognize and translate multibyte characters. @end table @node Running Protoize |