LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to confirm the file locale. (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-confirm-the-file-locale-519658/)

UltraSoul 01-15-2007 09:34 PM

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.

jlliagre 01-16-2007 09:24 AM

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.

UltraSoul 01-16-2007 07:08 PM

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.
---------------------------------


All times are GMT -5. The time now is 06:43 PM.