summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-12-05 19:32:24 +0000
committerThierry Vignaud <tv@mandriva.org>2006-12-05 19:32:24 +0000
commit6cceefeb89af8318dc50aacb34cab71ab63cc7d6 (patch)
treef4a541c38e17f325770e1123a10703bcccdad3a3
parent30868f2ebd78bc51dbc14dbda4ee896b16e53000 (diff)
downloadmgaonline-6cceefeb89af8318dc50aacb34cab71ab63cc7d6.tar
mgaonline-6cceefeb89af8318dc50aacb34cab71ab63cc7d6.tar.gz
mgaonline-6cceefeb89af8318dc50aacb34cab71ab63cc7d6.tar.bz2
mgaonline-6cceefeb89af8318dc50aacb34cab71ab63cc7d6.tar.xz
mgaonline-6cceefeb89af8318dc50aacb34cab71ab63cc7d6.zip
(send_conf_via_soap) the server expect a 2 letters ISO code, not
country's full name
-rwxr-xr-xmdkonline4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdkonline b/mdkonline
index 8959c96a..a83365af 100755
--- a/mdkonline
+++ b/mdkonline
@@ -33,7 +33,6 @@ use wizards;
use lang;
use Getopt::Long;
-use Encode qw(encode);
BEGIN { unshift @::textdomains, 'mdkonline', 'drakfirstboot' }
@@ -113,8 +112,7 @@ sub get_conf() {
sub send_conf_via_soap {
my ($login, $password, $boxname, $descboxname, $country) = @_;
my $_w = $in->wait_message(N("Please wait"), N("Reading configuration\n")) if $ia;
- my $country = encode("UTF-8", $country);
- my $reg_host = mdkonline::register_upload_host($login, $password, $boxname, $descboxname, $country);
+ my $reg_host = mdkonline::register_upload_host($login, $password, $boxname, $descboxname, $locale->{country});
}
my $wiz =