Author: mlandres Date: Wed Jan 23 11:18:19 2008 New Revision: 8342 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8342&view=rev Log: use LC_MESSAGES instead of LC_CTYPE to determine defaultTextLocale Modified: branches/tmp/ma/jump_sat/libzypp/package/libzypp.changes branches/tmp/ma/jump_sat/libzypp/zypp/zypp_detail/ZYppImpl.cc Modified: branches/tmp/ma/jump_sat/libzypp/package/libzypp.changes URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/package/libzypp.changes?rev=8342&r1=8341&r2=8342&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/package/libzypp.changes (original) +++ branches/tmp/ma/jump_sat/libzypp/package/libzypp.changes Wed Jan 23 11:18:19 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Jan 23 11:16:50 CET 2008 - ma@suse.de + +- Consider LC_MESSAGES instead of LC_CTYPE to determine the default + text locale. + +------------------------------------------------------------------- Tue Dec 18 12:28:22 CET 2007 - aschnell@suse.de - fixed password handling in URLs (bug #347273) Modified: branches/tmp/ma/jump_sat/libzypp/zypp/zypp_detail/ZYppImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/zypp_detail/ZYppImpl.cc?rev=8342&r1=8341&r2=8342&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/zypp_detail/ZYppImpl.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/zypp_detail/ZYppImpl.cc Wed Jan 23 11:18:19 2008 @@ -37,10 +37,27 @@ namespace zypp_detail { ///////////////////////////////////////////////////////////////// + /** The locale to be used for texts and messages. + * + * For the encoding to be used the preference is + * + * LC_ALL, LC_CTYPE, LANG + * + * For the language of the messages to be used, the preference is + * + * LANGUAGE, LC_ALL, LC_MESSAGES, LANG + * + * Note that LANGUAGE can contain more than one locale name, it can be + * a list of locale names like for example + * + * LANGUAGE=ja_JP.UTF-8:de_DE.UTF-8:fr_FR.UTF-8 + + * \todo Support dynamic fallbacklists defined by LANGUAGE + */ inline Locale defaultTextLocale() { Locale ret( "en" ); - const char * envlist[] = { "LC_ALL", "LC_CTYPE", "LANG", NULL }; + const char * envlist[] = { "LC_ALL", "LC_MESSAGES", "LANG", NULL }; for ( const char ** envvar = envlist; *envvar; ++envvar ) { const char * envlang = getenv( *envvar ); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org