Project

General

Profile

Bug #1030 » illumos1030.patch

Gordon Ross, 2011-06-12 04:48 PM

View differences:

usr/src/lib/libc/port/locale/strptime.c Tue Jun 07 21:38:05 2011 -0500 → usr/src/lib/libc/port/locale/strptime.c Sun Jun 12 12:47:10 2011 -0400
339 339
					ptr++;
340 340
			break;
341 341

  
342
		case 'e':
343
			/*
344
			 * The %e format has a space before single digits
345
			 * which we need to skip.
346
			 */
347
			if (isspace(*buf))
348
				buf++;
349
			/* FALLTHROUGH */
342 350
		case 'd':
343
		case 'e':
344 351
			/*
345 352
			 * The %e specifier is explicitly documented as not
346 353
			 * being zero-padded but there is no harm in allowing
(2-2/2)