Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #189583

Re: bugreport - reportbug 7.1.7 on Debian 9.1

From Michael Lange <klappnase@freenet.de>
Newsgroups linux.debian.user
Subject Re: bugreport - reportbug 7.1.7 on Debian 9.1
Date 2017-12-05 20:30 +0100
Message-ID <uTr4K-6LE-15@gated-at.bofh.it> (permalink)
References <uTiNP-1sx-3@gated-at.bofh.it> <uTnNw-4xP-17@gated-at.bofh.it> <uTr4K-6LE-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Tue, 5 Dec 2017 19:20:45 +0100
Sophie Loewenthal <sophie@klunky.co.uk> wrote:

> Hi Michael,
> 
> Thanks for the info.
> 
> $  python3 -c "import locale; print(locale.nl_langinfo(locale.CODESET))"
> ANSI_X3.4-1968
> 
> I’ve not set this Bizarre
> 

this looks like somehow LANG is set to C (or maybe something that
Python does not know).
ANSI_X3.4-1968 appears to be a synonym for ASCII

You can change this temporarily by preceding the program call with an
explicitely defined locale:

$ python3 -c "import locale; print(locale.nl_langinfo(locale.CODESET))"
UTF-8
$ LANG=C python3 -c "import locale; print(locale.nl_langinfo(locale.CODESET))"
ANSI_X3.4-1968
$ LANG=en_US python3 -c "import locale; print(locale.nl_langinfo(locale.CODESET))"
ISO-8859-1
$ LANG=en_US.UTF8 python3 -c "import locale; print(locale.nl_langinfo(locale.CODESET))"
UTF-8

Maybe your terminal emulator is misconfigured, did you try
a different one? Or is there something suspicious looking in the
output of env ?

> 
> Sophie 
> ( ͡° ͜ʖ ͡°)

(ó.ò)

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Genius doesn't work on an assembly line basis.  You can't simply say,
"Today I will be brilliant."
		-- Kirk, "The Ultimate Computer", stardate 4731.3

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

bugreport - reportbug 7.1.7  on Debian 9.1 Sophie Loewenthal <sophie@klunky.co.uk> - 2017-12-05 11:40 +0100
  Re: bugreport - reportbug 7.1.7  on Debian 9.1 Sophie Loewenthal <sophie@klunky.co.uk> - 2017-12-05 12:50 +0100
  Re: bugreport - reportbug 7.1.7  on Debian 9.1 Michael Lange <klappnase@freenet.de> - 2017-12-05 17:00 +0100
    Re: bugreport - reportbug 7.1.7  on Debian 9.1 Michael Lange <klappnase@freenet.de> - 2017-12-05 20:30 +0100

csiph-web