Mailinglist Archive: zypp-commit (268 mails)

< Previous Next >
[zypp-commit] r7835 - in /branches/SuSE-SLE-10-SP2-Branch/libzypp: package/libzypp.changes zypp/Date.cc
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Fri, 16 Nov 2007 10:17:46 -0000
  • Message-id: <20071116101747.1B2AA1733E@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Fri Nov 16 11:17:46 2007
New Revision: 7835

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7835&view=rev
Log:
as well reset LS_TIME

Modified:
branches/SuSE-SLE-10-SP2-Branch/libzypp/package/libzypp.changes
branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/Date.cc

Modified: branches/SuSE-SLE-10-SP2-Branch/libzypp/package/libzypp.changes
URL:
http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-SLE-10-SP2-Branch/libzypp/package/libzypp.changes?rev=7835&r1=7834&r2=7835&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/libzypp/package/libzypp.changes (original)
+++ branches/SuSE-SLE-10-SP2-Branch/libzypp/package/libzypp.changes Fri Nov 16
11:17:46 2007
@@ -1,9 +1,9 @@
-------------------------------------------------------------------
-Thu Nov 15 09:53:57 CET 2007 - ma@xxxxxxx
+Fri Nov 16 11:15:39 CET 2007 - ma@xxxxxxx

- Output date strings in UTF-8. (#339423)
- version 2.30.3
-- revision 7822
+- revision 7835

-------------------------------------------------------------------
Tue Nov 6 14:43:54 CET 2007 - ma@xxxxxxx

Modified: branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/Date.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/Date.cc?rev=7835&r1=7834&r2=7835&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/Date.cc (original)
+++ branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/Date.cc Fri Nov 16 11:17:46
2007
@@ -70,10 +70,20 @@
}
::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;
}


--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages