From 1dbe3d5b8752355d9dfcc41b54d92f7c94fd0586 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 8 Jul 2009 11:49:09 +0000 Subject: [PATCH] * man: use UTF-8 instead of latin1 by default. Fixes broken special characters in man output. svn path=/nixpkgs/trunk/; revision=16244 --- pkgs/tools/misc/man/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/misc/man/default.nix b/pkgs/tools/misc/man/default.nix index 490aa4606ab..b718e3c1289 100644 --- a/pkgs/tools/misc/man/default.nix +++ b/pkgs/tools/misc/man/default.nix @@ -19,6 +19,15 @@ stdenv.mkDerivation { ./share.patch ]; + postInstall = + '' + # Use UTF-8 by default. Otherwise man won't know how to deal + # with certain characters. + substituteInPlace $out/lib/man.conf \ + --replace "nroff -Tlatin1" "nroff" \ + --replace "eqn -Tlatin1" "eqn -Tutf8" + ''; + meta = { homepage = http://primates.ximian.com/~flucifredi/man/; description = "Tool to read online Unix documentation";