summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2008-09-18 08:56:23 +0000
committerAntoine Ginies <aginies@mandriva.com>2008-09-18 08:56:23 +0000
commitf1111a47623996a3b59fbcf4e4e96835e1969f39 (patch)
tree56ce02cc25eadc235086497164afa6290d5a6c92 /bin
parent67cd49f4e0ede639fcf77a466209f506ab495d23 (diff)
downloaddrakx-net-f1111a47623996a3b59fbcf4e4e96835e1969f39.tar
drakx-net-f1111a47623996a3b59fbcf4e4e96835e1969f39.tar.gz
drakx-net-f1111a47623996a3b59fbcf4e4e96835e1969f39.tar.bz2
drakx-net-f1111a47623996a3b59fbcf4e4e96835e1969f39.tar.xz
drakx-net-f1111a47623996a3b59fbcf4e4e96835e1969f39.zip
add charset advanced option
Diffstat (limited to 'bin')
-rwxr-xr-xbin/draksambashare12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/draksambashare b/bin/draksambashare
index 7c07b47..6dc864e 100755
--- a/bin/draksambashare
+++ b/bin/draksambashare
@@ -1169,12 +1169,19 @@ sub configure_samba {
name => N("The wizard collected the following parameters to configure Samba.") . "\n\n" . N("To accept these values, and configure your server, click the Next button or use the Back button to correct them.") . "\n" . N("If you have previously create some shares, they will appear in this configuration. Run 'drakwizard sambashare' to manage your shares."),
pre => sub {
$o->{var}{wiz_sambatype} = $type{$o->{var}{wiz_type}};
+ $o->{var}{wiz_unixcharset} = "ISO8859-1";
+ $o->{var}{wiz_doscharset} = "cp850";
+ $o->{var}{wiz_displaycharset} = "LOCALE";
},
data => [
{ label => N("Samba type:"), val_ref => \$o->{var}{wiz_sambatype} },
{ label => N("Workgroup:"), val_ref => \$o->{var}{wiz_workgroup} },
{ label => N("Server banner:"), val_ref => \$o->{var}{wiz_banner} },
{ label => N("Log file:"), val_ref => \$o->{var}{wiz_log_file} },
+ { text => N(" "), advanced => 1 },
+ { label => N("Unix Charset:"), val => \$o->{var}{wiz_unixcharset}, help => "Unix Charset pecifies the charset the unix machine Samba runs on uses.", advanced => 1 },
+ { label => N("Dos Charset:"), val => \$o->{var}{wiz_doscharset}, help => "Dos Charset specifies which charset Samba should talk to DOS clients.", advanced => 1 },
+ { label => N("Display Charset:"), val => \$o->{var}{wiz_displaycharset}, help=> "Display Charset specifies the charset that samba will use to print messages to stdout and stderr. The default value is 'LOCALE', which means automatically set, depending on the current locale.", advanced => 1 },
],
post => sub {
$samba->{global}{workgroup} = $o->{var}{wiz_workgroup};
@@ -1202,8 +1209,9 @@ sub configure_samba {
sub global_special_options() {
# set charset
- $samba->{global}{'dos charset'} ||= "850";
- $samba->{global}{'unix charset'} ||= "ISO8859-1";
+ $samba->{global}{'dos charset'} ||= $o->{var}{wiz_doscharset};
+ $samba->{global}{'unix charset'} ||= $o->{var}{wiz_unixcharset};
+ $samba->{global}{'display charset'} ||= $o->{var}{wiz_displaycharset};
$o->{var}{wiz_security} and $samba->{global}{security} = $o->{var}{wiz_security};
$o->{var}{hosts_allow} and $samba->{global}{'hosts allow'} = $o->{var}{hosts_allow};
# $samba->{global}{security} = $o->{var}{wiz_security};