So there is be a problem in guile's locale_charset()? There actually is its equivalent, environ_locale_charset(). Unfortunately the further reading is too hard for me as I know very little about this area as I tried to indicate in comment 13 (neither have time to study). http://lists.gnu.org/archive/html/guile-devel/2011-11/msg00040.html