locale name in form lang_COUNTRY.ENCODING@MODIFIER
assert(makeLocaleName("ru", "RU") == "ru_RU"); assert(makeLocaleName("ru", "RU", "UTF-8") == "ru_RU.UTF-8"); assert(makeLocaleName("ru", "RU", "UTF-8", "mod") == "ru_RU.UTF-8@mod"); assert(makeLocaleName("ru", string.init, string.init, "mod") == "ru@mod"); assert(makeLocaleName("ru".dup, (char[]).init, (char[]).init, "mod".dup) == "ru@mod".dup);
Make locale name based on language, country, encoding and modifier.