pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/tools Don't let this program get confused just beca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/17a8f321d65f
branches:  trunk
changeset: 512510:17a8f321d65f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed May 10 22:03:07 2006 +0000

description:
Don't let this program get confused just because there is no white-space
between msgstr and the following string. The bug showed off at
icewm-1.2.25, file po/tr.po, line 774. While at it, removed an
unnecessary variable.

diffstat:

 mk/tools/msgfmt.sh |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 4a108e10a6d6 -r 17a8f321d65f mk/tools/msgfmt.sh
--- a/mk/tools/msgfmt.sh        Wed May 10 21:37:15 2006 +0000
+++ b/mk/tools/msgfmt.sh        Wed May 10 22:03:07 2006 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: msgfmt.sh,v 1.14 2006/04/15 04:41:08 jlam Exp $
+# $NetBSD: msgfmt.sh,v 1.15 2006/05/10 22:03:07 rillig Exp $
 #
 # Copyright (c) 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -174,8 +174,7 @@
                # the contents of the singular array and output the
                # "msgstr" translation.
                #
-               MSGSTR_RE = ORE "msgstr[        ]+"
-               if ($0 ~ MSGSTR_RE) {
+               if ($0 ~ (ORE "msgstr[  ]*\"")) {
                        if (s > 0) {
                                print obsolete "msgid " singular[0]
                                for (i = 1; i < s; i++)



Home | Main Index | Thread Index | Old Index