Re: What shall we do with the GECOS field again?

From: Horst von Brand <vonbrand@inf.utfsm.cl>
Date: 2005-09-20 13:12:02
Junio C Hamano <junkio@cox.net> wrote:
> Linus Torvalds <torvalds@osdl.org> writes:
> > The Perl User::pwent module seems to agree, btw (also about '&'):
> >
> >    "Interpretation of the gecos field varies between systems, but
> >     traditionally holds 4 comma-separated fields containing the user's
> >     full name, office location, work phone number, and home phone number.  
> >
> >     An & in the gecos field should be replaced by the user's properly
> >     capitalized login name."
> 
> I vaguelly recall seeing that & somewhere and wondering what
> they do with mcdonalds ;-)

You can't use it in that case.

> > I still worry about names of the type "Torvalds, Linus", but maybe that's 
> > just not an issue.
> 
> Does not appear to be.  So I'd vote for us doing the "cut at
> first comma, substitute & with toupper(login[0])+login[1..]".

That is exactly the intent.
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Sep 20 13:28:51 2005

This archive was generated by hypermail 2.1.8 : 2005-09-20 13:29:24 EST