IBM Support

IJ15089: CHANGING LANG IN KSH JOBS CAUSES SEARCH PERFORMANCE AND MISMATCH

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • Scripts performing a large number of pattern matching
    operations will be very slow if the LANG changes after
    the start of the script.
    
    For example, pattern matching such as this -
    
    [[ "$line" = +([!:])::* ]]
    
    - will be slow if the script starts with LANG=en_US and
    is then switched to C.
    
    
    Also the following would fail to find and operate if
    there are Japanese directory/files if in the middle of
    the job LANG changes to JA_JP.
    #!/usr/bin/ksh
    
    export LANG=JA_JP
    chown -R user1 /users/common/*
    

Local fix

  • Do not change environment LANG in KSH scripts
    

Problem summary

  • Changing the LANG from inside the script causes performance hit
    and a mismatch
    

Problem conclusion

Temporary fix

  • Please change the LANG before running the script.
    

Comments

  • This APAR is being closed FIN. This means that a solution to
    this APAR is expected to be delivered from IBM in a release
    (if any) to be available within the next 24 months.
    

APAR Information

  • APAR number

    IJ15089

  • Reported component name

    AIX V7.2

  • Reported component ID

    5765CD200

  • Reported release

    720

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2019-03-28

  • Closed date

    2019-08-05

  • Last modified date

    2019-08-05

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

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

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSVEF8","label":"AIX 7.2 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11S","label":"AIX 7.2 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
05 August 2019