diff options
author | John Terpstra <jht@samba.org> | 2003-04-14 12:23:26 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 2003-04-14 12:23:26 +0000 |
commit | 4b44bbae35fb74194206adf920520b0bedbb713f (patch) | |
tree | 3b31cf0986040178ca20b7f271ca01aff574bf72 /docs/docbook/projdoc/unicode.sgml | |
parent | ee7f29a9f8c5705e66b1ca10babb46763d413657 (diff) | |
download | samba-4b44bbae35fb74194206adf920520b0bedbb713f.tar.gz samba-4b44bbae35fb74194206adf920520b0bedbb713f.tar.bz2 samba-4b44bbae35fb74194206adf920520b0bedbb713f.zip |
Merge of HEAD document updates to 3.0.0
(This used to be commit 17a10b40fe18602c14542923da522fb14026dac5)
Diffstat (limited to 'docs/docbook/projdoc/unicode.sgml')
-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> |