This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Req: Disable I18N/L10N translation for gcc-print-search-dirsoutput.
Zack Weinberg wrote:
> > Neil's disagreement well taken.
> > (Improving its output recognition is one option.
> > But up until now, we had no idea HOW the output would change
> > if LC_ALL is non-default.
> > As of now, I put env LC_ALL=C LANG=C to the
> > problematic gcc invocation. But I shudder to think about
> > old project files which we probably re-visit again.)
>
> LC_MESSAGES=C should disable translation without any other effect.
> (Not all systems support this variable, however.)
Thank you for the info. Hmm, I am not sure which system supports
LC_MESSAGES
and which doesn't.
> > However, I would prefer to have something similar to Zack's suggestion.
> >
> > For that matter, it would be great to have a list of
> > GCC output and an indication of which part is the subject
> > of I18N/L10N translation. Someone who works with me
> > and doesn't usually set LC_ALL, LANG will have no idea
> > that his/her script/program will misbehave due to
> > the output alteration.
>
> For both these things, patches are welcome. You are probably in a
> better position to write them than I am, since you have firsthand
> experience with the side effects of I18N/L10N.
I have downloaded the GCC-3.3 tar ball from gnu mirror site.
I will see if I can create a patch to
add the command options a la Zack's suggestion.
(In the meantime, I will see if I can find the cause of the
"slowness" of recent gcc if possible.)
Having a list of strings seem to require the use of xgettext() [
xstring(s)
doesn't seem to exist on Debian GNU/Linux) and
a heavy massaging afterward and I am not sure
how to go about it. So I will not attempt it as of now.
Happy Hacking,
Ishikawa, Chiaki
--
int main(void){int j=2003;/*(c)2003 cishikawa. */
char t[] ="<CI> @abcdefghijklmnopqrstuvwxyz.,\n\"";
char *i ="g>qtCIuqivb,gCwe\np@.ietCIuqi\"tqkvv is>dnamz";
while(*i)((j+=strchr(t,*i++)-(int)t),(j%=sizeof t-1),
(putchar(t[j])));return 0;}/* under GPL */