-
Notifications
You must be signed in to change notification settings - Fork 45
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
add ENV LC_ALL|LANG=C.UTF-8 #75
Conversation
This somewhat ensures a consistent utf-8 configuration.
@cladmi like this? |
Oh, |
I test building it locally and see if it works. |
This fixes this test RIOT-OS/RIOT#11691 (comment) (after removing the
I could run it with native with the
Some websites talk about doing a |
That's indeed weird. That page says there are no autobuilds? I don't want to merge anything while release testing is ongoing, though... |
(a push to master of this repo should trigger a Docker hub rebuild.) |
As I only did a local test for something I thought could be a reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, and working locally for me. Also fixes RIOT-OS/RIOT#11691.
DOCKER_IMAGE=riot_pr_75:latest DOCKER_FLAGS='--rm --privileged' BUILD_IN_DOCKER=1 DOCKER="sudo docker" BOARD=native make -C tests/lua_loader/ all term
make: Entering directory '/home/francisco/workspace/RIOT/tests/lua_loader'
Launching build container using image "riot_pr_75:latest".
sudo docker run --rm --privileged -t -u "$(id -u)"
-v '/usr/share/zoneinfo/Europe/Paris:/etc/localtime:ro' -v '/home/francisco/workspace/RIOT:/data/riotbuild/riotbase' -e 'RIOTBASE=/data/riotbuild/riotbase' -e 'CCACHE_BASEDIR=/data/riotbuild/riotbase' -e 'BUILD_DIR=/data/riotbuild/riotbase/build' -e 'RIOTPROJECT=/data/riotbuild/riotbase' -e 'RIOTCPU=/data/riotbuild/riotbase/cpu' -e 'RIOTBOARD=/data/riotbuild/riotbase/boards' -e 'RIOTMAKE=/data/riotbuild/riotbase/makefiles'
-e 'BOARD=native'
-w '/data/riotbuild/riotbase/tests/lua_loader/'
'riot_pr_75:latest' make all
Building application "tests_lua_loader" for "native" with MCU "native".
rm -Rf /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua
mkdir -p /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua
/data/riotbuild/riotbase/dist/tools/git/git-cache clone "https://github.com/lua/lua.git" "e354c6355e7f48e087678ec49e340ca0696725b1" "/data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua"
Cloning into '/data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua'...
remote: Enumerating objects: 272, done.
remote: Counting objects: 100% (272/272), done.
remote: Compressing objects: 100% (132/132), done.
remote: Total 23509 (delta 166), reused 216 (delta 140), pack-reused 23237
Receiving objects: 100% (23509/23509), 9.33 MiB | 2.12 MiB/s, done.
Resolving deltas: 100% (17610/17610), done.
HEAD is now at e354c635 small updates
touch /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua/.git-downloaded
if [ e354c6355e7f48e087678ec49e340ca0696725b1 != e354c6355e7f48e087678ec49e340ca0696725b1 ] ; then
git -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua clean -xdff ;
git -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua fetch "https://github.com/lua/lua.git" "e354c6355e7f48e087678ec49e340ca0696725b1" ;
git -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua checkout -f e354c6355e7f48e087678ec49e340ca0696725b1 ;
touch /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua/.git-downloaded ;
fi
git -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua checkout -f e354c6355e7f48e087678ec49e340ca0696725b1
HEAD is now at e354c635 small updates
git -c user.email=buildsystem@riot -c user.name="RIOT buildsystem" -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua am --no-gpg-sign --ignore-whitespace "/data/riotbuild/riotbase/pkg/lua"/patches/.patch
Applying: Remove luaL_newstate.
Applying: Allow LUAL_BUFFERSIZE to be defined in the command line.
Applying: Make size of LoadF buffer configurable.
Applying: Remove os.tmpname.
Applying: Do not allocate buffers on the stack.
Applying: Cleanup test module.
Applying: Add a proper makefile.
Applying: Default to 32 bit build and small buffer size.
touch /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua/.git-patched
rm -Rf /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf
mkdir -p /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf
/data/riotbuild/riotbase/dist/tools/git/git-cache clone "https://github.com/mattconte/tlsf" "a1f743ffac0305408b39e791e0ffb45f6d9bc777" "/data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf"
Cloning into '/data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf'...
remote: Enumerating objects: 40, done.
remote: Total 40 (delta 0), reused 0 (delta 0), pack-reused 40
Unpacking objects: 100% (40/40), done.
HEAD is now at a1f743f Merge pull request #3 from velvitonator/large-alloc-corruption
touch /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf/.git-downloaded
if [ a1f743ffac0305408b39e791e0ffb45f6d9bc777 != a1f743ffac0305408b39e791e0ffb45f6d9bc777 ] ; then
git -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf clean -xdff ;
git -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf fetch "https://github.com/mattconte/tlsf" "a1f743ffac0305408b39e791e0ffb45f6d9bc777" ;
git -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf checkout -f a1f743ffac0305408b39e791e0ffb45f6d9bc777 ;
touch /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf/.git-downloaded ;
fi
git -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf checkout -f a1f743ffac0305408b39e791e0ffb45f6d9bc777
HEAD is now at a1f743f Merge pull request #3 from velvitonator/large-alloc-corruption
git -c user.email=buildsystem@riot -c user.name="RIOT buildsystem" -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf am --no-gpg-sign --ignore-whitespace "/data/riotbuild/riotbase/pkg/tlsf"/patches/.patch
Applying: Fix warnining on implicit pointer conversion.
touch /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf/.git-patched
"make" -C /data/riotbuild/riotbase/pkg/lua
"make" -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/lua -f Makefile.lua
"make" -C /data/riotbuild/riotbase/pkg/tlsf
"make" -C /data/riotbuild/riotbase/tests/lua_loader/bin/pkg/native/tlsf
"make" -C /data/riotbuild/riotbase/boards/native
"make" -C /data/riotbuild/riotbase/boards/native/drivers
"make" -C /data/riotbuild/riotbase/core
"make" -C /data/riotbuild/riotbase/cpu/native
"make" -C /data/riotbuild/riotbase/cpu/native/periph
"make" -C /data/riotbuild/riotbase/cpu/native/vfs
"make" -C /data/riotbuild/riotbase/drivers
"make" -C /data/riotbuild/riotbase/drivers/periph_common
"make" -C /data/riotbuild/riotbase/pkg/lua/contrib
"make" -C /data/riotbuild/riotbase/sys
"make" -C /data/riotbuild/riotbase/sys/auto_init
text data bss dec hex filename
287503 2804 58692 348999 55347 /data/riotbuild/riotbase/tests/lua_loader/bin/native/tests_lua_loader.elf
/home/francisco/workspace/RIOT/tests/lua_loader/bin/native/tests_lua_loader.elf
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2019.10-devel-214-g644040-pr-11056)
I am a module, hi!
Could you run this in a Murdock worker once just to be sure. Otherwise ACK
Let's fix any Murdock related problems within the murdock repo. Let's go! |
This somewhat ensures a consistent utf-8 configuration.
Without any LANG or LC_ALL setting, Linux systems default to the C locale. This breaks many utf8 applications. Most notably, python is much more sane when running in utf8 locales.
(See #73 , RIOT-OS/RIOT#11691)