summaryrefslogtreecommitdiffstats
path: root/test/Install
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2011-03-11 02:45:57 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2011-03-11 02:45:57 (GMT)
commit91db551873ddd734a5d7d89fa637da9e7e2d74e6 (patch)
treeb240b862d6a0a1956b63d740e9217a97fb934b89 /test/Install
parenteeccf14f5f3de89118a7d0f883e4bbc391bbce7c (diff)
downloadSCons-91db551873ddd734a5d7d89fa637da9e7e2d74e6.zip
SCons-91db551873ddd734a5d7d89fa637da9e7e2d74e6.tar.gz
SCons-91db551873ddd734a5d7d89fa637da9e7e2d74e6.tar.bz2
Fix #2685, UnicodeDecodeError with Copy and non-ASCII filenames.
Diffstat (limited to 'test/Install')
-rw-r--r--test/Install/non-ascii-name.py54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/Install/non-ascii-name.py b/test/Install/non-ascii-name.py
new file mode 100644
index 0000000..0e2ee24
--- /dev/null
+++ b/test/Install/non-ascii-name.py
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/env python
+#
+# __COPYRIGHT__
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+
+"""
+Verify that the Install() Builder works
+"""
+
+import os.path
+import time
+
+import TestSCons
+
+test = TestSCons.TestSCons()
+
+test.write('中文.txt', """\
+test stuff here in file 中文.txt.
+""")
+
+test.write('SConstruct', """\
+InstallAs("b", Glob("*.txt"))
+""")
+test.run(arguments = '.')
+
+test.pass_test()
+
+# Local Variables:
+# tab-width:4
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=4 shiftwidth=4: