setting locale to default, fixed issue 1583, thanks ozancag
Merge branch 'master' of github.com:web2py/web2py
Merge branch 'master' of github.com:web2py/web2py
Merge branch 'master' of github.com:web2py/web2py
Merge branch 'master' of github.com:web2py/web2py
Merge branch 'master' of github.com:web2py/web2py
moved the locals restoring logic, thanks ozancag