summaryrefslogtreecommitdiff
path: root/src/locale/catopen.c
AgeCommit message (Collapse)AuthorLines
2019-08-07add non-stub implementation of catgets localization functionsRich Felker-2/+73
these accept the netbsd/openbsd message catalog file format, consisting of a sorted list of set headers and a sorted list of message headers for each set, admitting trivial binary search for lookups. the gnu format was not chosen because it's unusably bad. it does not admit efficient (log time or better) lookups; rather, it requires linear search or hash table lookups, and the hash function is awful: it's literally set_id*msg_id.
2017-06-14catopen: set errno to EOPNOTSUPPA. Wilcox-0/+2
Per 1003.1-2008 (2016 ed.), catopen must set errno on failure. We set errno to EOPNOTSUPP because musl does not currently support message catalogues.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+6