[GRASS-dev] All attempts to enable English language have failed. GRASS running with C locale. (trunk)

here a win 10 with german locale; setting preferences in GRASS to en, then I
get:

--------------
All attempts to enable English language have failed. GRASS running with C
locale.
If you observe UnicodeError in Python, install en_US.UTF-8 locale and
restart GRASS.
-------------

what does this mean?

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

On 25/11/17 10:46, Helmut Kudrnovsky wrote:

here a win 10 with german locale; setting preferences in GRASS to en, then I
get:

--------------
All attempts to enable English language have failed. GRASS running with C
locale.
If you observe UnicodeError in Python, install en_US.UTF-8 locale and
restart GRASS.
-------------

what does this mean?

See https://trac.osgeo.org/grass/ticket/3441.

Moritz

Moritz Lennert wrote

On 25/11/17 10:46, Helmut Kudrnovsky wrote:

here a win 10 with german locale; setting preferences in GRASS to en,
then I
get:

--------------
All attempts to enable English language have failed. GRASS running with C
locale.
If you observe UnicodeError in Python, install en_US.UTF-8 locale and
restart GRASS.
-------------

what does this mean?

See https://trac.osgeo.org/grass/ticket/3441.

"install en_US.UTF-8 locale and restart GRASS."

from the #3441:

"My question was how widespread C.UTF-8 is as a locale present on machines.
"

all the things mentioned in the ticket and the message may work in *nix
environments, not sure that this will work in win (e.g. [1], [2], ...) and
mac.

[1]
https://stackoverflow.com/questions/4324542/what-is-the-windows-equivalent-for-en-us-utf-8-locale
[2]
https://superuser.com/questions/239810/setting-utf8-as-default-character-encoding-in-windows-7

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

2017-11-25 11:46 GMT+02:00 Helmut Kudrnovsky <hellik@web.de>:

here a win 10 with german locale; setting preferences in GRASS to en, then I
get:

--------------
All attempts to enable English language have failed. GRASS running with C
locale.
If you observe UnicodeError in Python, install en_US.UTF-8 locale and
restart GRASS.
-------------

what does this mean?

It means that you want to run GRASS in a language that is not
supported on your system. Attempts to switch GRASS + any related
programs that GRASS might be calling to English have failed. Your
GRASS session will run with C locale. It is not the same as en_US and
thus, although you might see messages in English (due to fact that
they are in English in the source code), it will not behave as it
should for a proper (US) English language (i.e. sorting will be "A B C
a b c" versus your expected "a A b B c C"). One more bad thing will be
defaulting to ASCII encoding thus most likely causing a failure at the
first encounter with "Österreich" (still "schadenfreude" will be
fine). To enjoy a proper English experience in GRASS, you should
install en_US.UTF-8 locale on your system. If you think – how QGIS
manages to deal with it –, here GRASS modularity bites us, besides
everything in QGIS-land is also not so fine with language switching.

Unfortunately I do not have access to recent Windows boxes (I have a
Vista VM), neither MacOS thus patches solving problems on those OSes
will have to be provided by GRASS Windows and Mac developers.

-----
best regards
Helmut

Māris.

Maris Nartiss wrote

2017-11-25 11:46 GMT+02:00 Helmut Kudrnovsky &lt;

hellik@

&gt;:

here a win 10 with german locale; setting preferences in GRASS to en,
then I
get:

--------------
All attempts to enable English language have failed. GRASS running with C
locale.
If you observe UnicodeError in Python, install en_US.UTF-8 locale and
restart GRASS.
-------------

what does this mean?

It means that you want to run GRASS in a language that is not
supported on your system. Attempts to switch GRASS + any related
programs that GRASS might be calling to English have failed. Your
GRASS session will run with C locale. It is not the same as en_US and
thus, although you might see messages in English (due to fact that
they are in English in the source code), it will not behave as it
should for a proper (US) English language (i.e. sorting will be "A B C
a b c" versus your expected "a A b B c C"). One more bad thing will be
defaulting to ASCII encoding thus most likely causing a failure at the
first encounter with "Österreich" (still "schadenfreude" will be
fine). To enjoy a proper English experience in GRASS, you should
install en_US.UTF-8 locale on your system. If you think – how QGIS
manages to deal with it –, here GRASS modularity bites us, besides
everything in QGIS-land is also not so fine with language switching.

Unfortunately I do not have access to recent Windows boxes (I have a
Vista VM), neither MacOS thus patches solving problems on those OSes
will have to be provided by GRASS Windows and Mac developers.

r.category map=myrast@user1
1 österreich
2 schadenfreude
3 lokalität

at least this one works :smiley:

in theory, this language package could be installed in win 10:

English LanguagePack - Windows 10 Version 1709 for x64-based Systems
(KB4046355) [en-US_LP]

in practice, it fails on my laptop ....

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

On Sun, Nov 26, 2017 at 1:06 PM, Maris Nartiss <maris.gis@gmail.com> wrote:
...

Unfortunately I do not have access to recent Windows boxes (I have a
Vista VM),

That's easy to solve: Microsoft provides VMs of Win7, 8.1 and
apparently 10, so-called "Internet Explorer VM"s:
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

To use it, download the OVA file and import it in Virtualbox:
"File -> Import Appliance"

Markus