Fixed the code page reset.

Because it is localized in accordance with the contents of the code page,
the output of 'chcp' command is not able to get the code page correctly
acquisition in that depends on the number of words.

(In CP932 environment, Japanese messages are output)