This is the mail archive of the glibc-bugs@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]

[Bug locale/19133] Lowercase months in Portuguese language


https://sourceware.org/bugzilla/show_bug.cgi?id=19133

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |carlos at redhat dot com

--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to ivofernandes12 from comment #0)
> I don't know if this is the right place.. If not I'm sorry :)

I can't reproduce this.

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <locale.h>

int
main (void)
{
  time_t rawtime;
  const struct tm *ltime;
  char buf[1024];

  time (&rawtime);
  ltime = localtime (&rawtime);  
  setlocale (LC_ALL, "pt_BR.UTF-8");
  strftime (buf, 1024, "%A, %e de %B de %Y", ltime);
  printf ("%s\n", buf);
  exit (0);
}
gcc -std=gnu99 -Wall -pedantic -o date date.c
quarta, 14 de outubro de 2015

Use of %B produces correctly lower-cased month name for pt_BR locale.

Please specify which locale and which version of glibc you are using.

Please provide a test program.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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