List Info

Thread: About Language.




About Language.
country flaguser name
Greece
2007-05-30 15:58:42
Currently, there is an entry about letting the user to
decide 
about the Language. This is set to $LANG by default, that
means it 
will read the $LANG environment variable of the local system
(host).

I am proposing to set it as default in C locale, for three
reasons.

I. 
   Help us to narrow the errors. For example, and if I
remember correctly,
   the problem Dan had with the Dash shell, which besides
the bug, was
   causing because he was building from an en_US.UTF-8
locale. Dan
   correct me, if my memory fools me.

II. 
   Display of the messages, during the compilation.
   I have to say that, although it's hard for me to express
myself (sometimes)
   in English language, it makes absolutely no sense to
display the 
   compiler messages in my native language. It's just
stupid. 
   And not only the compiler messages, but all the technical
terms.
   English language is the standard in that regard and
should be used
   always.
   DO you know how the word "compiling" translated
in my language?
   Hang on. Μεταγλωτισμός.

ΙΙΙ.
   The third reason has to do with the actual word that is
being used to
   describe the C locale. 
   It's the "Standard" C locale. 
   By that alone, is enough reason for to recommend and
support only this
   locale.
   We have already enough freedom and some kind of anarchy
in the Linux
   world. And I don't care what the others do. But we, as
Linux From Scratch
   I believe (we) had the obligation to keep these standards
and not
   deviate even a bit from them. 
   There is a plenty of ground to deviate, but lets keep it
away (deviation)
   from the toolchain.

I know this probably belongs to LFS and not only to ALFS,
but I know Matthew
and all of the editors of LFS, following ALFS discuss, so
feel free
first, to express your opinion and second to redirect the
conversation
to LFS-dev if you find that there is some rationale behind
it.
    

-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: About Language.
user name
2007-05-31 01:57:19
On 5/30/07, Ag. D. Hatzimanikas <a.hatzimgmail.com> wrote:
> Currently, there is an entry about letting the user to
decide
> about the Language. This is set to $LANG by default,
that means it
> will read the $LANG environment variable of the local
system (host).
>
> I am proposing to set it as default in C locale, for
three reasons.

I agree. I say set LANG=C. If anyone wants to take a chance
and format
messages in their language or something, they're free to
override
things with LC_*. But working with C sources when not in the
C locale
can have issues. See locale(7).

> I.
>    Help us to narrow the errors. For example, and if I
remember correctly,
>    the problem Dan had with the Dash shell, which
besides the bug, was
>    causing because he was building from an en_US.UTF-8
locale. Dan
>    correct me, if my memory fools me.

Right. The problem was that there was a script to generate a
btree of
builtins for dash. The script used sort, which is affected
by
LC_COLLATE. I had LANG=en_US.UTF-8 set and nothing else. The
result
was an improperly sorted binary tree, breaking dash. It was
not a fun
issue to track down, I promise you.

> II.
>    Display of the messages, during the compilation.
>    I have to say that, although it's hard for me to
express myself (sometimes)
>    in English language, it makes absolutely no sense to
display the
>    compiler messages in my native language. It's just
stupid.
>    And not only the compiler messages, but all the
technical terms.
>    English language is the standard in that regard and
should be used
>    always.

IIRC, this is detrimental in the kernel, too. I believe
/proc/version
will end up localized, breaking scripts. This, I believe is
affected
by LC_MESSAGES. Alexander could fill in the details on that
one. He's
brought up before how not being in the C locale breaks the
kernel
build.

>    It's the "Standard" C locale.
>    By that alone, is enough reason for to recommend and
support only this
>    locale.

In the context of compiling source code, I agree. Obviously,
you're
not saying that everyone should use the C locale at all
times. Then
when would I get to see all those fun Greek letters?

Maybe Alexander will drop a note in here, although I don't
know if he
reads alfs-discuss. I'm sure he would blast my level of
understanding
of locales, though 

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: About Language.
country flaguser name
Spain
2007-05-31 11:47:25
El Miércoles, 30 de Mayo de 2007 22:58, Ag. D. Hatzimanikas
escribió:
> Currently, there is an entry about letting the user to
decide
> about the Language. This is set to $LANG by default,
that means it
> will read the $LANG environment variable of the local
system (host).
>
> I am proposing to set it as default in C locale, for
three reasons.

In the first times jhalfs was setting LANG=C (in fact, in
lfs.xsl the default 
value for the "lang" param is still
"C"), but several time ago was requested 
the it should defaulting to the host $LANG setting. I don't
remember who or 
why, but $LANG is more closer to what the book expect than
C.

The LANG envar is used by jhalfs only to create a very
simple /etc/profile 
file like the one discussed in

http://www.linuxfromscratch.org/lfs/v
iew/development/chapter07/profile.html

We can discuss here if jhalfs should create or not such
default /etc/profile, 
but to discuss if the LANG value set in /etc/profile should
be "C" or a 
native locale is for lfs-dev list. 

-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfroms
cratch.org
LFS en castellano: http://www.escomp
oslinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )