|
From: <set...@us...> - 2006-04-16 18:27:54
|
Revision: 1273 Author: sethdill Date: 2006-04-16 11:27:50 -0700 (Sun, 16 Apr 2006) ViewCVS: http://svn.sourceforge.net/frontierkernel/?rev=1273&view=rev Log Message: ----------- Bug fix. The windows version of converttextencoding was testing for utf-16be and utf-16le instead of plain-old UTF-16. That's the only character set that isn't handled as a code page, and so requires the special case. (Was already testing correctly for inputcharset, only the outputcharset was wrong.) Modified Paths: -------------- Frontier/branches/Conversant/Common/source/strings.c Modified: Frontier/branches/Conversant/Common/source/strings.c =================================================================== --- Frontier/branches/Conversant/Common/source/strings.c 2006-04-16 18:06:52 UTC (rev 1272) +++ Frontier/branches/Conversant/Common/source/strings.c 2006-04-16 18:27:50 UTC (rev 1273) @@ -2435,8 +2435,7 @@ lentext = gethandlesize (h); switch ( outputcharset ) { - case 1200: /* wide, utf-16 */ - case 1201: /* wide, utf-16 */ + case 0: /* unicode with BOM, not handled as a code page. I Sitll Hatesk Windows (and rrrabbits) */ if (AnsiToUnicode (h, hresult, inputcharset)) return (false); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |