LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   tar.gz UTF-8 error cannot convert to current locale (https://www.linuxquestions.org/questions/linux-software-2/tar-gz-utf-8-error-cannot-convert-to-current-locale-4175604280/)

BW-userx 04-20-2017 06:08 PM

tar.gz UTF-8 error cannot convert to current locale
 
so yeah, that is an error I am getting when trying to untar this tar.gz

my Local is set to

en_US

the error reads
Code:

The archive reading failed with the following error:
Pathname can't be converted from UTF-8 to current locale

is there a way to fix that?

Quote:

userx%slackwhere ⚡ ~ ⚡> locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
This is Slackware BTW

if I change this locale file

Code:

  nano 2.6.0            Bestand: /etc/profile.d/lang.sh 


# en_US is the Slackware default locale:
export LANG=en_US

                     

#
# LANG=<locale> locale -k charmap
#
# UTF-8 locales will include "UTF-8" in the output.
#
export LANG=en_US.UTF-8

as this first line was uncommitted.
1
Quote:

export LANG=en_US
to set it UTF-8
2
Code:

export LANG=en_US.UTF-8
should that first one be commented out to avoid conflict or can they both 1, and 2, be exported at the same time?

astrogeek 04-20-2017 07:28 PM

I would comment out the first one for clarity, but I think that only the last one in the file will have any effect.

It is setting an environment var named LANG, so first one sets it, then the second one immmediately resets it to another value.

BW-userx 04-20-2017 07:50 PM

Quote:

Originally Posted by astrogeek (Post 5699960)
I would comment out the first one for clarity, but I think that only the last one in the file will have any effect.

It is setting an environment var named LANG, so first one sets it, then the second one immmediately resets it to another value.

YEA!! :party:

that fixed it.
Code:

userx%slackwhere ⚡ ~ ⚡> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=



All times are GMT -5. The time now is 04:37 PM.