diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-10 11:08:54 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-10 11:08:54 +0000 |
commit | 717cacf018442712c3c67af63fb88dc1f49637d8 (patch) | |
tree | 372c404f88d3fb65f71c5422c4f20b1f0cebd485 | |
parent | b46c01cfa3009e3ed28467632dfbc9c315452004 (diff) | |
download | samba-717cacf018442712c3c67af63fb88dc1f49637d8.tar.gz samba-717cacf018442712c3c67af63fb88dc1f49637d8.tar.bz2 samba-717cacf018442712c3c67af63fb88dc1f49637d8.zip |
Add vorlon's script to convert filenames from CP850 to ISO8859-15
(This used to be commit c46d260c653a38c1f1819257d07b1a414571fec3)
-rw-r--r-- | docs/docbook/projdoc/unicode.sgml | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -82,4 +82,21 @@ samba knows of three kinds of character sets: </variablelist> </sect1> + +<sect1> +<title>Conversion from old names</title> + +<para>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.</para> + +<para>The following script from Steve Langasek converts all +filenames from CP850 to the iso8859-15 charset.</para> + +<para> +<prompt>#</prompt><userinput>find <replaceable>/path/to/share</replaceable> -type f -exec bash -c 'CP="{}"; ISO=`echo -n "$CP" | iconv -f cp850 \ + -t iso8859-15`; if [ "$CP" != "$ISO" ]; then mv "$CP" "$ISO"; fi' \; +</userinput> +</para> +</sect1> </chapter> |