From 93e69e6635f5c47591f42b6979d4d1fce85846d4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 4 Sep 2012 23:12:37 +0300 Subject: [PATCH] Fix the name of the UTF-16 codec --- source/stringcodec/utf16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/stringcodec/utf16.h b/source/stringcodec/utf16.h index 729ab2e..7fecf1e 100644 --- a/source/stringcodec/utf16.h +++ b/source/stringcodec/utf16.h @@ -58,7 +58,7 @@ public: { } virtual const char *get_name() const - { return endian==BIG ? "UTF-16-BE" : "UTF-16-LE"; } + { return endian==BIG ? "UTF-16-BE" : endian==LITTLE ? "UTF-16-LE" : "UTF-16"; } virtual Encoder *create_encoder(ErrorMode em = DEFAULT) const { return new Encoder(get_error_mode(em), endian); } -- 2.45.2