From 717cacf018442712c3c67af63fb88dc1f49637d8 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 10 Apr 2003 11:08:54 +0000 Subject: Add vorlon's script to convert filenames from CP850 to ISO8859-15 (This used to be commit c46d260c653a38c1f1819257d07b1a414571fec3) --- docs/docbook/projdoc/unicode.sgml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'docs/docbook/projdoc/unicode.sgml') diff --git a/docs/docbook/projdoc/unicode.sgml b/docs/docbook/projdoc/unicode.sgml index d44e8ea291..2f794aadc2 100644 --- a/docs/docbook/projdoc/unicode.sgml +++ b/docs/docbook/projdoc/unicode.sgml @@ -81,5 +81,22 @@ samba knows of three kinds of character sets: + + + +Conversion from old names + +Because previous samba versions did not do any charset conversion, +characters in filenames are usually not correct in the unix charset but only +for the local charset used by the DOS/Windows clients. + +The following script from Steve Langasek converts all +filenames from CP850 to the iso8859-15 charset. + + +#find /path/to/share -type f -exec bash -c 'CP="{}"; ISO=`echo -n "$CP" | iconv -f cp850 \ + -t iso8859-15`; if [ "$CP" != "$ISO" ]; then mv "$CP" "$ISO"; fi' \; + + -- cgit