What does this give you:

$ locale charmap

?  I get "UTF-8" (sans quotes).  The manpage claims this is exactly the
string returned by nl_langinfo(CODESET)[*].  It would also be
interesting to know whether nl_langinfo() is returning NULL or the empty
string, since the manpage states it should only return the empty string
if CODESET were not valid.  nl_langinfo() is not documented to return
NULL.

FWIW, the locale command gives me exactly the same output as you have.

Python tracker issues that could be relevant: 8610 (closed).

[*] I'm not sure I believe the manpage though.  Try compiling and
running this C program.  For me, this prints 'ANSI_X3.4-1968' (i.e. US-
ASCII) while 'locale charmap' returns UTF-8.


#include <stdio.h>
#include <langinfo.h>

int main(int argc, char** argv)
{
   char *info = nl_langinfo(CODESET);
   
   if (info == NULL) {
      printf("langinfo is NULL\n");
   }
   else {
      printf("langinfo: '%s'\n", info);
   }
   return 0;
}

What does that C program print for you?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/831739

Title:
  package python3 3.2-3 [modified:
  usr/share/doc/python3/changelog.Debian.gz] failed to install/upgrade:
  subprocess installed pre-removal script returned error exit status 134

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.2/+bug/831739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to