LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

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: Solaris10, Solaris 11, Mint, OL
Posts: 9,492

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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 10 03-24-2013 08:35 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


All times are GMT -5. The time now is 12:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration