utils: Overwrite localisation settings

Set localisation settings to default values to prevent different locale
results from tools.

Example: Non-English speaking countries use a comma as decimal seperators but
Python's float convert only accepts a point.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
This commit is contained in:
Daniel Schultz 2021-01-11 21:45:25 +01:00
parent 77e8b24c88
commit d3fba0c6a0
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ fi
export XRAY_PART_YAML="${XRAY_DATABASE_DIR}/${XRAY_DATABASE}/${XRAY_PART}/part.yaml"
source $XRAY_UTILS_DIR/environment.python.sh
# Set environment to default output and overwrite localisation settings
export LC_ALL=C
# tools
export XRAY_GENHEADER="${XRAY_UTILS_DIR}/genheader.sh"
export XRAY_BITREAD="${XRAY_TOOLS_DIR}/bitread --part_file ${XRAY_PART_YAML}"