summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-05-02 00:04:43 +0000
committerfukachan <fukachan>2004-05-02 00:04:43 +0000
commitefbb0158aa901ff0b8f985ff0896c2944a08200f (patch)
treea719ca64bb3a536ce03da5c774bec130cb34a1d6 /fml/lib
parent32fb49afd2817b4618939b2e5ece499f72521f6d (diff)
downloadfml8-efbb0158aa901ff0b8f985ff0896c2944a08200f.tar.gz
fml8-efbb0158aa901ff0b8f985ff0896c2944a08200f.tar.bz2
fml8-efbb0158aa901ff0b8f985ff0896c2944a08200f.zip
remove language_default().
language_of_html_file() return $html_archive_default_charset.
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/FML/Process/Utils.pm23
1 files changed, 7 insertions, 16 deletions
diff --git a/fml/lib/FML/Process/Utils.pm b/fml/lib/FML/Process/Utils.pm
index d55f6744..bad78e41 100644
--- a/fml/lib/FML/Process/Utils.pm
+++ b/fml/lib/FML/Process/Utils.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Utils.pm,v 1.116 2004/04/27 13:30:03 fukachan Exp $
+# $FML: Utils.pm,v 1.117 2004/04/28 04:07:09 fukachan Exp $
#
package FML::Process::Utils;
@@ -1622,23 +1622,11 @@ sub get_print_style
}
-=head2 language_default()
-
=head2 language_of_html_file()
-=cut
-
+return default language used in html files.
-# Descriptions: inform default language.
-# Arguments: OBJ($curproc)
-# Side Effects: none
-# Return Value: STR
-sub language_default
-{
- my ($curproc) = @_;
-
- return 'euc-jp'; # default
-}
+=cut
# Descriptions: language used in html files.
@@ -1648,7 +1636,10 @@ sub language_default
sub language_of_html_file
{
my ($curproc) = @_;
- $curproc->language_default();
+ my $config = $curproc->config();
+ my $language = $config->{ html_archive_default_charset } || 'us-ascii';
+
+ return $language;
}