Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preset LANG to en_US.UTF-8 #10

Open
ekrivenja-sequenex opened this issue Oct 7, 2021 · 0 comments
Open

Preset LANG to en_US.UTF-8 #10

ekrivenja-sequenex opened this issue Oct 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ekrivenja-sequenex
Copy link

The issue related to
https://confluence.atlassian.com/bitbucketserverkb/accented-or-extended-utf-8-characters-cause-malformed-input-or-input-contains-unmappable-characters-error-966062671.html

On Bitbucket pipeline some Gradle builds could crash with message:

Malformed input or input contains unmappable characters: #class path#

The image locale returns

LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

My issue is with Cucumber library. Exactly same as reported there:
cucumber/cucumber-android#41

Fixed by set export LANG="en_US.UTF-8" and run

apt-get clean && apt-get update -qq && apt-get install -qq -y apt-utils locales
locale-gen $LANG

before Gradle build run. But nice to see it as image default locale.

@ppoffice ppoffice added the enhancement New feature or request label Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants