]> git.tdb.fi Git - libs/core.git/blobdiff - source/stringcodec/utf16.h
Fix the name of the UTF-16 codec
[libs/core.git] / source / stringcodec / utf16.h
index 729ab2ef74355d5d80476d3ce34f4f4667d67a2c..7fecf1efaad4ef7918da7b6ed8aa3f4122b69ef3 100644 (file)
@@ -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); }