diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -221,10 +221,13 @@ compile_for_lang() { } END { - if (lang == "en") - asort(col) - else - asort(col, col, "bilingual_sort") + locale = lang == "pt" \ + ? "pt_BR.UTF-8" \ + : lang "_" toupper(lang) ".UTF-8" + + CMD = "LC_ALL=" locale " ./bilingual_sort" + asort(col, col, "bilingual_sort") + close(CMD) for (i = 1; i <= 3; i++) { if (i == 3 && denom == 5) { @@ -289,10 +292,13 @@ compile_for_lang() { } END { - if (lang == "en") - asort(col) - else - asort(col, col, "bilingual_sort") + locale = lang == "pt" \ + ? "pt_BR.UTF-8" \ + : lang "_" toupper(lang) ".UTF-8" + + CMD = "LC_ALL=" locale " ./bilingual_sort" + asort(col, col, "bilingual_sort") + close(CMD) for (i = 1; i <= 2; i++) { if (i == 1) |