"ERROR: unknown locale: UTF-8"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"ERROR: unknown locale: UTF-8"

Matthias Görlach
Wiki suggestion:

You need to add these two lines

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

to the file ".bash_profile" in your HOME directory.....


didnt work for me (still same ERROR....).

Put the export...directly into the Grass.sh at the following point:

....
# rebuild addon html index and gui menus
"$app_dir/Contents/MacOS/build_html_user_index.sh" "$GISBASE"
"$app_dir/Contents/MacOS/build_gui_user_menu.sh"

#utf-8 ERROR fix, editig this into .bash_profile didnt help
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

# user fontcap files
....

That did the trick

Best

M
-- 
Matthias Görlach
Ebertstr. 4
07743 Jena

*49-0171 1988809

_______________________________________________
grass-web mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-web
Reply | Threaded
Open this post in threaded view
|

Re: "ERROR: unknown locale: UTF-8"

Markus Neteler
Michael,

do you have a comment on this?
Anything to fix in the related Wiki page:
https://grasswiki.osgeo.org/wiki/MacOSX_GRASS_errors

thanks
Markus

On Fri, Jan 19, 2018 at 7:05 PM, Matthias Görlach
<[hidden email]> wrote:

> Wiki suggestion:
>
> You need to add these two lines
>
> export LC_ALL=en_US.UTF-8
> export LANG=en_US.UTF-8
>
> to the file ".bash_profile" in your HOME directory.....
>
>
> didnt work for me (still same ERROR....).
>
> Put the export...directly into the Grass.sh at the following point:
>
> ....
> # rebuild addon html index and gui menus
> "$app_dir/Contents/MacOS/build_html_user_index.sh" "$GISBASE"
> "$app_dir/Contents/MacOS/build_gui_user_menu.sh"
>
> #utf-8 ERROR fix, editig this into .bash_profile didnt help
> export LC_ALL=en_US.UTF-8
> export LANG=en_US.UTF-8
>
> # user fontcap files
> ....
>
> That did the trick
>
> Best
>
> M
>
> --
> Matthias Görlach
> Ebertstr. 4
> 07743 Jena
>
> *49-0171 1988809
>
>
> _______________________________________________
> grass-web mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/grass-web



--
Markus Neteler, PhD
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
_______________________________________________
grass-web mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-web
Reply | Threaded
Open this post in threaded view
|

Re: "ERROR: unknown locale: UTF-8"

Michael Barton
Some of this could be updated if the new bundled apps works out. Here are some comments.

1. Should not happen with new apps with bundle dependencies. But we are still testing.
2. This is taken care of in the new apps. GRASS is 100% 64bit, and using 64bit wxPython 3. GRASS_PYTHON and GRASS_WXPYTHON are set in the startup. I can speak to macports though. Might be an issue for people who compile GRASS.
3. Maybe still valid. I updated the new apps yesterday to include the compilers. But it may still need some command line tools. Someone without the command line tools should test.
4. This should not be a problem with the new apps. Automatically launches the terminal for me.
5. Internationalization is not handled the same way on a Mac as it is on Linux, although these system variables are recognized. I compiled the new apps with gettext. So it would be good to hear from colleagues who have their computers set to another language on this. I've never set these variables and have never run into this error. 
6. This is probably still valid, though the start up scripts of the new apps should prevent this from happening. 
7. This is only relevant for people who compile GRASS

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity 
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)















On Jan 20, 2018, at 7:18 AM, Markus Neteler <[hidden email]> wrote:

Michael,

do you have a comment on this?
Anything to fix in the related Wiki page:
https://urldefense.proofpoint.com/v2/url?u=https-3A__grasswiki.osgeo.org_wiki_MacOSX-5FGRASS-5Ferrors&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=VxK1XqijVpKIwJN0Ko4Dh70k0KeWuVbEi3ZQbvzb5YE&s=MupNjtRMrmUXbh68DBQsQ7qebTMBD-J32eJ_A_mEI08&e=

thanks
Markus

On Fri, Jan 19, 2018 at 7:05 PM, Matthias Görlach
<[hidden email]> wrote:
Wiki suggestion:

You need to add these two lines

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

to the file ".bash_profile" in your HOME directory.....


didnt work for me (still same ERROR....).

Put the export...directly into the Grass.sh at the following point:

....
# rebuild addon html index and gui menus
"$app_dir/Contents/MacOS/build_html_user_index.sh" "$GISBASE"
"$app_dir/Contents/MacOS/build_gui_user_menu.sh"

#utf-8 ERROR fix, editig this into .bash_profile didnt help
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

# user fontcap files
....

That did the trick

Best

M

--
Matthias Görlach
Ebertstr. 4
07743 Jena

*49-0171 1988809


_______________________________________________
grass-web mailing list
[hidden email]
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_grass-2Dweb&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=VxK1XqijVpKIwJN0Ko4Dh70k0KeWuVbEi3ZQbvzb5YE&s=62A_qo6PF9YIj7AZsPx37URFpLtL3wnYWdyFraDicHU&e=



--
Markus Neteler, PhD
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mundialis.de&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=VxK1XqijVpKIwJN0Ko4Dh70k0KeWuVbEi3ZQbvzb5YE&s=ibpLeeatB0NLjH_NSZc_RDd6NHtJZyzyzm_ewS0IgvM&e= - free data with free software
https://urldefense.proofpoint.com/v2/url?u=http-3A__grass.osgeo.org&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=VxK1XqijVpKIwJN0Ko4Dh70k0KeWuVbEi3ZQbvzb5YE&s=1kX01Mds5U-8IUjFqS4hcG0WScriOzyb0qfpGfmr59A&e=
https://urldefense.proofpoint.com/v2/url?u=http-3A__courses.neteler.org_blog&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=VxK1XqijVpKIwJN0Ko4Dh70k0KeWuVbEi3ZQbvzb5YE&s=0bHw6-YViqsWdHh_WgLq9pgFPGxa4cvu1OigsRHEZBI&e=


_______________________________________________
grass-web mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-web