aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/texi2html-document-encoding.patch
blob: 1469b67fa6dbaf7c1438e70a96c86abe4a111d58 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Patch derived from discussion at https://savannah.nongnu.org/bugs/?37503

--- texi2html-5.0/texi2html.pl	2010-06-30 17:01:27.000000000 -0500
+++ texi2html-5.0/texi2html.pl	2014-07-09 01:17:57.062990582 -0500
@@ -2589,7 +2589,12 @@
     my $state = shift;
 
     # FIXME this should be done only once, for @documentencoding
-    my $encoding = lc(Texi2HTML::Config::get_conf('DOCUMENT_ENCODING'));
+    my $encoding;
+    my $input_encoding = Texi2HTML::Config::get_conf('documentencoding');
+    if (defined($input_encoding))
+    {
+      $encoding = lc($input_encoding);
+    }
     if (defined($encoding) and $encoding ne '' and exists($Texi2HTML::Config::t2h_encoding_aliases{$encoding}))
     {
        $encoding = $Texi2HTML::Config::t2h_encoding_aliases{$encoding};

Fix failures in test/encodings.

--- texi2html-5.0/texi2html.pl	2014-07-09 01:22:06.000000000 -0500
+++ texi2html-5.0/texi2html.pl	2014-07-10 23:23:47.182097602 -0500
@@ -53,6 +53,7 @@
 # for translations
 #use encoding 'utf8';
 #use utf8;
+binmode STDERR, ':encoding(utf8)';
 
 #
 # According to
'>gnu: KDE Games: Update all packages to 21.12.3....* gnu/packages/kde-games.scm (ktuberling, picmi, kolf, libkmahjongg, kmahjongg, kshisen, kajongg, kbreakout, kmines, konquest, kbounce, kblocks, ksudoku, klines, kgoldrunner, kdiamond, kfourinline, kblackbox, knetwalk, bomber, granatier, ksirk, palapeli, kiriki, kigo, kubrick, lskat, kapman, kspaceduel, bovo, killbots, ksnakeduel, kollision, knavalbattle, kreversi, ksquares, kjumpingcube): Update to 21.12.3. Signed-off-by: Marius Bakke <marius@gnu.org> Brendan Tildesley 2022-09-01gnu: kajongg: Add bash-minimal to inputs....* gnu/packages/kde-games.scm (kajongg): [inputs]: Add bash-minimal. Signed-off-by: Marius Bakke <marius@gnu.org> Petr Hodina 2022-09-01gnu: KDE Games: Update home-page links....* gnu/package/kde-games.scm (ktuberling, picmi, kolf, kmahjongg, kshisen, kajongg, kbreakout, kmines, konquest, kbounce, kblocks, ksudoku, klines, kgoldrunner, kdiamond, kfourinline, kblackbox, knetwalk, bomber, granatier, ksirk, palapeli, kiriki, kigo, kubrick, lskat, kapman, kspaceduel, bovo, killbots, ksnakeduel, kollision, knavalbattle, kreversi, ksquares, kjumpingcube): Update home-page. Signed-off-by: Marius Bakke <marius@gnu.org> Petr Hodina 2022-09-01gnu: Move KDE games to (gnu packages kde-games)....* gnu/packages/games.scm: (ktuberling picmi kolf libkmahjongg kmahjongg kshisen kajongg kbreakout kmines konquest kbounce kblocks ksudoku klines kgoldrunner kdiamond kfourinline kblackbox knetwalk bomber granatier ksirk palapeli kiriki kigo kubrick lskat kapman kspaceduel bovo killbots ksnakeduel kollision knavalbattle kreversi ksquares kjumpingcube): Move to gnu/packages/kde-games.scm. [define-module]: Remove (gnu packages kde), (gnu packages kde-frameworks). * gnu/packages/kde-games.scm: New module. [header]: Copy over any copyrights I could find that affected these games. * gnu/local.mk (GNU_SYSTEM_MODULES): Register it. Why? games.scm is very large, and will only get larger, so splitting it helps. Also, it is convenient for singling out and updating KDE games. Signed-off-by: Marius Bakke <marius@gnu.org> Brendan Tildesley