pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors/nvi Fix ^G to print correct ratio on Mac OSX. ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a940d8e79de3
branches: trunk
changeset: 651751:a940d8e79de3
user: enami <enami%pkgsrc.org@localhost>
date: Mon May 11 08:43:44 2015 +0000
description:
Fix ^G to print correct ratio on Mac OSX. Without this fix, the output
looks like this:
Makefile: unmodified: line 1 of 55 [140733193388033%]
diffstat:
editors/nvi/distinfo | 3 ++-
editors/nvi/patches/patch-common_msg.c | 14 ++++++++++++++
2 files changed, 16 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 232ab70bfca5 -r a940d8e79de3 editors/nvi/distinfo
--- a/editors/nvi/distinfo Mon May 11 05:18:22 2015 +0000
+++ b/editors/nvi/distinfo Mon May 11 08:43:44 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2013/09/20 14:50:49 ryoon Exp $
+$NetBSD: distinfo,v 1.21 2015/05/11 08:43:44 enami Exp $
SHA1 (nvi-1.81.6.tar.bz2) = d3445ed69166102735335a2ff60d092d9a9143c6
RMD160 (nvi-1.81.6.tar.bz2) = 0db8568bea96392d9a027044177c60317c8ade36
@@ -35,6 +35,7 @@
SHA1 (patch-bd) = 9a04f7a247fe6bf800469e81f7a83ffddd45b4b5
SHA1 (patch-common_conv.c) = efb2dabf226523a493fc1172013adc8021f4c2b9
SHA1 (patch-common_key.h) = 29f8b89b41b087ff7c2e9a5483fb9e6d2291c750
+SHA1 (patch-common_msg.c) = 73c6e8df0d5c85f4fee1316ea65de9da1876340b
SHA1 (patch-dist_Makefile.am) = ebae821ce659df003f5f2043f754e325c0863aff
SHA1 (patch-dist_config.h.in) = 21568929b165d1e774e59d6c648e0af7b17760da
SHA1 (patch-dist_configure.in) = c7b70b1a93889f41d949a3ede034f30abc063b7b
diff -r 232ab70bfca5 -r a940d8e79de3 editors/nvi/patches/patch-common_msg.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/nvi/patches/patch-common_msg.c Mon May 11 08:43:44 2015 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-common_msg.c,v 1.1 2015/05/11 08:43:44 enami Exp $
+
+--- common/msg.c.orig 2007-11-18 16:41:42.000000000 +0000
++++ common/msg.c
+@@ -640,7 +640,8 @@ msgq_status(SCR *sp, db_recno_t lno, u_i
+ p += len;
+ } else {
+ t = msg_cat(sp, "027|line %lu of %lu [%ld%%]", &len);
+- (void)sprintf(p, t, lno, last, (lno * 100) / last);
++ (void)sprintf(p, t, (u_long)lno, (u_long)last,
++ (long)((lno * 100) / last));
+ p += strlen(p);
+ }
+ } else {
Home |
Main Index |
Thread Index |
Old Index