The ice under my feet is becoming thinner :-) I don't consider
myself to be a code page expert, so bear with me and correct
me if I'm wrong.

>> I've not played with code pages and assembler so far, so
>> I may be missing HLASM options.
>> 
>If there is such an option for HLASM, an assembler program
>would need to be recompiled for each locale; no portable
>load modules.  Undesirable.

But this is in no case specific to assembler code, is it? The
same applies to any program code, compiled or interpreted. If
you have literals (or hex constants for the worse) that contain
characters which have different code points in different code
pages, the behaviour of the program becomes code page depenent.

>So, how does the PARM='ENVAR("LC_ALL=De_DE.IBM-273")/sh'
>you suggested work?  Does it cause the shell to translate
>all character data to a standard code page when performing
>any test?  Performance?  Well, it's only an interpreter anyway.

I don't know what you need to do to provide proper locale support 
in your program and wasn't curious enough yet to find out.

My highlevel understanding is that the shell and utilities are
code such that they do support different locales. And they depend
on the runtime environment, i.e. Language Environment, to help
them achive this.


>You wrote, "AOPBATCH's shell".  Does AOPBATCH have its own
>version of shell, or does it use /bin/sh?  

What I meant to say is that it is not AOPBATCH but the shell it
spawns which supports different locales (see above).
The resulting shell will support locales. 

>What programs other than sh are ENVAR()-savvy.

ENVAR() is an LE runtime option with the help of which you can
set environment variables before your code gets control. It is
not bound to nor restricted to the LC_ALL= variable.

But, LC_ALL is an environment variable that influences in the
LE runtime, not the program (which benefits from this support).


>Does iconv support UTF-8?  Does PARM=ENVAR() support UTF-8?

Yes. / Doesn't seem to be the case.

Peter Hunkeler
CREDIT SUISSE

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to