22.12.2012 Views

z/TPF Program Management - IBM

z/TPF Program Management - IBM

z/TPF Program Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Set up access to the <strong>IBM</strong>2047 code page<br />

Using EBCDIC code pages<br />

If you enter the tpf-gcc or tpf-g++ options from the command line to compile C or<br />

C++ segments (such as APACHE HTTPD), you must access the <strong>IBM</strong>2047 code<br />

page for support of the line feed X'15' value, which is used with the 3215 consoles.<br />

To do this, take one of the following actions:<br />

v Linux administrator action<br />

Request that the GNU/Linux system administrator add the following lines in the<br />

/etc/profile file below the <strong>TPF</strong>_ROOT= statement where the ${<strong>TPF</strong>_ROOT}<br />

variable expands to the file system path and the z/<strong>TPF</strong> source code is always<br />

located:<br />

GCONV_PATH=${<strong>TPF</strong>_ROOT}/linux/gconv:${GCONV_PATH}<br />

Export GCONV_PATH<br />

v User action<br />

Change your $HOME/.bash_profile file.<br />

If the the GCONV_PATH extension is not specified correctly, the tpf-gcc compiler<br />

option will not complete successfully when -fexec-charset=<strong>IBM</strong>2047 is run on the<br />

command line, and an error message will result. The following example shows the<br />

kind of error message that can result:<br />

cc1: conversion from cpv to <strong>IBM</strong>2047 not supported by iconv<br />

Note: Setting up access to the <strong>IBM</strong>2047 code page is not needed for the<br />

Systems/C and Systems/C++ compilers.<br />

EBCDIC code pages, other than <strong>IBM</strong>2047, that are used exclusively by the z/<strong>TPF</strong><br />

system support the line feed X'15' value. The line feed X'15' value is used with<br />

3215 consoles. These code pages might have been modified to properly match<br />

ASCII-based character encoding, which are used as input character sets. If you<br />

enter the tpf-gcc option from the command line to compile C or C++ segments,<br />

you must set up access to these code pages. If you use the Systems/C and<br />

Systems/C++ compilers, contact the provider for more information about EBCDIC<br />

code page support.<br />

If this setup is not necessary for your development environment, you must specify<br />

one of these code pages as the execution time coded character set instead of the<br />

default value of <strong>IBM</strong>2047. For example, to use the <strong>TPF</strong>939 code page, which is a<br />

modified version of the <strong>IBM</strong>939 code page, specify CFLAGS_USER :=<br />

-fexec-charset=<strong>TPF</strong>939 or CXXFLAGS_USER := -fexec-charset=<strong>TPF</strong>939 in your<br />

maketpf.cfg file.<br />

© Copyright <strong>IBM</strong> Corp. 2005, 2012 53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!