aboutsummaryrefslogtreecommitdiffstats
path: root/www/twiki/files
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2008-06-16 21:50:18 +0800
committerskv <skv@FreeBSD.org>2008-06-16 21:50:18 +0800
commitee63894bacba15ae51923d18e313261ad3693491 (patch)
treee47dfe6e8ae9670642d4c0ae6fb6a24f96146bd9 /www/twiki/files
parent9b32313d6e503d0f79ed3e629e9fd72d4fa0f41b (diff)
downloadfreebsd-ports-gnome-ee63894bacba15ae51923d18e313261ad3693491.tar.gz
freebsd-ports-gnome-ee63894bacba15ae51923d18e313261ad3693491.tar.zst
freebsd-ports-gnome-ee63894bacba15ae51923d18e313261ad3693491.zip
* remove incorrect utf8-patches
* fix 'make-port' target Approved by: maintainter (implicitly)
Diffstat (limited to 'www/twiki/files')
-rw-r--r--www/twiki/files/patch-twikiutf8.diff97
1 files changed, 0 insertions, 97 deletions
diff --git a/www/twiki/files/patch-twikiutf8.diff b/www/twiki/files/patch-twikiutf8.diff
index 43cb662a0778..61d4c3cf96f5 100644
--- a/www/twiki/files/patch-twikiutf8.diff
+++ b/www/twiki/files/patch-twikiutf8.diff
@@ -1,101 +1,4 @@
# From: http://dot-and-thing.blogspot.com/2008/03/twiki-utf8.html
-diff -urE --exclude=data --exclude=pub twiki-4.2/lib/TWiki/UI/Edit.pm twiki/lib/TWiki/UI/Edit.pm
---- lib/TWiki/UI/Edit.pm 2008-01-22 06:18:55.000000000 +0300
-+++ lib/TWiki/UI/Edit.pm 2008-03-12 10:39:49.000000000 +0300
-@@ -13,6 +13,8 @@
- use Assert;
- use Error qw( :try );
-
-+use Encode;
-+
- require TWiki;
- require TWiki::UI;
- require TWiki::OopsException;
-@@ -239,7 +241,10 @@
- $formTemplate = $form->{name} if $form;
- }
-
-- $text = $session->expandVariablesOnTopicCreation( $text, $user, $webName, $topic );
-+ if ($TWiki::cfg{Site}{CharSet} =~ /^utf-?8$/) {
-+ $text = Encode::decode_utf8 ($text);
-+ }
-+ $text = $session->expandVariablesOnTopicCreation( $text, $user, $webName, $topic );
- $tmpl =~ s/%NEWTOPIC%/1/;
- } else {
- $tmpl =~ s/%NEWTOPIC%//;
-@@ -346,7 +351,12 @@
-
- $tmpl =~ s/%FORMTEMPLATE%//go; # Clear if not being used
-
-- return ( $text, $tmpl );
-+ if ($TWiki::cfg{Site}{CharSet} =~ /^utf-?8$/) {
-+ $text = Encode::decode_utf8 ($text);
-+ }
-+
-+
-+ return ( $text, $tmpl );
- }
-
- sub finalize_edit {
-diff -urE --exclude=data --exclude=pub twiki-4.2/lib/TWiki/UI/Save.pm twiki/lib/TWiki/UI/Save.pm
---- lib/TWiki/UI/Save.pm 2008-01-22 06:18:55.000000000 +0300
-+++ lib/TWiki/UI/Save.pm 2008-03-11 17:19:56.000000000 +0300
-@@ -37,6 +37,8 @@
- use Error qw( :try );
- use Assert;
-
-+use Encode;
-+
- require TWiki;
- require TWiki::UI;
- require TWiki::Meta;
-@@ -141,6 +143,9 @@
-
- # Determine the new text
- my $newText = $query->param( 'text' );
-+ if ($TWiki::cfg{Site}{CharSet} =~ /^utf-?8$/) {
-+ $newText = Encode::decode_utf8 ($newText);
-+ }
-
- my $forceNewRev = $query->param( 'forcenewrevision' );
- $saveOpts->{forcenewrevision} = $forceNewRev;
-diff -urE --exclude=data --exclude=pub twiki-4.2/lib/TWiki/UI/View.pm twiki/lib/TWiki/UI/View.pm
---- lib/TWiki/UI/View.pm 2008-01-22 06:18:55.000000000 +0300
-+++ lib/TWiki/UI/View.pm 2008-03-11 17:17:34.000000000 +0300
-@@ -40,6 +40,8 @@
- use CGI::Carp qw( fatalsToBrowser );
- use CGI qw( -any ); # pretty basic, this
-
-+use Encode;
-+
- require TWiki;
- require TWiki::UI;
- require TWiki::Sandbox;
-@@ -99,7 +101,12 @@
- require TWiki::Time;
- ( $currMeta, $currText ) = $store->readTopic
- ( $session->{user}, $webName, $topicName, undef );
-- TWiki::UI::checkAccess( $session, $webName, $topicName,
-+
-+ if ($TWiki::cfg{Site}{CharSet} =~ /^utf-?8$/) {
-+ $currText = Encode::decode_utf8 ($currText);
-+ }
-+
-+ TWiki::UI::checkAccess( $session, $webName, $topicName,
- 'VIEW', $session->{user}, $currText );
- ( $revdate, $revuser, $showRev ) = $currMeta->getRevisionInfo();
- $revdate = TWiki::Time::formatTime( $revdate );
-@@ -111,6 +118,10 @@
- if( $rev < $showRev ) {
- ( $meta, $text ) = $store->readTopic
- ( $session->{user}, $webName, $topicName, $rev );
-+
-+ if ($TWiki::cfg{Site}{CharSet} =~ /^utf-?8$/) {
-+ $text = Encode::decode_utf8 ($text);
-+ }
-
- ( $revdate, $revuser ) = $meta->getRevisionInfo();
- $revdate = TWiki::Time::formatTime( $revdate );
diff -urE --exclude=data --exclude=pub twiki-4.2/lib/TWiki.pm twiki/lib/TWiki.pm
--- lib/TWiki.pm 2008-01-22 06:18:55.000000000 +0300
+++ lib/TWiki.pm 2008-03-11 18:28:34.000000000 +0300
-gnome/commit/portuguese?h=gstreamer&id=f4bd28a107640de6a3cd96495077e62f785ff9e4'>- Update to 20120112sunpoet2012-01-132-3/+3 * - Update to 20111225sunpoet2011-12-282-3/+3 * - Update to 20111207sunpoet2011-12-082-3/+3 * - Update to 20111204sunpoet2011-12-072-3/+3 * - Pass maintainership to office@FreeBSD.orgsunpoet2011-11-292-2/+2 * - Update to 20111126sunpoet2011-11-282-3/+3 * - Update to 20111119sunpoet2011-11-212-3/+3 * The KDE on FreeBSD team is pleased to update the KDE4 ports to 4.7.3.rakuco2011-11-142-4/+4 * - Update to 20111102sunpoet2011-11-072-3/+3 * - Update to 20111025sunpoet2011-10-302-3/+3 * The vast majority of pkg-descr files had the following format when theydougb2011-10-241-2/+0 * The KDE/FreeBSD team is pleased to announce KDE Software Compilationavilla2011-10-175-37/+270 * - Update to 20110928sunpoet2011-10-032-3/+3