Test case for handling string passed to setlocale.