tool_operate: Moved locale setup code into operate_init()