Fix the condition and error reporting
commitd54cc5fa9ab9faf8b9e35e230c117281fa70748f
authormalc <moosotc@gmail.com>
Wed, 22 Feb 2017 21:25:51 +0000 (23 00:25 +0300)
committermalc <moosotc@gmail.com>
Wed, 22 Feb 2017 21:25:51 +0000 (23 00:25 +0300)
treebb9cd6534c4682f2bbdd3b381ad07f34cc2856fb
parentbbedf2bc9f97ca8fa34f99d9dd5f4ef75a695f09
Fix the condition and error reporting

The code was fine in a sense that locale was initialized and
mbtoutf8/mbstowcs would work, but the utf8 idempotent nature of
mbtoutf8 wouldn't be taken advantage of.
link.c