The Problem is zlogin explicitly sets LANG=C

Otherwise it can be set in /etc/default/init which works well with ssh.

Greetings
Till
On 27.02.20 16:48, Predrag Zecevic - Unix Systems Administrator wrote:
> On 02/27/20 16:43, Till Wegmüller wrote:
>> Hi
>>
>> The Problem is that you Zone doe not use a UTF-8 locale. It will be the
>> same with any package that includes files with non ASCII characters.
>> This has popped up some months ago already. And is expected although
>> IMHO stupid behaviour of Python3 (And Ruby and Perl for that matter)
>>
>> The fix is simple. Always run "export LANG="en_US.UTF-8" before you
>> install packages.
>>
>>
>> Greetings
>> Till
> Hi Till,
> 
> Yes! That has "fixed" it. I am not sure where this info has to be
> published or even added to skeleton files...
> 
> Regards.
> 
>>
>> On 27.02.20 16:39, Predrag Zecevic - Unix Systems Administrator wrote:
>>> On 02/27/20 16:34, Predrag Zecevic - Unix Systems Administrator wrote:
>>>> Hi all,
>>>>
>>>> I have tried to install golang in /hipster (updated today) zone:
>>>>
>>>> :; pfexec pkg install developer/golang-112
>>>>              Packages to install:  1
>>>>              Mediators to change:  1
>>>>          Create boot environment: No
>>>> Create backup boot environment: No
>>>>
>>>> DOWNLOAD                                PKGS         FILES    XFER
>>>> (MB)   SPEED
>>>> Completed                                1/1     9101/9101
>>>> 139.7/139.7      --
>>>>
>>>> PHASE                                          ITEMS
>>>> Installing new actions                     7693/9117Action install
>>>> failed for
>>>> 'usr/lib/golang/1.12/test/fixedbugs/issue27836.dir/\xc4foo.go'
>>>> (pkg://openindiana.org/developer/golang-112):
>>>>     UnicodeEncodeError: 'ascii' codec can't encode character '\xc4' in
>>>> position 51: ordinal not in range(128)
>>>>
>>>> The Boot Environment zbe-263 failed to be updated. A snapshot was
>>>> taken before the failed attempt and is mounted here /tmp/tmpvfqi85fv.
>>>> Use 'beadm unmount zbe-264' and then 'beadm activate zbe-264' if you
>>>> wish to boot to this BE.
>>>> pkg: An unexpected error happened during install: 'ascii' codec can't
>>>> encode character '\xc4' in position 51: ordinal not in range(128)
>>>>
>>>>
>>>> GZ runs:
>>>> :; uname -rosv
>>>> SunOS 5.11 illumos-d4990cfc1b illumos
>>>>
>>>> :; pkg info developer/golang-112
>>>>                Name: developer/golang-112
>>>>             Summary: The Go Programming Language
>>>>            Category: Development/Other Languages
>>>>               State: Installed
>>>>           Publisher: openindiana.org
>>>>             Version: 1.12.13
>>>>              Branch: 2019.0.0.0
>>>>      Packaging Date: Thu Nov 21 07:39:50 2019
>>>> Last Install Time: Fri Sep 20 06:42:02 2019
>>>>    Last Update Time: Mon Nov 25 09:13:23 2019
>>>>                Size: 385.77 MB
>>>>                FMRI:
>>>> pkg://openindiana.org/developer/golang-112@1.12.13-2019.0.0.0:20191121T073950Z
>>>>
>>>>
>>>>         Project URL: https://golang.org/
>>>>          Source URL:
>>>> https://storage.googleapis.com/golang/go1.12.13.src.tar.gz
>>>>
>>>>
>>>> I am asking here first, maybe solution is simple?
>>>>
>>>> Regards.
>>>
>>> FYI: same problem with golang-113:
>>> ...
>>>
>>> Action install failed for
>>> 'usr/lib/golang/1.13/test/fixedbugs/issue27836.dir/\xc4foo.go'
>>> (pkg://openindiana.org/developer/golang-113):
>>>    UnicodeEncodeError: 'ascii' codec can't encode character '\xc4' in
>>> position 51: ordinal not in range(128)
>>> ...
>>>
>>> Regards.
>>>
>>> P.S: I see golang-114 is coming...
>>
>> _______________________________________________
>> openindiana-discuss mailing list
>> openindiana-discuss@openindiana.org
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>>
> 

_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to