]> 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 22:03:45 +0000 (22:03 +0000)
commit811caee573b71ea3ac59c48f83d9ca29accad2f0
tree4d912714b6bf0b7e766636ea14d7cf371452de61
parent0a19073843476c02a168af1c00d6ccc5e0c03a14
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