enter_chroot: move C.UTF-8 mangling before chroot usage
We convert C.UTF-8 to en_US.UTF-8, but we did it before we tried to
enter the SDK & initialize the env. Move that earlier so we pass in
the right setting.
This also means we can delete the explicit check for C.UTF-8 which
is breaking on builders using that locale.
TEST=`LC_ALL=C.UTF-8 cros_sdk` works
Reviewed-by: Alex Klein <email@example.com>
Commit-Queue: Mike Frysinger <firstname.lastname@example.org>
Tested-by: Mike Frysinger <email@example.com>
1 file changed