Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CECP 1047, C/370, and NEWLINE

0 views
Skip to first unread message

Paul Gilmartin

unread,
Mar 29, 1995, 2:30:40 AM3/29/95
to
Country Extended Code Page 1047 is becoming the de-facto standard for
programming languages using EBCDIC. CECP 1047 has been embraced
by Open Edition MVS. CECP 1047 was graciously supplied by IBM in response
to a SHARE/GUIDE requirement. And yet I notice one nagging inconsistency:

ISO 8859 defines the characters '0A'x (LF) and '85'x (NEL, or NextLine).
CECP 1047 defines the characters '25'x (LF) and '15'x (NL). Most of
the literature I can find, and the translation tables supplied with
HAL/FAL TCP/IP make the plausible mapping:

ISO 8859 CECP 1047

(LF) 0A <-> 25 (LF)
(NEL) 85 <-> 15 (NL)

However, C programs on Unix-like systems using ISO 8859 use '0A'x (LF)
for the '\n' (new line) character. C/370 uses '15'x (NL) for '\n'. It
seems to me that an Open Edition C/370 program will encounter problems
when it attempts to read a text file mounted via NFS served by a
Unix system when CECP 1047 to ISO 8859 translation is selected.
Likewise, a Unix C program will encounter problems reading a text file
mounted from an Open Edition Hierarchial File System with the
same translation specified.

Am I missing something?

BTW, is there a newsgroup for Open Edition?

Thanks,
gil

0 new messages