Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120129 Thunderbird/10.0
Here is a diff of all the changed to the unicode
This seems to work ok for me. but still needs further testing.
My major goal was to make the code easier to follow and clearer.
but also generally fixed and improved it.
Added warning message
./bash -c 'printf "string 1\\U8fffffffStromg 2"'
./bash: line 0: printf: warning: U+8fffffff unsupported in destination
charset ".UTF-8"
string 1<U+8fffffff>Stromg 2
added utf32toutf16 and utf32towchar to allow usage of wcstombs both when
wchar_t=2 or 4
generally reworked so consistent with function argument convention i.e.
destination then source.