chiark / gitweb /
util: add is_locale_utf8()
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 2 Nov 2012 16:27:15 +0000 (17:27 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Fri, 2 Nov 2012 16:27:15 +0000 (17:27 +0100)
commit0901758558506273c0b7553dc3cae587f2b94290
tree654ff82aa499e9113e8de546d8972ffd25ab1bac
parent4940c64240541e91411620b7dc0963e012aa6b91
util: add is_locale_utf8()

journalctl and vconsole-setup both implement utf8 locale detection.
Let's have a common function for it.
The next patch will add another use.
src/journal/journalctl.c
src/shared/util.c
src/shared/util.h
src/vconsole/vconsole-setup.c