diff options
author | Nickolai Korshunov <n.korshunov@corp.mail.ru> | 2023-02-18 19:27:15 (GMT) |
---|---|---|
committer | Nickolai Korshunov <n.korshunov@corp.mail.ru> | 2023-02-18 19:50:14 (GMT) |
commit | 4f8045806cce589858f88a6dbec928f1ae6e176b (patch) | |
tree | 128ccf5ccfcec71a691cb63a3e381bb92b70cd30 /test/textfile/textfile.py | |
parent | 440728dd1d9fee6a8e010b4d9871737686cb3afb (diff) | |
download | SCons-4f8045806cce589858f88a6dbec928f1ae6e176b.zip SCons-4f8045806cce589858f88a6dbec928f1ae6e176b.tar.gz SCons-4f8045806cce589858f88a6dbec928f1ae6e176b.tar.bz2 |
set default encoding of written files to UTF-8, added ability to pass
custom file enconding
Diffstat (limited to 'test/textfile/textfile.py')
-rw-r--r-- | test/textfile/textfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/textfile/textfile.py b/test/textfile/textfile.py index a2d005c..f614dfc 100644 --- a/test/textfile/textfile.py +++ b/test/textfile/textfile.py @@ -44,7 +44,8 @@ linesep = '\n' textparts = ['lalala', '42', 'Goethe', 'Schiller', - 'tanteratei'] + 'tanteratei', + '×'] # <-- this is unicode /xd7 symbol foo1Text = linesep.join(textparts) foo2Text = '|*'.join(textparts) foo1aText = foo1Text + linesep |