diff options
author | Jack Lloyd <[email protected]> | 2017-11-09 16:43:57 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-11-09 16:43:57 -0500 |
commit | b08f26d3658db3213d98932cbc6dd3e6efdc8b85 (patch) | |
tree | c1cfb432aaa1625d6a1cfff7bf7487b75dcd0286 /src/cli/asn1.cpp | |
parent | 54baf3a3d3ee070e3740859298f92d69b042c9c6 (diff) |
Remove use of transcode
Diffstat (limited to 'src/cli/asn1.cpp')
-rw-r--r-- | src/cli/asn1.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/cli/asn1.cpp b/src/cli/asn1.cpp index 5c90a3c5b..234cbd6e6 100644 --- a/src/cli/asn1.cpp +++ b/src/cli/asn1.cpp @@ -22,9 +22,6 @@ #include <sstream> #include <ctype.h> -// Set this if your terminal understands UTF-8; otherwise output is in Latin-1 -#define UTF8_TERMINAL 1 - namespace Botan_CLI { namespace { @@ -349,17 +346,7 @@ void decode(std::ostream& output, { Botan::ASN1_String str; data.decode(str); - if(UTF8_TERMINAL) - { - emit(output, type_name(type_tag), level, length, - Botan::Charset::transcode(str.iso_8859(), - Botan::UTF8_CHARSET, - Botan::LATIN1_CHARSET)); - } - else - { - emit(output, type_name(type_tag), level, length, str.iso_8859()); - } + emit(output, type_name(type_tag), level, length, str.value()); } else if(type_tag == Botan::UTC_TIME || type_tag == Botan::GENERALIZED_TIME) { |