[OpenAFS] Migration to afs, charsets problems

Christos Triantafyllidis ctria@physics.auth.gr
Fri, 04 Feb 2005 02:19:59 +0000


This is a cryptographically signed message in MIME format.

--------------ms080105060002090302060404
Content-Type: text/plain; charset=ISO-8859-7; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

We have been using samba as user space and we are going to migrate to 
afs, we have setup our machines to be able to view our afs cell but we 
have the following problem:

 From windows when we create a file with greek filename it is encoded in 
unicode (utf8). This filename is unreadable from the shell of the samba 
server because we use iso8859-7 as charset. When we create a file with 
greek filename from the shell of our samba server it is encoded by 
iso8859-7 and becames unreadable from windows (through samba). This was 
not a problem till now we want to migrate to afs. if we copy the 
userfiles from the samba server shell to the afs cell the unicode names 
are not being copied right. if we do it from windows (through samba) the 
iso8859-7 names are not being copied right.

Something more. What charset is afs using? we created a file with greek 
characters and copied it from windows. and then a file with the same 
filename from samba to the samba server. we logged in the shell of samba 
server and the 2 files had unreadable filename (which was expected 
because of the unicode encoded name) but the 2 filenames were different 
which was not expected.

After that we created 2 files from the samba server shell with the same 
  greek filename. From windows the file through samba was unreadable. 
the file through afs was unreadble too. Then we changed the registry 
value about using ANSI charset to store filenames at windows afs client 
and the filename become readable.

Had anyone any similar problem?
Is there any safe way to copy the files from samba to afs and have 
readable filenames both for files created from samba server shell 
(iso885-7) and from windows (samba - unicode)?

Thanks,

Christos Triantafyllidis,
Aristotle University of Thessaloniki, Greece
Department Of Physics

--------------ms080105060002090302060404
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII2jCC
BGkwggNRoAMCAQICAXkwDQYJKoZIhvcNAQEFBQAwOjELMAkGA1UEBhMCR1IxEzARBgNVBAoT
CkhlbGxhc0dyaWQxFjAUBgNVBAMTDUhlbGxhc0dyaWQgQ0E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