From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25477 invoked by alias); 7 Nov 2013 03:16:18 -0000 Mailing-List: contact libc-locales-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-locales-owner@sourceware.org Received: (qmail 31468 invoked by uid 55); 7 Nov 2013 02:26:40 -0000 From: "bugdal at aerifal dot cx" To: libc-locales@sourceware.org Subject: [Bug localedata/14641] Add a strftime()-like function for formatting human names Date: Thu, 07 Nov 2013 03:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00062.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14641 --- Comment #9 from Rich Felker --- On Wed, Nov 06, 2013 at 11:57:48PM +0000, keld at keldix dot com wrote: > The intended use is then to switch to the locale of the address in question, > for eg formatting of an address for a postal letter. This is not the way locales are supposed to be used. You don't just keep switching them around at runtime. In your specific example of formatting a letter, it's wrong, because you want the address formatted according to the cultural conventions of the place in which it's being sent, but the name written the way the recipient's name is supposed to be written. > To find the correct locale for a given address is not straightforward. > You would often have a country associated with the address and then you could > find a locale related to that country. But that has nothing to do with how the name should be formatted, only with how the address should be formatted. Also, depending on your locale, the matter of formatting an address can depend on the conventions of the recipient's country or the sender's. In any case this logic is all way outside the scope of libc locale. -- You are receiving this mail because: You are on the CC list for the bug.