Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2008-01-30 07:44:05 -0800 (Wed, 30 Jan 2008)
BUG: [ 1881931 ] WM ignores diff of 3 bytes at the head of UTF-8NOBOM file
--- trunk/Src/Common/multiformatText.cpp 2008-01-29 23:13:56 UTC (rev 4975)
+++ trunk/Src/Common/multiformatText.cpp 2008-01-30 15:44:05 UTC (rev 4976)
@@ -607,6 +607,7 @@
int codeOldBOM = ufile.GetUnicoding();
if (codeOldBOM == ucr::UCS2LE)
return TRUE; // unicode UCS-2LE, nothing to do
+ bool bBom = ufile.HasBom();
// Finished with examing file contents
@@ -629,7 +630,7 @@
- nSizeOldBOM = 3;
+ nSizeOldBOM = bBom ? 3 : 0;
nchars = TransformUtf8ToUcs2(pszBuf + nSizeOldBOM, nBufSize - nSizeOldBOM, NULL, 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: