While doing cleanup, found following bug/feature request. Combination of
^(upper case) and #(opposite case) flags should set to_lowercase flag in
strftime.c.
https://sourceware.org/bugzilla/show_bug.cgi?id=15527
https://bugzilla.redhat.com/show_bug.cgi?id=749704
>From 060489d0faa5ef4ebdbefd2bed495df1d2adb60c Mon Sep 17 00:00:00 2001
From: Jakub Martisko <jamar...@redhat.com>
Date: Tue, 12 Apr 2016 15:06:01 +0200
Subject: [PATCH] strftime.c: Support lowercase output
* lib/strftime.c: Combination of to_upcase and change_case now sets
to_lowcase to true and to_upcase and change_case to false. This produces
lowercase output when both # and ^ flags are used
Reported at bugzilla.redhat.com/show_bug.cgi?id=749704
---
lib/strftime.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/strftime.c b/lib/strftime.c
index 4e65190..bb1f4de 100644
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -640,6 +640,12 @@ strftime_case_ (bool upcase, STREAM_OR_CHAR_T *s,
}
break;
}
+ if (to_uppcase == true && change_case == true)
+ {
+ change_case = false;
+ to_uppcase = false;
+ to_lowcase=true;
+ }
/* As a GNU extension we allow the field width to be specified. */
if (ISDIGIT (*f))
--
2.5.0