Public bug reported:
calls to setlocale fail. This effects perl POSIX's setlocale as well.
Test case:
#include<stdio.h>
#include<locale.h>
int main(int argc,char** argv)
{
char* locale="en_US";
if (argc>1)
locale=argv[1];
char* lres = setlocale(LC_ALL, locale);
if (lres != NULL)
printf("%d:%s\n",LC_ALL, lres);
}
EXPECTED RESULT:
setlocale(LC_ALL, "en_US") ;
should return a pointer to a char* saying "en_US".
Note: the original reporter indicated the bug was in package 'libc';
however, that package was not published in Ubuntu.
** Affects: Ubuntu
Importance: Untriaged
Status: Unconfirmed
--
locale is broken. setlocale does not return expected results.
https://launchpad.net/bugs/51624
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs