Per-process default session locale for clients (Perl)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenSRF |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
To set the locale for an OpenSRF client session, the caller must pass the locale into each new client session created. This can be complicated if the caller is leveraging existing code (living in other modules) which is not locale aware. Providing an option to set the global default locale for clients allows clients to set, forget, and reset when done. The global locale will apply to all opensrf sessions and no external modules have to be modified.
This type of control is not relevant for OpenSRF server processes or any clients that are spawned from server process, since those processes will adopt the locale of the originating caller. This is useful only for the originating caller, the common example being mod_perl applications which use OpenSRF client sessions.
Code: working/
Changed in opensrf: | |
milestone: | none → 2.2.0 |
Changed in opensrf: | |
milestone: | 2.2.0 → 2.2.1 |
Changed in opensrf: | |
status: | Fix Committed → Fix Released |
Pushed (along with a follow-up adding a couple tests) to master and rel_2_2. Thanks, Bill!