Index: src/bin/psql/mbprint.c
===================================================================
RCS file: /cvsroot/pgsql/src/bin/psql/mbprint.c,v
retrieving revision 1.30
diff -c -c -r1.30 mbprint.c
*** src/bin/psql/mbprint.c	16 Apr 2008 18:18:00 -0000	1.30
--- src/bin/psql/mbprint.c	7 May 2008 15:18:25 -0000
***************
*** 315,320 ****
--- 315,330 ----
  				linewidth += 2;
  				ptr += 2;
  			}
+ 			else if (*pwcs == '\t')		/* Tab */
+ 			{
+ 				strcpy((char *) ptr, "\t");
+ 				/*
+ 				 *	We don't know what tab stop we are on, so assuming 8-space
+ 				 *	tabs, the average width of a tab is 4.
+ 				 */
+ 				linewidth += 4;
+ 				ptr += 1;
+ 			}
  			else if (w < 0)		/* Other control char */
  			{
  				sprintf((char *) ptr, "\\x%02X", *pwcs);
