When /etc/locale.gen contains multiple spaces or tabs between <locale> and <charmap>, the locales appear to be generated fine but the display is mistaken: # locale-gen * Generating 10 locales (this might take a while) * (1/10) Generating en_GB.UTF-8... [ fine ] * (2/10) Generating en_GB.ISO-8859-1... [ fine ] * (3/10) Generating en_US.... [ fine ] * (4/10) Generating UTF-8... [ fine ] * (5/10) Generating en_US.... [ fine ] * (6/10) Generating ISO-8859-1... [ fine ] * (7/10) Generating es_ES.UTF-8... [ fine ] * (8/10) Generating UTF-8... [ fine ] * (9/10) Generating es_ES... [ fine ] * (10/10) Generating ISO-8859-1... [ fine ] * Generation complete Adding some extra echo statements shows this: locales_to_generate=' en_GB.UTF-8 UTF-8 en_GB ISO-8859-1 en_US.UTF-8 UTF-8 en_US ISO-8859-1 es_ES.UTF-8 UTF-8 es_ES ISO-8859-1 nl_NL.UTF-8 UTF-8 nl_NL ISO-8859-1 nl_BE.UTF-8 UTF-8 nl_BE ISO-8859-1' locales_disp=' en_GB.UTF-8 en_GB.ISO-8859-1 en_US. UTF-8 en_US. ISO-8859-1 es_ES.UTF-8 UTF-8 es_ES ISO-8859-1 nl_NL.UTF-8 UTF-8 nl_NL ISO-8859-1 nl_BE.UTF-8 UTF-8 nl_BE ISO-8859-1' The locales seem to have been generated correctly though: # ll /usr/lib/locale total 0 drwxr-xr-x 3 root root 408 May 6 23:20 en_GB/ drwxr-xr-x 3 root root 408 May 6 23:20 en_GB.utf8/ drwxr-xr-x 3 root root 408 May 6 23:20 en_US/ drwxr-xr-x 3 root root 408 May 6 23:20 en_US.utf8/ drwxr-xr-x 3 root root 408 May 6 23:20 es_ES/ drwxr-xr-x 3 root root 408 May 6 23:20 es_ES.utf8/ drwxr-xr-x 3 root root 408 May 6 23:20 nl_BE/ drwxr-xr-x 3 root root 408 May 6 23:20 nl_BE.utf8/ drwxr-xr-x 3 root root 408 May 6 23:20 nl_NL/ drwxr-xr-x 3 root root 408 May 6 23:20 nl_NL.utf8/
yeah, the display is sep from the actual generation ... so the messed up output is ok, your locales should be fine updated the display sed to eat all extraneous whitespace, thanks for reporting
*** Bug 132629 has been marked as a duplicate of this bug. ***