]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1188195: Default per-process client locale (Perl)
authorBill Erickson <berick@esilibrary.com>
Thu, 23 May 2013 19:17:12 +0000 (15:17 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 6 Aug 2013 21:59:52 +0000 (21:59 +0000)
commit8524849b01c1ab81a2b6d5799990d1dbfec22014
tree40c0fe378b6c2296b754a42c03547a673620f4c5
parent135fa8cf5bdcf7a9cbdf75931734c86fd09489ef
LP#1188195: Default per-process client locale (Perl)

Get/set the locale used by all new client sessions
for the current process.  This is primarily useful
for clients that wish to make a series of opensrf
calls and don't wish to set the locale for each new
AppSession object.

The caller should reset the locale when done using
reset_locale(), as the locale will otherwise persist
for the current process until set/reset again.

This is not for SERVER processes, since they
adopt the locale of their respective callers.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/perl/lib/OpenSRF/AppSession.pm