# # patch "ChangeLog" # from [6a86352f0d1532021e6d8c003630b7eaa8016c9d] # to [38d4db7648f8505f1c91811592d1e88af8570428] # # patch "ui.cc" # from [2c9b65e320b66d6b104bee5885723c4f97f36e8b] # to [cc03687f663ce5479070baa73a9c793ac16b1761] # # patch "ui.hh" # from [13817f413857ee072ca9ed1aa5dc90e51aaa0069] # to [2bedf507a3a2f5aa202e7cf38965822f5771c817] # ======================================================================== --- ChangeLog 6a86352f0d1532021e6d8c003630b7eaa8016c9d +++ ChangeLog 38d4db7648f8505f1c91811592d1e88af8570428 @@ -1,3 +1,7 @@ +2005-09-22 Benoît Dejean + + * ui.{cc,hh} (get_user_locale): Returns a const &. + 2005-09-21 Timothy Brownawell * contrib/usher.cc: better error checking ======================================================================== --- ui.cc 2c9b65e320b66d6b104bee5885723c4f97f36e8b +++ ui.cc cc03687f663ce5479070baa73a9c793ac16b1761 @@ -381,7 +381,7 @@ } // a cache used to avoid initialising locale("") on every call to boost::format -const locale +const locale & get_user_locale() { static const locale user_locale(""); ======================================================================== --- ui.hh 13817f413857ee072ca9ed1aa5dc90e51aaa0069 +++ ui.hh 2bedf507a3a2f5aa202e7cf38965822f5771c817 @@ -108,6 +108,6 @@ unsigned int guess_terminal_width(); // returns the a default user locale value -const std::locale get_user_locale(); +const std::locale & get_user_locale(); #endif // __UI_HH__