I'm having problems with #pragma convert.
I'm compiling a C module using a source file with CCSID 865 residing
in the IFS. My job CCSID is 278, I'm on 6.1. The CCSID of the module
is 37, regardless of what I'm specifying on the TGTCCSID command.
Even though I have this:
#pragma convert(278)
char *specchars = "ÉÜÅÄÖ";
#pragma convert(0)
... the hex representation of this string is "3542a2075", when it
should read "e0fc5b7b7c", i.e. no conversion to CCSID 278 is taking
place. I don't see any caveats in the manual that could explain this
behaviour.
Suggestions anyone? For now I'm using direct hex comparison instead
but I'd prefer to get the pragma working.
Regards,
Erik
As an Amazon Associate we earn from qualifying purchases.
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.