This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][BZ #15527] strftime_l.c: Support lowercase output


Hi Andreas,

thanks for your comment. The reason why I sent the patch is that there is a bug/feature request for similar functionality in coreutils' "date" program and the maintainers of coreutils/gnulib do not want to diverge from the glibc interface. Even though the replacing you mentioned does indeed work, built-in version would be imo better (for example when using other shell than bash), especially when all of the needed functionality was already implemented.

Jakub

On 15.6.2016 11:08, Andreas Schwab wrote:
Jakub Martisko <jamartis@redhat.com> writes:

  @item ^
-The output uses uppercase characters, but only if this is possible
+The output uses uppercase characters, but only if this is possible.
+
+@item #
+The output uses opposite case characters, but only if this is possible.
+Can be combined with @samp{^} to produce lowercase characters.
  (@pxref{Case Conversion}).
  @end table

Bash is using ${x^} and ${x,} for case replacing expansions.

Andreas.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]