[PATCH] cogito: use locale date_fmt in obtaining default date format

DORMANTno replies

2 messages, 1 author, 2016-06-15 · open the first message on its own page

[PATCH] cogito: use locale date_fmt in obtaining default date format

From: Junichi Uekawa <hidden>
Date: 2016-06-15 22:42:08

Obtain the default date format information from the locale database 
if it's available. Currently, the default date is in a fixed format that 
is mostly US-centric; which results in a very weird-looking Japanese
date.


Signed-off-by: Junichi Uekawa <redacted>

---


 cg-Xlib |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Re: [PATCH] cogito: use locale date_fmt in obtaining default date format

From: Junichi Uekawa <hidden>
Date: 2016-06-15 22:42:08

Hi,
 	if [ "$has_gnudate" ]; then
 		LANG=C $has_gnudate -ud "1970-01-01 UTC + $secs sec" "$format"
 	else
Hmm... I just noticed that you're setting LANG=C here;
which is not enough since LC_ALL will override the value.

I'm not quite sure of the original intention;
I've checked the users


cg-log:
	For local display; it should be okay to show the date in 
	localized format.

cg-mkpatch:
	It might be intrusive to have a localized date in a patch;
	so having a localized output of showdate is mostly undesirable,
	but it will depend on the project you work on.
	(The user can always unset locale)


regards,
	junichi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help