Simplify and cleanup encoding menu building
commit8f9f9c5cf363e4b14a72211755b6e01c7bd6862d
authorColomban Wendling <ban@herbesfolles.org>
Wed, 25 Nov 2015 18:13:59 +0000 (25 19:13 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Fri, 27 Nov 2015 22:05:17 +0000 (27 23:05 +0100)
tree95ae442f5f2f2ab77718004b0e95df2f37ec5697
parent1a84bb6e34f00199e8659edcf53376f3b0047117
Simplify and cleanup encoding menu building

Rewrite a part of `encodings_init()` to remove duplication and some
hard-coded values.

This gives us the item for UHC back, that was lost when adding CP932 in
9d9f40cd15ad121ff3e3fffd40073706c297f2dd, due to a missing update of
the hard-coded group elements count.
src/encodings.c