Would not apply to a #define, right? A #define has no real existence. #define A "foo" simply means "every time you encounter the token A, substitute "foo" instead.
So the operative syntax would be #define A "foo" ... #pragma convert(codepage) char bar[] A; #pragma convert(pop) Right? Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Kirk Wolf Sent: Monday, November 03, 2014 10:50 AM To: [email protected] Subject: Re: C Language: non-EBCDIC characters in literal strings. We frequently use #pragma convert(codepage) / convert(pop) for this. Works well, but note that even though it isn't clear in the documentation, you can't use it to wrap #defines ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
