Changes to process the correct locale type.

Changes to process the correct locale type.