Git Product home page Git Product logo

Comments (2)

partouf avatar partouf commented on June 15, 2024

We are using Ubuntu 22.04, do you have any suggestions on how to install them? We setup our instances with among others this script https://github.com/compiler-explorer/infra/blob/main/setup-node.sh#L15 in which we do some extra software installation

from compiler-explorer.

tahonermann avatar tahonermann commented on June 15, 2024

Thanks for the quick response!

The relevant package is locales and it will be installed by default (ubuntu-minimal depends on it).

Most of the locales I mentioned are "supported" ones and they should be present in /usr/share/i18n/SUPPORTED. For those locales, it suffices to uncomment the matching lines in /etc/locale.gen and then run locale-gen. This should suffice for the following locales. Since uncommenting matching lines could be annoying to automate, it should be ok to just append these entries to that file.

  • ja_JP.UTF-8
  • ja_JP.EUC-JP
  • zh_CN.UTF-8
  • zh_CN.GB18030
  • zh_CN.GBK
  • zh_CN.GB2312
  • zh_HK.UTF-8
  • zh_HK.BIG5-HKSCS
  • zh_TW.UTF-8
  • zh_TW.EUC-TW
  • zh_TW.BIG5

The ja_JP.sjis locale is "unsupported", but still available. I think this is the command I used on my local machine to build it.

  • localedef -f SHIFT_JIS -i ja_JP ja_JP.sjis

The ja_JP.ujis locale is an alias of ja_JP.eucJP and should already be present in /etc/locale.alias. I don't think anything needs to be done for it.

If everything works as expected, locale -a should list all of the above locales. It might be useful to add that command at the end of the script to capture the available locales in log output.

from compiler-explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.