From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15140 invoked by alias); 9 Dec 2016 22:37:35 -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 15125 invoked by uid 89); 9 Dec 2016 22:37:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=vapiergentooorg, vapier@gentoo.org, German, H*x:Mailer X-HELO: aev204.rev.netart.pl Date: Fri, 09 Dec 2016 22:37:00 -0000 From: Rafal Luzynski Reply-To: Rafal Luzynski To: Mike Frysinger Cc: libc-alpha@sourceware.org, Jakub Martisko Message-ID: <1429605961.543355.1481323049337@poczta.nazwa.pl> In-Reply-To: <20161209162009.GX10558@vapier.lan> References: <576117B9.5080105@redhat.com> <57737EE8.8070706@redhat.com> <20161206232035.GH10558@vapier.lan> <5847E1D6.5040509@redhat.com> <20161207153904.GL10558@vapier.lan> <65344612.479215.1481246089816@poczta.nazwa.pl> <20161209040755.GU10558@vapier.lan> <2084633656.584531.1481281202974@poczta.nazwa.pl> <20161209162009.GX10558@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/msg00334.txt.bz2 9.12.2016 17:20 Mike Frysinger wrote: > > > On 09 Dec 2016 12:00, Rafal Luzynski wrote: > > [...] > > That's really not what I meant. I meant that switching all locale > > data to titlecase would be possible only if there was a flag to > > switch back to lowercase. > > i'm saying the flags are irrelevant. the data should be in the form > that is appropriate for that locale. that might mean uppercase, or > lowercase, or titlecase. flags would not help at all, and in fact, > they would make things worse. en_US authors would see that, think > that it's weird looking, and then use the titlecase flag. then it'd > be broken for many other locales. Format strings should be translatable and it should be left to translators what format string and what flags they want. An application should present all messages, format strings, and date/time data either in en_US or all should be localized, otherwise we get some unfinished mix of localized/not-yet-localized. So although it's correct to use titlecase in English it should not be relevant for other languages. > > Yes, in my language (and I think that in most languages) we have > > all months names and weekdays names in lowercase and this is correct > > by default. But we have no flag to switch to titlecase and > > I think it would be useful sometimes. > > i have a hard time seeing a valid usecase where the code forcing > titlecase all the time would be desirable. No, I didn't mean a code forcing titlecase all the time. My aim is to provide a choice: lowercase/titlecase/uppercase, for each format specifier individually. For now in English (and German) we have titlecase/uppercase, in other languages we have lowercase/uppercase. What is a solution to provide the missing case? > forcing all lower or > upper case isn't that hard to imagine (e.g. output forms where > *all* content, not just dates, are in the respective cases). I agree with the uppercase, but is it really useful to have all lowercase in English? > > > [...] > > > we already have a flag to force it to uppercase. makes sense to have > > > a flag to do the opposite. your arguments here apply to the uppercase > > > flag too. > > > > No, does not. I didn't say anything about uppercase, if I had > > to say I'd say it's correct so let's leave it as it is now. > > What I wanted to say is that we don't have a flag to switch > > to titlecase. > > > > My question was: what is the real problem solved by implementing > > a flag to switch to lowercase? > > i didn't say you talked about uppercase. my point is that your argument > isn't specific to lowercase. you could s/lower/upper/ and have the same > points. so why do you think having uppercase makes sense but adding > lowercase is wrong ? Because we already have all data in lowercase. No need to convert from lowercase to lowercase. More precisely: in some languages the data are in titlecase but should remain so, converting them to lowercase is incorrect. My point is not that lowercase flag is wrong or destructive, I just think it does not provide any additional value. A separate problem is that there is no flag to convert to titlecase. My suggestion is that if we had locale data in titlecase (like in English) and a flag to convert them to lowercase explicitly then it would be a workaround. Of course a titlecase flag would be better. But, again, that's a separate case, only similar to the lowercase flag. Regards, Rafal