summaryrefslogtreecommitdiff
path: root/bin/login.pl
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-23 20:14:15 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-23 20:14:15 +0000
commit56aefde186c4eba2ddd34017980d35683985417a (patch)
tree6203ab594f9ad4af65cf2221e8adf06939cc049d /bin/login.pl
parentaf66021ef163a3f51895db8eb89c957d292f8997 (diff)
Convert locales to Locale::Maketext::Lexicon
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@264 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/login.pl')
-rwxr-xr-xbin/login.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/login.pl b/bin/login.pl
index fbfdf431..c52c3b9e 100755
--- a/bin/login.pl
+++ b/bin/login.pl
@@ -39,6 +39,7 @@
use DBI;
use LedgerSMB::User;
use LedgerSMB::Form;
+use LedgerSMB::Locale;
## will need this later when session_destroy will be used
#use LedgerSMB::Session;
@@ -46,8 +47,10 @@ use LedgerSMB::Form;
$form = new Form;
-$locale = new Locale $language, "login";
-$form->{charset} = $locale->{charset};
+$locale = LedgerSMB::Locale->get_handle($language);
+$locale->encoding('UTF-8');
+$form->{charset} = 'UTF-8';
+#$form->{charset} = $locale->encoding;
# customization
if (-f "bin/custom/$form->{script}") {