[144444] trunk/doc-new/guide/xml/portfile-tcl.xml

dstrubbe at macports.org dstrubbe at macports.org
Fri Jan 8 16:16:37 PST 2016


Revision: 144444
          https://trac.macports.org/changeset/144444
Author:   dstrubbe at macports.org
Date:     2016-01-08 16:16:37 -0800 (Fri, 08 Jan 2016)
Log Message:
-----------
doc-new: Fix and further clarifications on -locale for reinplace.

Modified Paths:
--------------
    trunk/doc-new/guide/xml/portfile-tcl.xml

Modified: trunk/doc-new/guide/xml/portfile-tcl.xml
===================================================================
--- trunk/doc-new/guide/xml/portfile-tcl.xml	2016-01-08 23:54:17 UTC (rev 144443)
+++ trunk/doc-new/guide/xml/portfile-tcl.xml	2016-01-09 00:16:37 UTC (rev 144444)
@@ -275,9 +275,11 @@
               the command with the replacement text, in all files
               specified.</para>
 
-              <para>Use -locale to set the locale. For example, <code>locale -C</code>
-	      if a non-ASCII file is being modified (which may otherwise give the error
-	      "sed: RE error: illegal byte sequence").</para>
+              <para>Use -locale to set the locale. The default locale is <code>en_US.UTF-8</code>.
+	      For example, <code>-locale C</code> will allow a non-UTF-8 file to be modified (which
+	      may otherwise give the error "sed: RE error: illegal byte sequence"), but only operating
+	      on ASCII characters. If you need it to work on non-ASCII characters you need to set a
+	      locale with the correct charset for the file, e.g. "en_US.ISO8859-1".</para>
 
               <para>-n is passed to sed to suppress echoing result</para>
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160108/48ab9a96/attachment.html>


More information about the macports-changes mailing list