LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-15-2007, 09:34 PM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
How to confirm the file locale.


Now I am using solaris 10 to tar files. but some files is using zh_TW locale. And my default LANG is POSIX.
Then, tar sometimes told that the conversion is failure. I want to set LANG to be consistent with the file locale. But I am not sure what is the file locale. Because many zh_TW is available on my solaris box.
I wonder if there is a method to confirm file locale.
 
Old 01-16-2007, 09:24 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What are the errors you have with tar ?
How are the tar files created ?

To my understanding, the locale doesn't matter, but the directory and filename encoding may lead to some trouble.
 
Old 01-16-2007, 07:08 PM   #3
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Yes, the locales does not match and get the following errors.


#tar cEf /dev/rmt/0c [A-Z]* [a-i]* ultra_new ultra9204_s2t_arch.tar.Z ultra_new ultra_org [s,w]* oracle

tar: invalid character in UTF-8 conversion of 'ultra/组织机构合并.doc'

tar: file (ultra_dir/组织机构合并.doc): UTF-8 conversion failed.

tar: invalid character in UTF-8 conversion of 'ultra_dir/upgrade /ultra_Upgrade/upgrade/成都数据同步工具使用说明.doc'
tar: file (ultra_dir/upgrade/成都数据同步工具使用说明.doc): UTF-8 conversion failed.
---------------------------------
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 11 10-24-2018 05:54 PM
How to change the locale by setting the system default locale letdoit Slackware 6 08-18-2011 03:34 AM
locale: Cannot set LC_ALL to default locale: Invalid argument GadgetWiz Mandriva 1 03-31-2006 11:38 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration