Project

General

Profile

Actions

Bug #1030

closed

strftime "%x" should generate something strptime can parse

Added by Gordon Ross over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
locale - data and messages
Start date:
2011-05-13
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

LANG=en_US.UTF-8 date '+%x'
has wrong output in the first 9 days of the month:

$ date '+%x'
05/ 6/11

(Note the space before the numeral six)

This breaks programs. For example, it prevents Evolution from
creating a calendar appointment.

The problem is that strftime generates something that strptime can not parse.


Files

strptime.c (1.16 KB) strptime.c Gordon Ross, 2011-05-13 08:55 PM
illumos1030.patch (578 Bytes) illumos1030.patch Gordon Ross, 2011-06-12 04:48 PM
Actions

Also available in: Atom PDF