this is what update-locale does when you select an actual locale
authormirabilos <t.glaser@tarent.de>
Wed, 18 Sep 2019 16:10:46 +0000 (18:10 +0200)
committermirabilos <mirabilos@evolvis.org>
Wed, 18 Sep 2019 16:10:46 +0000 (18:10 +0200)
posix/mkrpi3b+img.sh

index 2a270ec..158ba5f 100644 (file)
@@ -876,8 +876,8 @@ Press Enter to continue.' 12 72 || :)
                # whether the user just hit Enter
                case $(</etc/default/locale) in
                (''|'#  File generated by update-locale')
-                       # empty, add sensible default
-                       print -r -- 'LANG="C.UTF-8"' >/etc/default/locale
+                       # empty, add sensible default (same as update-locale)
+                       print -r -- 'LANG=C.UTF-8' >>/etc/default/locale
                        ;;
                esac
        EOF