fix bug intruduced by the locale changes.
remove bogus comment
remove debugging printf.