IBM Support

IV49910: VI WITH A NON ISO8859-1 CODE SET FAILS TO HANDLE NULL CHARS

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Steps to reproduce:
    
    - use "vi" in a locale with a code set other than
    ISO8859-1
    e.g.:
    export LANG=fr_FR.8859-15
    
    - load a file containing "null" characters
      (which should be ignored)
    e.g.:
    
    # echo "a\n\000b" > testfile
    
    # od -a testfile
    0000000    a  lf nul   b  lf
    0000005
    
    -> vi testfile shows
    a
    a
    b
    ~
    
    -> the first line is doubled
    

Local fix

  • - use a locale with a code set of "ISO8859-1"
    
    OR
    
    - remove all null characters from the input file
    
    # cat file | tr -d "\000" > file.repaired
    

Problem summary

  • vi with a non ISO8859-1 code set fails to handle null
    character.
    

Problem conclusion

  • Ignoring the null character.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV49910

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2013-09-24

  • Closed date

    2013-09-24

  • Last modified date

    2014-05-23

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

    IV47741

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

       UP14/05/22 I 1000

PTF to Fileset Mapping



Document information

More support for: AIX Enterprise Edition

Software version: 710

Operating system(s): AIX

Reference #: IV49910

Modified date: 23 May 2014