Call setlocale to make isprint() work based on current locale

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=307496++
Checkpoint