summaryrefslogtreecommitdiff
path: root/docs/docbook
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-10 11:08:54 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-10 11:08:54 +0000
commit717cacf018442712c3c67af63fb88dc1f49637d8 (patch)
tree372c404f88d3fb65f71c5422c4f20b1f0cebd485 /docs/docbook
parentb46c01cfa3009e3ed28467632dfbc9c315452004 (diff)
downloadsamba-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)
Diffstat (limited to 'docs/docbook')
-rw-r--r--docs/docbook/projdoc/unicode.sgml17
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>