Current implementation of id3tag_set_fieldvalue_utf16 (and some helper functions) only accepts native endian unicode strings. LAME frontend always passes little endian strings to this function, so it is impossible to append TXXX/WXXX frames with --tv option on the big endian machines.
The attached patch fixes the problem.
Thanks for reporting this issue, a fix is in CVS now.
Fix verified, thanks.