Skip to content

Preset LANG to en_US.UTF-8 #10

Description

@ekrivenja-sequenex

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions