From: Erik Olsson <erik.eo.olsson@xxxxxxxxx>
To: "C programming iSeries / AS400" <c400-l@xxxxxxxxxxxx>
Date: 03/04/2011 08:54 AM
Subject: [C400-L] pragma convert of string literal
Sent by: c400-l-bounces+albertaa=us.ibm.com@xxxxxxxxxxxx
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:
char *specchars = "ÉÜÅÄÖ";
... 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
Suggestions anyone? For now I'm using direct hex comparison instead
but I'd prefer to get the pragma working.
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives