This fixes SetupWineEnvironment() so it adds the default '.UTF-8' in the right place.
Signed-off-by: Francois Gouget fgouget@codeweavers.com --- testbot/lib/Build/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/lib/Build/Utils.pm b/testbot/lib/Build/Utils.pm index 4dda8d51fc..0f1ddb0f00 100644 --- a/testbot/lib/Build/Utils.pm +++ b/testbot/lib/Build/Utils.pm @@ -337,7 +337,7 @@ sub SetupWineEnvironment($) my $Lang = $Mission->{lang} || "en_US"; if ($Lang =~ /^[a-zA-Z0-9@_.-]+$/) { - $Lang .= ".UTF-8" if ($Lang !~ /./); + $Lang =~ s/(@[a-z]*$|$)/.UTF-8$1/ if ($Lang !~ /./); $ENV{LANG} = $Lang; }