returned to the ClassicCPPScanner.
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4062
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
- Fix scanning of Unicode files for both UTF-16 endian flavors.
+ - Fix a TypeError on #include of file names with Unicode characters.
+
RELEASE 1.2.0.d20090223 - Mon, 23 Feb 2009 08:41:06 -0800
assert n == 'path/bbb', n
assert i == 'bbb', i
+ # TODO(1.5): remove when 2.2 is minimal; replace ccc
+ # variable in find_include() call below with in-line u'ccc'.
+ try:
+ ccc = eval("u'ccc'")
+ except SyntaxError:
+ ccc = 'ccc'
+
+ n, i = s.find_include(('<', ccc), 'foo', ('path',))
+ assert n == 'path/ccc', n
+ assert i == 'ccc', i
+
finally:
SCons.Node.FS.find_file = save
n = SCons.Node.FS.find_file(include[1], paths)
- return n, intern(include[1])
+ i = include[1]
+ try:
+ i = intern(i)
+ except TypeError:
+ # Probably a unicode object; just don't worry about intern().
+ pass
+ return n, i
def sort_key(self, include):
return SCons.Node.FS._my_normcase(string.join(include))