Default per-process client locale (Perl) user/berick/perl-default-locale
authorBill Erickson <berick@esilibrary.com>
Thu, 23 May 2013 19:17:12 +0000 (15:17 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 23 May 2013 19:17:12 +0000 (15:17 -0400)
commit1fd99fc23d836b0b2094d94cd39a157ef2144204
treea221e1034dbf1686c29d5bab10dbdb30a69948c7
parent9bda0431374055bc4bbe440e3f5f8772022f074a
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>
src/perl/lib/OpenSRF/AppSession.pm