aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2014-03-25 17:43:29 +0100
committerHans Nilsson <[email protected]>2014-03-25 17:43:29 +0100
commitb1e4ebaee6abbe85ce283ac7981468b7b90ff92d (patch)
tree7975cbda7750f0b3cf2085287b85070f9d46829e /lib/public_key/src
parentec398c4cab329a599d558440800f0d7e6ca14a27 (diff)
downloadotp-b1e4ebaee6abbe85ce283ac7981468b7b90ff92d.tar.gz
otp-b1e4ebaee6abbe85ce283ac7981468b7b90ff92d.tar.bz2
otp-b1e4ebaee6abbe85ce283ac7981468b7b90ff92d.zip
pubkey: Fixed unicode conversion
Diffstat (limited to 'lib/public_key/src')
-rw-r--r--lib/public_key/src/pubkey_cert.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public_key/src/pubkey_cert.erl b/lib/public_key/src/pubkey_cert.erl
index dc8d68c78f..d9288e99bb 100644
--- a/lib/public_key/src/pubkey_cert.erl
+++ b/lib/public_key/src/pubkey_cert.erl
@@ -511,10 +511,10 @@ is_dir_name2(Value, Value) -> true;
is_dir_name2({printableString, Value1}, {printableString, Value2}) ->
string:to_lower(strip_spaces(Value1)) =:=
string:to_lower(strip_spaces(Value2));
-is_dir_name2({utf8String, Value1}, String) -> %% BUGBUG FIX UTF8 conv
- is_dir_name2({printableString, binary_to_list(Value1)}, String);
-is_dir_name2(String, {utf8String, Value1}) -> %% BUGBUG FIX UTF8 conv
- is_dir_name2(String, {printableString, binary_to_list(Value1)});
+is_dir_name2({utf8String, Value1}, String) ->
+ is_dir_name2({printableString, unicode:characters_to_list(Value1)}, String);
+is_dir_name2(String, {utf8String, Value1}) ->
+ is_dir_name2(String, {printableString, unicode:characters_to_list(Value1)});
is_dir_name2(_, _) ->
false.