From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50232 invoked by alias); 6 Dec 2016 22:47:38 -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 50168 invoked by uid 89); 6 Dec 2016 22:47:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=speaker, 7th, H*RU:sk:aev204., Hx-spam-relays-external:77.55.125.204 X-HELO: aev204.rev.netart.pl Date: Tue, 06 Dec 2016 22:47:00 -0000 From: Rafal Luzynski Reply-To: Rafal Luzynski To: libc-alpha@sourceware.org, Jakub Martisko Message-ID: <79385043.337806.1481064453550@poczta.nazwa.pl> In-Reply-To: <58457FE6.9060803@redhat.com> References: <576117B9.5080105@redhat.com> <583D72AD.2010409@redhat.com> <583D7792.2010500@redhat.com> <1809687502.1414502.1480634954216@poczta.nazwa.pl> <58457FE6.9060803@redhat.com> 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/msg00216.txt.bz2 5.12.2016 15:55 Jakub Martisko wrote: > > > Hello Rafal, > > as for the order of ^# flags - right now the change case > flag works as an upper case flag for options which are in > title case by default (Sun -> SUN) and as lowercase for > those, which are in uppercase by default (AM -> am). In my > opinion, treating "%^#A" and "%#^A" as an idiom for lower > case makes the most sense. If you consider "%#^A", the > output would switch case (whatever that means) and then be > switched to uppercase. The "#" flag would thus be ignored. Yes, that's true. Switching the case and then converting to uppercase wouldn't make sense. And this is how your patch works, as far as I remember: it switches to lowercase no matter what is the order of "#" and "^". I think that this either should be documented or (maybe better) should be treated as an undefined behavior: not documented, maybe producing bad results, maybe even producing correct results, maybe will be changed in future. It may be also explicitly documented as undefined behavior. > As for the title case part of your message, I am probably > not the right person to answer it:-(. I don't think so. :-) I thought you were a non-English native speaker; sorry if I'm wrong but if I'm not then you can provide some valuable input here. How does it look in your native language? Are all months and weekdays names always written in lowercase? Wouldn't you like them to start with an uppercase letter sometimes? For example, if you display a calendar would you prefer "December" or "december" in the header? Or if you display a date with a weekday would you prefer "Wednesday, 7th of december" or "wednesday, 7th of decebmer"? What is your solution to achieve a proper result? Regards, Rafal