From: Mikko Rasa Date: Tue, 4 Sep 2012 20:12:37 +0000 (+0300) Subject: Fix the name of the UTF-16 codec X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=93e69e6635f5c47591f42b6979d4d1fce85846d4;ds=sidebyside Fix the name of the UTF-16 codec --- 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); }