if len==0, an uninitalized variable would be returned
this is mandated by C and POSIX standards and is in accordance with glibc behavior.
commit 97bd6b09db refactored the table lookup into a function and introduced an error in index computation. the error caused garbage to be read from the table if the given charmap had a non-zero number of elided entries.
97bd6b09db