[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] maint: sort: remove the last uses of "'%s'" in diagnostics
From: |
Jim Meyering |
Subject: |
[PATCH] maint: sort: remove the last uses of "'%s'" in diagnostics |
Date: |
Mon, 30 Jan 2012 12:53:45 +0100 |
There are still other uses of literal quotes
(run this for a subset,
git grep -h "\".*'.'.*\"" src
)
but this is the only one with '%s'.
There are also a few with %c:
$ git grep -h "'%c'" src
_("%s: closing delimiter '%c' missing"), str, delim);
error (0, 0, _("invalid character '%c' in type string %s"),
_("invalid output address radix '%c';\
>From dd090bee277db2771b0f1a372999866b7560e546 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 30 Jan 2012 12:48:20 +0100
Subject: [PATCH] maint: sort: remove the last uses of "'%s'" in diagnostics
* src/sort.c (key_warnings): Use quote (quote_n, since there are two)
rather than literal single quotes ('%s') in diagnostic.
---
src/sort.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sort.c b/src/sort.c
index 219598e..6875a6a 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2373,8 +2373,8 @@ key_warnings (struct keyfield const *gkey, bool gkey_only)
umaxtostr (eword + 1
+ (key->echar == SIZE_MAX), tmp));
}
- error (0, 0, _("obsolescent key '%s' used; consider '%s' instead"),
- obuf, nbuf);
+ error (0, 0, _("obsolescent key %s used; consider %s instead"),
+ quote_n (0, obuf), quote_n (1, nbuf));
}
/* Warn about field specs that will never match. */
--
1.7.9.49.g25388
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] maint: sort: remove the last uses of "'%s'" in diagnostics,
Jim Meyering <=