projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc0e8e8
)
reset LC_TIME
author
Michael Andres
<ma@suse.de>
Fri, 16 Nov 2007 14:50:36 +0000
(14:50 +0000)
committer
Michael Andres
<ma@suse.de>
Fri, 16 Nov 2007 14:50:36 +0000
(14:50 +0000)
zypp/Date.cc
patch
|
blob
|
history
diff --git
a/zypp/Date.cc
b/zypp/Date.cc
index
36501ac
..
d5f2240
100644
(file)
--- a/
zypp/Date.cc
+++ b/
zypp/Date.cc
@@
-70,10
+70,20
@@
namespace zypp
}
::setlocale( LC_TIME, needLocale.c_str() );
}
+ else
+ {
+ // no need to change the locale
+ thisLocale.clear();
+ }
if ( ! strftime( buf, 1024, format_r.c_str(), localtime( &_date ) ) )
*buf = '\0';
+ if ( ! thisLocale.empty() )
+ {
+ ::setlocale( LC_TIME, thisLocale.c_str() );
+ }
+
return buf;
}