Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lslocales

Lists installed system locales (on Linux, macOS, Windows)

C License GitHub release Last Commit CI

Table of Contents

Introduction

lslocales is a small, standalone utility program that lists the locales installed on the host. On Windows it enumerates system locales via EnumSystemLocales and resolves each LCID with GetLocaleInfo (LOCALE_SNAME, falling back to LOCALE_SLANGUAGE). On POSIX it lists locale names as locale -a would, with a directory-scan fallback.

This is not lsloc (a recursive file-locator in ~/.bin).

Installation

Detailed instructions - via CMake - are provided in the accompanying INSTALL.md file.

Components

The project creates a single executable program, lslocales.

Examples

$ lslocales --names-only | head
C
C.UTF-8
POSIX
en_AU.UTF-8
en_US.UTF-8
. . .

Default output is id<TAB>name. When the id and name are identical (typical on POSIX) a single column is emitted; on Windows the id is the hex LCID.

Project Information

Where to get help

GitHub Page

Contribution guidelines

Defect reports, feature requests, and pull requests are welcome on the lslocales GitHub page.

Dependencies

lslocales depends on:

Tests-only Dependencies

For unit-testing, lslocales depends additionally on:

Related projects

Other (similar) projects include:

License

lslocales is released under the 3-clause BSD license. See LICENSE for details.

About

Lists locales on system

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages