From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92915 invoked by alias); 9 Dec 2016 01:14:54 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 92905 invoked by uid 89); 9 Dec 2016 01:14:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=vapiergentooorg, vapier@gentoo.org, lean, Hx-languages-length:1479 X-HELO: aev204.rev.netart.pl Date: Fri, 09 Dec 2016 01:14:00 -0000 From: Rafal Luzynski Reply-To: Rafal Luzynski To: Mike Frysinger , Jakub Martisko Cc: libc-alpha@sourceware.org Message-ID: <65344612.479215.1481246089816@poczta.nazwa.pl> In-Reply-To: <20161207153904.GL10558@vapier.lan> References: <576117B9.5080105@redhat.com> <57737EE8.8070706@redhat.com> <20161206232035.GH10558@vapier.lan> <5847E1D6.5040509@redhat.com> <20161207153904.GL10558@vapier.lan> Subject: Re: [PATCH][BZ #15527] strftime_l.c: Support lowercase output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Originating-Client: com.openexchange.ox.gui.dhtml X-SW-Source: 2016-12/txt/msg00303.txt.bz2 7.12.2016 16:39 Mike Frysinger wrote: > [...] might be good to get wider opinion about new > strftime flags though. > -mike Now I lean a little against this change. As I wrote before, I'd love to see a flag to change the first letter to uppercase (or to titlecase, if that's more appropriate). A flag to change whole string to lowercase would be a workaround for this problem if we also converted all months and weekdays names to the titlecase in all languages, like in English now. So we would have: - titlecase by default, - lowercase if a flag is added explicitly, - uppercase if a flag is added explicitly. All reasonable cases covered. Except that converting all locale data would cause some problems to existing software and that it wouldn't help the applications which retrieve the months names or weekdays names with nl_langinfo() rather than strftime(). So indeed I think that a flag to convert to titlecase would be more useful. But in that case, do you guys think that converting to lowercase is useful if all letters are either lowercase already or should be always as they are now? Can you explain why would any application ever need the lowercase which should be provided by a format flag rather than converting programmatically? It seems to be useful only if some locales want to convert some data to lowercase and they don't have it lowercase out of the box. Regards, Rafal