Skip to content

Commit

Permalink
use LC_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Oct 14, 2023
1 parent ddb9dc5 commit d8dec39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions oc/od/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,13 @@ def createExecuteEnvironment(authinfo, userinfo, app=None ):
# 'LC_MEASUREMENT': lang,
# 'LC_IDENTIFICATION': lang,
# 'LC_TELEPHONE': lang,
# 'LC_NUMERIC': lang }
# 'LC_NUMERIC': lang,
# 'LC_COLLATE': lang }
env.update ( { 'LANGUAGE': language, 'LANG': lang, 'LC_ALL': lang } )

# # add dbussession is set in config file
# if oc.od.settings.desktop['usedbussession'] :
# env.update( {'OD_DBUS_SESSION_BUS': str(oc.od.settings.desktop['usedbussession']) })

# # add dbussystem is set in config file
# if oc.od.settings.desktop.get('usedbussystem') :
# env.update( {'OD_DBUS_SYSTEM_BUS': str(oc.od.settings.desktop['usedbussystem']) } )
Expand Down
7 changes: 3 additions & 4 deletions oc/od/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3893,12 +3893,11 @@ def get_env_for_appinstance(self, myDesktop, app, authinfo, userinfo={}, userarg
# update env with cuurent http request user LANG values
# read locale language from USER AGENT
language = userinfo.get('locale', 'en_US')
lang = language + '.UTF-8'
# LC_ALL is the environment variable that overrides all the other localisation settings
# (except $LANGUAGE under some circumstances).
env['LANGUAGE']=language
env['LANG']=lang
env['LC_ALL']=lang
env['LANGUAGE'] = language
env['LANG'] = language + '.UTF-8'
env['LC_ALL']= language + '.UTF-8'

# add PARENT_ID PARENT_HOSTNAME for ocrun nodejs script
env['PARENT_ID']=myDesktop.id
Expand Down

0 comments on commit d8dec39

Please sign in to comment.