On 22 Jan 2013 12:49, Michael Schutte wrote:
Any idea on why...
open(FileName:O_CREAT+O_TRUNC+O_CODEPAGE+O_WRONLY:
S_IRUSR + S_IWUSR + S_IRGRP:1252);
actually creates with CCSID of 5348 instead?
The CodePage 1252 specification probably had the file creation choose
the CCSID 5348 as the latest version that includes the Euro symbol.
http://www.ibm.com/software/globalization/cp/cp01252.html
"SBCS code page information document
CPGID: 01252
...
Notes:...
2. The Euro supported CCSID of this updated code page is 5348 with the
euro symbol added to \x80.
..."
To specify a CCSID, e.g. 1252, then choose to specify\set the CCSID
rather than the specify a CodePage; i.e. use O_CCSID instead of O_CODEPAGE.