diff options
author | Hans Bolinder <[email protected]> | 2013-03-19 13:05:49 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-03-19 13:05:49 +0100 |
commit | 692fa53631d5c977cc5e7635ce1df4e39d224116 (patch) | |
tree | cfa871edd7a69c0004608cb8eaf97b375bcae201 /lib/stdlib/test/escript_SUITE_data/unicode5 | |
parent | 395e5870020df6807c6e73462e75d594a07e40a8 (diff) | |
parent | f247d246725d76412242e547e7c212bf947542f8 (diff) | |
download | otp-692fa53631d5c977cc5e7635ce1df4e39d224116.tar.gz otp-692fa53631d5c977cc5e7635ce1df4e39d224116.tar.bz2 otp-692fa53631d5c977cc5e7635ce1df4e39d224116.zip |
Merge branch 'hb/stdlib/escript_unicode/OTP-10951' into maint
* hb/stdlib/escript_unicode/OTP-10951:
Let escript recognize an encoding comment on the second line
Diffstat (limited to 'lib/stdlib/test/escript_SUITE_data/unicode5')
-rwxr-xr-x | lib/stdlib/test/escript_SUITE_data/unicode5 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/stdlib/test/escript_SUITE_data/unicode5 b/lib/stdlib/test/escript_SUITE_data/unicode5 new file mode 100755 index 0000000000..e95da3361d --- /dev/null +++ b/lib/stdlib/test/escript_SUITE_data/unicode5 @@ -0,0 +1,12 @@ +#!/usr/bin/env escript +%% -*- erlang -*- +-export([main/1]). +%% -*- encoding:latin-1 -*- + +main(_) -> + ok = io:setopts([{encoding,unicode}]), + Bin1 = <<"örn_Ѐ שלום-שלום+של 日本語">>, + L = [246,114,110,95,1024,32,1513,1500,1493,1501,45,1513,1500,1493, + 1501,43,1513,1500,32,26085,26412,35486], + L = unicode:characters_to_list(Bin1, utf8), + ok. |