Patch Name: PHCO_31575

Patch Description: s700_800 11.23 libxcurses cumulative patch

Creation Date: 04/08/26

Post Date: 04/09/22

Hardware Platforms - OS Releases:
	s700: 11.23
	s800: 11.23

Products: N/A

Filesets:
	OS-Core.CORE2-64SLIB,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP
	OS-Core.CORE2-SHLIBS,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP
	OS-Core.CORE2-64SLIB,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP
	OS-Core.CORE2-SHLIBS,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP

Automatic Reboot?: No

Status: General Release

Critical:
	No (superseded patches were critical)
	PHCO_30693: OTHER
		Display of curses application is corrupted.

Category Tags:
	defect_repair general_release critical

Path Name: /hp-ux_patches/s700_800/11.X/PHCO_31575

Symptoms:
	PHCO_31575:
	( SR:8606357325 CR:JAGaf18025 )
	Insert/delete line in curses program on dtterm causes
	incorrect display on screen.

	( SR:8606363390 CR:JAGaf24052 )
	PA-RISC libraries delivered to IPF are still HP-UX 11.11
	version.

	( SR:8606365511 CR:JAGaf26143 )
	In keypad mode, getch() API does not read escape key
	sequences properly.

	PHCO_30693:
	( SR:8606351376 CR:JAGaf12188 )
	Insert/delete line in curses program causes incorrect
	display on screen.

Defect Description:
	PHCO_31575:
	( SR:8606357325 CR:JAGaf18025 )
	The curses library stores the display data for each line in
	separate buffers and manipulates them for every
	insert/delete line call. Due to wrong assignment of buffers
	in certain cases the data displayed is not correct.

	Resolution:
	While inserting/deleting lines from the window the buffer
	assignment is now correct.

	( SR:8606363390 CR:JAGaf24052 )
	Following PA-RISC libraries delivered to IPF are still
	HP-UX 11.11 version
	/usr/lib/lib.b
	/usr/lib/libcurses.1
	/usr/lib/libgprof.1
	/usr/lib/libxcurses.1
	/usr/lib/pa20_64/libgprof.1
	/usr/lib/pa20_64/libprof.1
	/usr/lib/pa20_64/libxcurses.1

	Resolution:
	HP-UX 11.23 PA-RISC libraries are being delivered now. The
	new libraries are delivered in their respective patches.

	( SR:8606365511 CR:JAGaf26143 )
	The getch() API is not reading the escape key sequences
	in keypad mode. This problem is seen when the getch()
	is used in the child process reading from a pipe, and
	the parent process is reading the escape key sequences
	and writing to the pipe.
	This was due to the usage of an incorrect file descriptor
	while waiting for a keyboard input.

	Resolution:
	Now the correct file descriptor is used while waiting for
	a keyboard input.

	PHCO_30693:
	( SR:8606351376 CR:JAGaf12188 )
	The curses library stores the display data for each line in
	separate buffers and manipulates them for every
	insert/delete line call. Due to wrong assignment of buffers
	in certain cases the data displayed is not correct.

	Resolution:
	While inserting/deleting lines from the window the buffer
	assignment is now corrected.

Enhancement:
	No

SR:
	8606351376 8606357325 8606363390 8606365511

Patch Files:
	
	OS-Core.CORE2-64SLIB,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	/usr/lib/hpux64/libxcurses.so.1
	/usr/lib/pa20_64/libxcurses.1

	OS-Core.CORE2-SHLIBS,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	/usr/lib/hpux32/libxcurses.so.1
	/usr/lib/libxcurses.1

	OS-Core.CORE2-64SLIB,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	/usr/lib/pa20_64/libxcurses.1

	OS-Core.CORE2-SHLIBS,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	/usr/lib/libxcurses.1

what(1) Output:
	
	OS-Core.CORE2-64SLIB,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	/usr/lib/hpux64/libxcurses.so.1:
		$Revision: jazz @ 20040808.00:45:14PDT; jmkvw -proj 
			integ -RW -c ic71rb ph_ic71rb_i380 i380_ic71
			rbbase_pb(08-Aug-2004.06:17:07UTC) BE11.23_I
			C71R ;
	/usr/lib/pa20_64/libxcurses.1:
		$Revision: B11.23.0409LR

	OS-Core.CORE2-SHLIBS,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	/usr/lib/hpux32/libxcurses.so.1:
		$Revision: B11.23.0409LR
	/usr/lib/libxcurses.1:
		$Revision: B11.23.0409LR

	OS-Core.CORE2-64SLIB,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	/usr/lib/pa20_64/libxcurses.1:
		$Revision: B11.23.0409LR

	OS-Core.CORE2-SHLIBS,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	/usr/lib/libxcurses.1:
		$Revision: B11.23.0409LR

cksum(1) Output:
	
	OS-Core.CORE2-64SLIB,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	2571949890 1259376 /usr/lib/hpux64/libxcurses.so.1
	2740337340 678568 /usr/lib/pa20_64/libxcurses.1

	OS-Core.CORE2-SHLIBS,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	616369390 1170976 /usr/lib/hpux32/libxcurses.so.1
	2595807346 528384 /usr/lib/libxcurses.1

	OS-Core.CORE2-64SLIB,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	2740337340 678568 /usr/lib/pa20_64/libxcurses.1

	OS-Core.CORE2-SHLIBS,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	2595807346 528384 /usr/lib/libxcurses.1

Patch Conflicts: None

Patch Dependencies: None

Hardware Dependencies: None

Other Dependencies: None

Supersedes:
	PHCO_30693 

Equivalent Patches: None

Patch Package Size: 1340 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_31575

	5. Run swinstall to install the patch:

		swinstall -x autoreboot=true -x patch_match_target=true \
			  -s /tmp/PHCO_31575.depot

	By default swinstall will archive the original software in 
	/var/adm/sw/save/PHCO_31575.  If you do not wish to retain a
	copy of the original software, include the patch_save_files
	option in the swinstall command above:

		-x patch_save_files=false

	WARNING: If patch_save_files is false when a patch is installed,
		 the patch cannot be deinstalled.  Please be careful
		 when using this feature.

	For future reference, the contents of the PHCO_31575.text file is 
	available in the product readme:

		swlist -l product -a readme -d @ /tmp/PHCO_31575.depot

	To put this patch on a magnetic tape and install from the
	tape drive, use the command:

		dd if=/tmp/PHCO_31575.depot of=/dev/rmt/0m bs=2k

Special Installation Instructions: None

