summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-12-12 06:16:31 (GMT)
committerSteven Knight <knight@baldmt.com>2008-12-12 06:16:31 (GMT)
commit6554d8631debd788d6bad226d098daee080ca20e (patch)
treef468f63915d4ba1b0ea3cc2d064d5ce922cfe6e4 /doc
parent8e1e691178fb24207d0e073a8c67bd8810211396 (diff)
downloadSCons-6554d8631debd788d6bad226d098daee080ca20e.zip
SCons-6554d8631debd788d6bad226d098daee080ca20e.tar.gz
SCons-6554d8631debd788d6bad226d098daee080ca20e.tar.bz2
Issue 2255: Handle scanning of UTF-8 and UTF-16 files. (Greg Spencer)
Diffstat (limited to 'doc')
-rw-r--r--doc/SConscript2
-rw-r--r--doc/man/scons.16
-rw-r--r--doc/user/scanners.in6
-rw-r--r--doc/user/scanners.xml6
4 files changed, 10 insertions, 10 deletions
diff --git a/doc/SConscript b/doc/SConscript
index e010ebf..e4668fc 100644
--- a/doc/SConscript
+++ b/doc/SConscript
@@ -76,7 +76,7 @@ format_re = re.compile(r'<(?:graphic|imagedata)\s+fileref="([^"]*)"(?:\s+format=
def scanxml(node, env, target):
includes = []
- contents = node.get_contents()
+ contents = node.get_text_contents()
includes.extend(entity_re.findall(contents))
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 300e14c..5526c5e 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -9391,7 +9391,7 @@ source files of different types:
.ES
def xyz_scan(node, env, path):
- contents = node.get_contents()
+ contents = node.get_text_contents()
# Scan the contents and return the included files.
XYZScanner = Scanner(xyz_scan)
@@ -9663,7 +9663,7 @@ import re
include_re = re.compile(r'^include\\s+(\\S+)$', re.M)
def kfile_scan(node, env, path, arg):
- contents = node.get_contents()
+ contents = node.get_text_contents()
includes = include_re.findall(contents)
return includes
@@ -9692,7 +9692,7 @@ for files that actually exist:
include_re = re.compile(r'^include\\s+(\\S+)$', re.M)
def my_scan(node, env, path, arg):
- contents = node.get_contents()
+ contents = node.get_text_contents()
includes = include_re.findall(contents)
if includes == []:
return []
diff --git a/doc/user/scanners.in b/doc/user/scanners.in
index 63c0722..c585230 100644
--- a/doc/user/scanners.in
+++ b/doc/user/scanners.in
@@ -170,7 +170,7 @@ over the file scanning rather than being called for each input line:
include_re = re.compile(r'^include\s+(\S+)$', re.M)
def kfile_scan(node, env, path, arg):
- contents = node.get_contents()
+ contents = node.get_text_contents()
return include_re.findall(contents)
</programlisting>
@@ -199,7 +199,7 @@ over the file scanning rather than being called for each input line:
The path name to the file can be
used by converting the node to a string
using the <literal>str()</literal> function,
- or an internal &SCons; <literal>get_contents()</literal>
+ or an internal &SCons; <literal>get_text_contents()</literal>
object method can be used to fetch the contents.
</para>
@@ -281,7 +281,7 @@ over the file scanning rather than being called for each input line:
include_re = re.compile(r'^include\s+(\S+)$', re.M)
def kfile_scan(node, env, path):
- contents = node.get_contents()
+ contents = node.get_text_contents()
includes = include_re.findall(contents)
return includes
diff --git a/doc/user/scanners.xml b/doc/user/scanners.xml
index c068d03..0fa4d2e 100644
--- a/doc/user/scanners.xml
+++ b/doc/user/scanners.xml
@@ -170,7 +170,7 @@ over the file scanning rather than being called for each input line:
include_re = re.compile(r'^include\s+(\S+)$', re.M)
def kfile_scan(node, env, path, arg):
- contents = node.get_contents()
+ contents = node.get_text_contents()
return include_re.findall(contents)
</programlisting>
@@ -199,7 +199,7 @@ over the file scanning rather than being called for each input line:
The path name to the file can be
used by converting the node to a string
using the <literal>str()</literal> function,
- or an internal &SCons; <literal>get_contents()</literal>
+ or an internal &SCons; <literal>get_text_contents()</literal>
object method can be used to fetch the contents.
</para>
@@ -280,7 +280,7 @@ over the file scanning rather than being called for each input line:
include_re = re.compile(r'^include\s+(\S+)$', re.M)
def kfile_scan(node, env, path):
- contents = node.get_contents()
+ contents = node.get_text_contents()
includes = include_re.findall(contents)
return includes