-
I suggest that all OWL input and output files are treated as ANSI for the following reasons:
1. This is what the iostreams library does.
2. It keeps backward compatibility with existing code.
It would be great if there was a mechanism if the streams could be imbued with a suitable codecvt facet to allow streams to be read and written in any code page (which would include UTF8, UTF16...
2009-11-14 18:45:44 UTC by paulwinwood
-
Fixed in 6.30.2.
2009-11-14 16:28:04 UTC by jogybl
-
Cannot reproduce the problem.
2009-11-14 16:23:25 UTC by jogybl
-
The fix will be included in 6.30.3.
2009-11-14 15:46:59 UTC by jogybl
-
Fixed in 6.30.2.
2009-11-14 15:40:51 UTC by jogybl
-
The fix will be included in 6.30.3.
2009-11-14 15:35:32 UTC by jogybl
-
Hello,
I began researching the Unicode streams problem, in Step 12 and 13 of the tutorial.
I found that when saving a file, it is saved as ANSI, but then, when reading it, the buffering mechanism in the private DocView class TFileBuf, which tries to read the file as Unicode.
I am not sure yet, how to fix this problem - should the file be read always as ANSI? Should the file be detected if...
2009-11-14 10:02:17 UTC by jogybl
-
TFileDocument still uses obsolete 16-bit compatibility calls like _lopen() to open files.
An issue with these calls is that they support only single-bye file names and not Unicode.
These calls should be replaced with the modern equivalents like CreateFile()
2009-11-13 20:54:29 UTC by jogybl
-
Hello,
I'll look at the problems. In the meanwhile, I corrected the tutorial link on the examples page and I will soon upload a new version, which will have VS2008 solution and pojects for the tutorial steps.
Jogy.
2009-11-09 13:38:31 UTC by jogybl
-
The code in TRegValue::Set() is as follows:
long ret = Key.SetValue(Name, type, data, dataSize);
if (ret == 0) {
DataType = type;
if (dataSize == DataSize) {
memcpy(Data, data, (int)DataSize); // resync w/ new data if same size
}
else {
DataSize = dataSize; // Otherwise retrieve on demand later
delete[] Data;
Data = 0;
}...
2009-11-07 17:06:53 UTC by jogybl