diff options
author | Björn Gustavsson <[email protected]> | 2015-09-10 16:10:31 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-01-13 11:49:41 +0100 |
commit | c82bbd8f28f3e0ce00f5db44f7a6cef75653eee5 (patch) | |
tree | a52639e67e6dc43530a9318ea0442bddc46b6282 /lib/asn1/test/testPrimStrings.erl | |
parent | 19e33117de1c44c0e4200ca8ee280cb843842b4c (diff) | |
download | otp-c82bbd8f28f3e0ce00f5db44f7a6cef75653eee5.tar.gz otp-c82bbd8f28f3e0ce00f5db44f7a6cef75653eee5.tar.bz2 otp-c82bbd8f28f3e0ce00f5db44f7a6cef75653eee5.zip |
asn1: Remove deprecated functions
Remove the entire asn1rt module. All functions in it were deprecated in
OTP 17.
In asn1ct, remove the deprecated functions asn1ct:encode/3 and
asn1ct:decode/3. Also remove asn1ct:encode/2, which has not been
formally deprecated but is undocumented.
Diffstat (limited to 'lib/asn1/test/testPrimStrings.erl')
-rw-r--r-- | lib/asn1/test/testPrimStrings.erl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/asn1/test/testPrimStrings.erl b/lib/asn1/test/testPrimStrings.erl index cb97655c15..b7f0323301 100644 --- a/lib/asn1/test/testPrimStrings.erl +++ b/lib/asn1/test/testPrimStrings.erl @@ -19,8 +19,6 @@ %% %% -module(testPrimStrings). --compile([{nowarn_deprecated_function,{asn1rt,utf8_list_to_binary,1}}, - {nowarn_deprecated_function,{asn1rt,utf8_binary_to_list,1}}]). -export([bit_string/2]). -export([octet_string/1]). @@ -756,19 +754,21 @@ utf8_string(_Rules) -> 16#800, 16#ffff, 16#10000, - 16#1fffff, - 16#200000, - 16#3ffffff, - 16#4000000, - 16#7fffffff], + 16#1ffff, + 16#20000, + 16#2ffff, + 16#e0000, + 16#effff, + 16#F0000, + 16#10ffff], [begin - {ok,UTF8} = asn1rt:utf8_list_to_binary([Char]), - {ok,[Char]} = asn1rt:utf8_binary_to_list(UTF8), + UTF8 = unicode:characters_to_binary([Char]), + [Char] = unicode:characters_to_list([UTF8]), roundtrip('UTF', UTF8) end || Char <- AllRanges], - {ok,UTF8} = asn1rt:utf8_list_to_binary(AllRanges), - {ok,AllRanges} = asn1rt:utf8_binary_to_list(UTF8), + UTF8 = unicode:characters_to_binary(AllRanges), + AllRanges = unicode:characters_to_list(UTF8), roundtrip('UTF', UTF8), ok. |