In a recent note, Schiradin,Roland HG-Dir itb-db/dc said:

> Date:         Sat, 27 Jan 2007 01:06:05 +0100
> 
> So this leaves at least two choices
> 
> 1. Switch to mode hex and enter x'E0' as a backslash (x'EC' is for cp273)
> 2. use iconv -t IBM-1047 -f IBM-273 ! /bin/sh (the '!' vary from codepage to 
> coderpage)
> at first statement in your STDIN
> 
A couple notes on the latter:

o If you have formed the habit of using alternate characters in
  your local codepage (such as '!' for '|'), you will need to
  convert back to appropriate glyphs in the local codepage.
  You can perhaps discover these by such as:

      echo '!' | iconv -f IBM-1047 -t IBM-273  # or
      echo '!' | iconv -f IBM-1047 -t IBM-273  | od -x

This leaves STDOUT in IBM-1047.  It can be converted back by
augmenting the preface command:

    iconv -t IBM-1047 -f IBM-273 | /bin/sh | iconv -f IBM-1047 -t IBM-273

This yet leaves STDERR in IBM-1047.  A yet more elaborate preface
command could convert both STDOUT and STDERR separately.  Left as
an exercise for the student.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL

----------------------------------------------------------------------
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