[libcxx-commits] [PATCH] D111235: [libcxx][CI] Install all locales used by the test suite

David Spickett via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 6 08:09:10 PDT 2021


DavidSpickett created this revision.
Herald added a subscriber: arichardson.
DavidSpickett requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111235

Files:
  libcxx/utils/ci/Dockerfile


Index: libcxx/utils/ci/Dockerfile
===================================================================
--- libcxx/utils/ci/Dockerfile
+++ libcxx/utils/ci/Dockerfile
@@ -44,6 +44,14 @@
 # Install various tools used by the build or the test suite
 RUN apt-get update && apt-get install -y ninja-build python3 python3-sphinx python3-distutils git gdb
 RUN apt-get update && apt-get install -y libc6-dev-i386 # Required to cross-compile to 32 bits
+# Locales for gdb and localization tests
+RUN apt-get update && apt-get install -y language-pack-en language-pack-fr \
+                                         language-pack-ru language-pack-zh-hans
+# These two are not enabled by default so generate them
+RUN printf "fr_CA ISO-8859-1\ncs_CZ ISO-8859-2" >> /etc/locale.gen
+RUN mkdir /usr/local/share/i1en/
+RUN printf "fr_CA ISO-8859-1\ncs_CZ ISO-8859-2" >> /usr/local/share/i1en/SUPPORTED
+RUN locale-gen
 
 # Install Clang <latest>, <latest-1> and ToT, which are the ones we support.
 ENV LLVM_LATEST_VERSION=12


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111235.377553.patch
Type: text/x-patch
Size: 1011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211006/f4e7b8c4/attachment.bin>


More information about the libcxx-commits mailing list