Patch Name: PHCO_18070 Patch Description: s700_800 10.20 iconv(1) methods library cumulative patch Creation Date: 99/05/26 Post Date: 99/05/28 Hardware Platforms - OS Releases: s700: 10.20 s800: 10.20 Products: N/A Filesets: OS-Core.CMDS-MIN OS-Core.CMDS-AUX International.JAPANESE International.CHINESET Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_18070 Symptoms: PHCO_18070: Libc iconv(sjis->euc) function returns an error in converting Japanese Hankaku-Katakana characters. Therefore, the iconv(1) command also fails with the error message - "iconv: bad input character". JAGaa12504, DSDe444151;SR 1653272971 Unexpected failure in converting data from JIS to SJIS or JIS to eucJP, while using iconv(1) or iconv(3C). JAGaa12695 JAGaa12696 The iconv(3C) function can cause SIGSEGV. JAGaa94168; SR 1653296129 PHCO_15384: iconv() fails in ucs2->eucJP conversion if the target character is more than 3-bytes. DTS #: JAGaa08137 PHCO_15018: Any application which calls the iconv() function could encounter a serious performance problem. DTS #: JAGaa04914, STARS #: 4701389551 PHCO_10881: Iconv still does not support HP -> UTF8 conversions. 10.X iconv utf8 conversion does not work. DTS #: DSDe435235, DSDe434507 Defect Description: PHCO_18070: The problem occurs in sjis->euc conversion for Japanese-Hankaku characters, if the size of the input character string is greater than 1. Resolution: The implementation has been changed to properly process this condition. JAGaa12504, DSDe444151;SR 1653272971 The converters from JIS to SJIS and JIS to EUCJP handled shift sequences that straddled input buffer boundaries incorrectly. This lead to incorrect conversion of some input characters. Resolution: The implementation has been changed to correctly convert characters on input buffer boundaries. JAGaa12695 JAGaa12696 iconv(iconv_t cd, const char **inchar, size_t *inbytesleft, char **outchar, size_t *outbytesleft) he iconv() function could casue SIGSEGV if input characters pointed to by "*inchar" and output characters pointed to by "*outhcar" are allocated in different quadrants in the address space. For example, if input characters (*inbytes) are allocated in stack (2nd quadrant) and output characters (*outbytes) are allocated in shared memory (3rd or 4th quadrant), this problem can happen. Resolution: The implementation has been changed to correctly calculate the address of the characters independently of the quadrant. JAGaa94168; SR 1653296129 PHCO_15384: iconv() doesn't work for ucs2->eucJP(>3byte) conversion. PHCO_15018: iconv() is unacceptably slow. PHCO_10881: Iconv still does not support HP -> UTF8 conversions. 10.X iconv utf8 conversion does not work. DTS #: DSDe435235, DSDe434507 SR: 1653272971 1653296129 4701389551 Patch Files: /usr/lib/nls/iconv/methods.1/leucJPucs2.sl /usr/lib/nls/iconv/methods.1/leucJPutf8.sl /usr/lib/nls/iconv/methods.1/leucTWucs2.sl /usr/lib/nls/iconv/methods.1/leucTWutf8.sl /usr/lib/nls/iconv/methods.1/lhp15ucs2.sl /usr/lib/nls/iconv/methods.1/lhp15utf8.sl /usr/lib/nls/iconv/methods.1/libbcdhp.sl /usr/lib/nls/iconv/methods.1/libeucJP.sl /usr/lib/nls/iconv/methods.1/libeucJPbcd.sl /usr/lib/nls/iconv/methods.1/libeucJPjis.sl /usr/lib/nls/iconv/methods.1/libeucTW.sl /usr/lib/nls/iconv/methods.1/libeucTWbcd.sl /usr/lib/nls/iconv/methods.1/libhp15.sl /usr/lib/nls/iconv/methods.1/libhpbcd.sl /usr/lib/nls/iconv/methods.1/libjiseucJP.sl /usr/lib/nls/iconv/methods.1/libjissjis.sl /usr/lib/nls/iconv/methods.1/libsjis.sl /usr/lib/nls/iconv/methods.1/libsjisbcd.sl /usr/lib/nls/iconv/methods.1/libsjisjis.sl /usr/lib/nls/iconv/methods.1/lsbucs2.sl /usr/lib/nls/iconv/methods.1/lsbutf8.sl /usr/lib/nls/iconv/methods.1/lsjisucs2.sl /usr/lib/nls/iconv/methods.1/lsjisutf8.sl /usr/lib/nls/iconv/methods.1/lucs2hp.sl /usr/lib/nls/iconv/methods.1/lucs2utf.sl /usr/lib/nls/iconv/methods.1/lucs4utf.sl /usr/lib/nls/iconv/methods.1/lutf8hp.sl /usr/lib/nls/iconv/methods.1/lutfucs2.sl /usr/lib/nls/iconv/methods.1/lutfucs4.sl what(1) Output: /usr/lib/nls/iconv/methods.1/leucJPucs2.sl: None /usr/lib/nls/iconv/methods.1/leucJPutf8.sl: None /usr/lib/nls/iconv/methods.1/leucTWucs2.sl: None /usr/lib/nls/iconv/methods.1/leucTWutf8.sl: None /usr/lib/nls/iconv/methods.1/lhp15ucs2.sl: None /usr/lib/nls/iconv/methods.1/lhp15utf8.sl: None /usr/lib/nls/iconv/methods.1/libbcdhp.sl: None /usr/lib/nls/iconv/methods.1/libeucJP.sl: None /usr/lib/nls/iconv/methods.1/libeucJPbcd.sl: None /usr/lib/nls/iconv/methods.1/libeucJPjis.sl: None /usr/lib/nls/iconv/methods.1/libeucTW.sl: None /usr/lib/nls/iconv/methods.1/libeucTWbcd.sl: None /usr/lib/nls/iconv/methods.1/libhp15.sl: None /usr/lib/nls/iconv/methods.1/libhpbcd.sl: None /usr/lib/nls/iconv/methods.1/libjiseucJP.sl: None /usr/lib/nls/iconv/methods.1/libjissjis.sl: None /usr/lib/nls/iconv/methods.1/libsjis.sl: None /usr/lib/nls/iconv/methods.1/libsjisbcd.sl: None /usr/lib/nls/iconv/methods.1/libsjisjis.sl: None /usr/lib/nls/iconv/methods.1/lsbucs2.sl: None /usr/lib/nls/iconv/methods.1/lsbutf8.sl: None /usr/lib/nls/iconv/methods.1/lsjisucs2.sl: None /usr/lib/nls/iconv/methods.1/lsjisutf8.sl: None /usr/lib/nls/iconv/methods.1/lucs2hp.sl: None /usr/lib/nls/iconv/methods.1/lucs2utf.sl: None /usr/lib/nls/iconv/methods.1/lucs4utf.sl: None /usr/lib/nls/iconv/methods.1/lutf8hp.sl: None /usr/lib/nls/iconv/methods.1/lutfucs2.sl: None /usr/lib/nls/iconv/methods.1/lutfucs4.sl: None cksum(1) Output: 2383828880 12288 /usr/lib/nls/iconv/methods.1/leucJPucs2.sl 2766135250 12288 /usr/lib/nls/iconv/methods.1/leucJPutf8.sl 2726112220 12288 /usr/lib/nls/iconv/methods.1/leucTWucs2.sl 649005993 12288 /usr/lib/nls/iconv/methods.1/leucTWutf8.sl 20432977 12288 /usr/lib/nls/iconv/methods.1/lhp15ucs2.sl 4172335050 12288 /usr/lib/nls/iconv/methods.1/lhp15utf8.sl 192675544 12288 /usr/lib/nls/iconv/methods.1/libbcdhp.sl 3368090856 12288 /usr/lib/nls/iconv/methods.1/libeucJP.sl 2478525895 12288 /usr/lib/nls/iconv/methods.1/libeucJPbcd.sl 1325890598 12288 /usr/lib/nls/iconv/methods.1/libeucJPjis.sl 3147744160 12288 /usr/lib/nls/iconv/methods.1/libeucTW.sl 2645680942 12288 /usr/lib/nls/iconv/methods.1/libeucTWbcd.sl 1127640205 12288 /usr/lib/nls/iconv/methods.1/libhp15.sl 3690928935 12288 /usr/lib/nls/iconv/methods.1/libhpbcd.sl 1320750756 12288 /usr/lib/nls/iconv/methods.1/libjiseucJP.sl 2379394656 12288 /usr/lib/nls/iconv/methods.1/libjissjis.sl 248386171 12288 /usr/lib/nls/iconv/methods.1/libsjis.sl 1793106335 12288 /usr/lib/nls/iconv/methods.1/libsjisbcd.sl 4015528724 12288 /usr/lib/nls/iconv/methods.1/libsjisjis.sl 547186958 12288 /usr/lib/nls/iconv/methods.1/lsbucs2.sl 2393154648 12288 /usr/lib/nls/iconv/methods.1/lsbutf8.sl 2147281586 12288 /usr/lib/nls/iconv/methods.1/lsjisucs2.sl 2915129313 12288 /usr/lib/nls/iconv/methods.1/lsjisutf8.sl 566875331 12288 /usr/lib/nls/iconv/methods.1/lucs2hp.sl 859510263 12288 /usr/lib/nls/iconv/methods.1/lucs2utf.sl 1111039250 12288 /usr/lib/nls/iconv/methods.1/lucs4utf.sl 2804072517 12288 /usr/lib/nls/iconv/methods.1/lutf8hp.sl 1905219234 12288 /usr/lib/nls/iconv/methods.1/lutfucs2.sl 1015025801 12288 /usr/lib/nls/iconv/methods.1/lutfucs4.sl Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_10881 PHCO_15018 PHCO_15384 Equivalent Patches: None Patch Package Size: 430 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_18070 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_18070.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHCO_18070.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_18070. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_18070.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_18070.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None