[nw10] rebase fix: support to initialize default locale in OSX