aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-11-10 17:29:57 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-11-10 17:41:48 +0000
commit0e5e68d82eac894483bb1b67a1b23b1972a9f045 (patch)
tree2be3b4813a4c04e09ebae86332a58d8d89618b28 /input.c
parentwayland: guard XDG startup notification with HAVE_XDG_ACTIVATION (diff)
main: improve handling of setlocale(3) return value
There's no need to call setlocale() twice, since the first call returns the same value as the second. We also handle a NULL return value explicitly and show a distinct error message for that case, since it typically indicates a misconfigured locale and not just a non-UTF8 locale.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions