[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [617] trunk
- Subject: SF.net SVN: ledger-smb: [617] trunk
- From: ..hidden..
- Date: Tue, 14 Nov 2006 21:35:22 -0800
Revision: 617
http://svn.sourceforge.net/ledger-smb/?rev=617&view=rev
Author: christopherm
Date: 2006-11-14 21:35:21 -0800 (Tue, 14 Nov 2006)
Log Message:
-----------
removing choice for db encoding... utf-8 all the way baby!!
Modified Paths:
--------------
trunk/LedgerSMB/User.pm
trunk/bin/admin.pl
Modified: trunk/LedgerSMB/User.pm
===================================================================
--- trunk/LedgerSMB/User.pm 2006-11-15 05:12:00 UTC (rev 616)
+++ trunk/LedgerSMB/User.pm 2006-11-15 05:35:21 UTC (rev 617)
@@ -369,11 +369,8 @@
sub dbcreate {
my ($self, $form) = @_;
- my %dbcreate = ( 'Pg' => qq|CREATE DATABASE "$form->{db}"| );
+ my %dbcreate = ( 'Pg' => qq|CREATE DATABASE "$form->{db}" WITH ENCODING = 'UNICODE'| );
- $dbcreate{Pg} .= " WITH ENCODING = '$form->{encoding}'"
- if $form->{encoding};
-
$form->{sid} = $form->{dbdefault};
&dbconnect_vars($form, $form->{dbdefault});
# The below line connects to Template1 or another template file in order
Modified: trunk/bin/admin.pl
===================================================================
--- trunk/bin/admin.pl 2006-11-15 05:12:00 UTC (rev 616)
+++ trunk/bin/admin.pl 2006-11-15 05:35:21 UTC (rev 617)
@@ -47,7 +47,6 @@
$form->error(__FILE__.':'.__LINE__.': '."Locale not loaded: $!\n");
$locale->encoding('UTF-8');
$form->{charset} = 'UTF-8';
-#$form->{charset} = $locale->encoding;
eval { require DBI; };
$form->error(__FILE__.':'.__LINE__.': '.$locale->text('DBI not installed!')) if ($@);
@@ -1096,37 +1095,6 @@
# add Default at beginning
unshift @charts, qq|<input name="chart" class="radio" type="radio" value="Default" checked />Default|;
- $selectencoding = qq|<option></option>
- <option value="SQL_ASCII">ASCII</option>
- <option value="EUC_JP">Japanese EUC</option>
- <option value="EUC_CN">Chinese EUC</option>
- <option value="EUC_KR">Korean EUC</option>
- <option value="JOHAB">Korean EUC (Hangle base)</option>
- <option value="EUC_TW">Taiwan EUC</option>
- <option value="UNICODE">Unicode (UTF-8)</option>
- <option value="MULE_INTERNAL">Mule internal type</option>
- <option value="LATIN1">ISO 8859-1/ECMA 94 (Latin alphabet no. 1)</option>
- <option value="LATIN2">ISO 8859-2/ECMA 94 (Latin alphabet no. 2)</option>
- <option value="LATIN3">ISO 8859-3/ECMA 94 (Latin alphabet no. 3)</option>
- <option value="LATIN4">ISO 8859-4/ECMA 94 (Latin alphabet no. 4)</option>
- <option value="LATIN5">ISO 8859-9/ECMA 128 (Latin alphabet no. 5)</option>
- <option value="LATIN6">ISO 8859-10/ECMA 144 (Latin alphabet no. 6)</option>
- <option value="LATIN7">ISO 8859-13 (Latin alphabet no. 7)</option>
- <option value="LATIN8">ISO 8859-14 (Latin alphabet no. 8)</option>
- <option value="LATIN9">ISO 8859-15 (Latin alphabet no. 9)</option>
- <option value="LATIN10">ISO 8859-16/ASRO SR 14111 (Latin alphabet no. 10)</option>
- <option value="ISO_8859_5">ISO 8859-5/ECMA 113 (Latin/Cyrillic)</option>
- <option value="ISO_8859_6">ISO 8859-6/ECMA 114 (Latin/Arabic)</option>
- <option value="ISO_8859_7">ISO 8859-7/ECMA 118 (Latin/Greek)</option>
- <option value="ISO_8859_8">ISO 8859-8/ECMA 121 (Latin/Hebrew)</option>
- <option value="KOI8">KOI8-R(U)</option>
- <option value="WIN">Windows CP1251</option>
- <option value="ALT">Windows CP866</option>
- <option value="WIN1256">Windows CP1256 (Arabic)</option>
- <option value="TCVN">Windows CP1258 (Vietnamese)</option>
- <option value="WIN874">Windows CP874 (Thai)</option>
- |;
-
$form->{title} = "LedgerSMB ".$locale->text('Accounting')
." ".$locale->text('Database Administration')
." / ".$locale->text('Create Dataset');
@@ -1157,10 +1125,6 @@
<td><input name="db" /></td>
</tr>
<tr>
- <th align="right" nowrap="nowrap">|.$locale->text('Multibyte Encoding').qq|</th>
- <td><select name="encoding">$selectencoding</select></td>
- </tr>
- <tr>
<th align="right" nowrap="nowrap">|.$locale->text('Create Chart of Accounts').qq|</th>
<td>
<table>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.