summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-02-26 13:19:37 +0000
committerfukachan <fukachan>2004-02-26 13:19:37 +0000
commite573b110cfc91ca8bcf100f29d2a0f9acca5aa34 (patch)
tree86b2132d187ac9642b6862fa077f96ba0d44f516 /fml/lib
parent6734cc2dd233d210320984f3343224b694227c19 (diff)
downloadfml8-e573b110cfc91ca8bcf100f29d2a0f9acca5aa34.tar.gz
fml8-e573b110cfc91ca8bcf100f29d2a0f9acca5aa34.tar.bz2
fml8-e573b110cfc91ca8bcf100f29d2a0f9acca5aa34.zip
implement set_language_hint(), get_language_hint().
get_accept_language_list() returns [] not [*] when no data.
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/FML/Process/Utils.pm30
1 files changed, 28 insertions, 2 deletions
diff --git a/fml/lib/FML/Process/Utils.pm b/fml/lib/FML/Process/Utils.pm
index f2f9f835..cf2dc4e8 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.104 2004/02/15 04:38:34 fukachan Exp $
+# $FML: Utils.pm,v 1.105 2004/02/26 08:07:00 fukachan Exp $
#
package FML::Process::Utils;
@@ -1510,6 +1510,32 @@ sub language_of_html_file
}
+# Descriptions: set the current charset hint.
+# Arguments: OBJ($curproc) STR($category) STR($charset)
+# Side Effects: none
+# Return Value: none
+sub set_language_hint
+{
+ my ($curproc, $category, $charset) = @_;
+ my $pcb = $curproc->pcb();
+
+ $pcb->set("language_hint", $category, $charset);
+}
+
+
+# Descriptions: get the current charset hint.
+# Arguments: OBJ($curproc) STR($category)
+# Side Effects: none
+# Return Value: none
+sub get_language_hint
+{
+ my ($curproc, $category) = @_;
+ my $pcb = $curproc->pcb();
+
+ $pcb->get("language_hint", $category);
+}
+
+
# Descriptions: set the current charset.
# Arguments: OBJ($curproc) STR($category) STR($charset)
# Side Effects: none
@@ -1620,7 +1646,7 @@ sub get_accept_language_list
return $pcb->get('incoming_message', 'accept-language');
}
else {
- return [ '*' ];
+ return [ ];
}
}