diff options
Diffstat (limited to 'bin/draksambashare')
-rwxr-xr-x | bin/draksambashare | 12 |
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}; |