IBM Support

IV77257: EXPORTING LANG=JA_JP WITHIN SCRIPT DOES NOT EFFECT APPLIES TO AIX 7100-03 16/02/29 PTF PECHANGE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • On AIX 6.1 TL09 SP4, "export LANG=Ja_JP" in script is not
    effective.
    
    aix50:root> oslevel -s
    6100-09-05-1524
    
    aix50:root> cat outer.sh
    #!/bin/ksh
    
    export LANG=Ja_JP
    . ./inner.sh
    
    aix50:root> unset LANG
    aix50:root> . ./outer.sh
    ksh: 0403-057 XXXXXXXXXXXXXXX : 'AAAAAAAA' unexpected
                  ^^^|^^^^^^^^^^^^   ~~~~~~~~|~~~~~~~~~~~~
       This characters are garbled. The multibyte character.
    
    NOTE: inner.sh includes Japanese characters.
    
    On AIX 6.1 TL8 SP3 no such problem!!
    

Local fix

  • - Run export LANG=Ja_JP from command line before running
    outer.ksh
    - Don't use dot command in outer.ksh
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:
    * Systems running the 7100-03 Technology Level with
    * bos.rte.shell at or between 7.1.3.0 and 7.1.3.45
    ****************************************************************
    * PROBLEM DESCRIPTION:
    * "export LANG=Ja_JP" in script is not * effective.
    * aix50:root> cat outer.sh
    * #!/bin/ksh
    * export LANG=Ja_JP
    * . ./inner.sh
    * aix50:root> unset LANG
    * aix50:root> . ./outer.sh
    * ksh: 0403-057 XXXXXXXXXXXXXXX : 'AAAAAAAA' unexpected
    *                  |                       |
    *    This characters are garbled. The multibyte character.
    * NOTE: inner.sh includes Japanese characters.
    ****************************************************************
    * RECOMMENDATION:
    * Install APAR IV77257.
    ****************************************************************
    

Problem conclusion

  • Changes made to allow LANG to be changed from within a sourced
    script.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV77257

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    YesPE

  • HIPER

    NoHIPER

  • Submitted date

    2015-09-21

  • Closed date

    2015-09-21

  • Last modified date

    2016-02-29

  • APAR is sysrouted FROM one or more of the following:

    IV75044

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U867656

       UP16/02/22 I 1000

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSMV87","label":"AIX 6.1 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11R","label":"AIX 7.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
29 February 2016