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.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.