From: Pádraig Brady
Date: Wed, 22 Jan 2025 17:55:25 +0000 (+0000) Subject: sort: drop "note" from a --debug message X-Git-Tag: v9.7~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbfd886e595cf9b021fc9d8363760953a1d3e6ca;p=thirdparty%2Fcoreutils.git sort: drop "note" from a --debug message * src/sort.c (key_warnings): Remove "note " from the start of a usually informational message, as this simplifies translation. * tests/sort/sort-debug-warn.sh": Adjust accordingly. Fixes https://bugs.gnu.org/75763 --- diff --git a/src/sort.c b/src/sort.c index 0928fd57c0..4473987ef6 100644 --- a/src/sort.c +++ b/src/sort.c @@ -2632,8 +2632,7 @@ key_warnings (struct keyfield const *gkey, bool gkey_only) if ((basic_numeric_field || general_numeric_field) && ! number_locale_warned) { error (0, 0, - _("%snumbers use %s as a decimal point in this locale"), - tab == decimal_point ? "" : _("note "), + _("numbers use %s as a decimal point in this locale"), quote (((char []) {decimal_point, 0}))); } diff --git a/tests/sort/sort-debug-warn.sh b/tests/sort/sort-debug-warn.sh index 5cc1889f13..be3d1ddaf0 100755 --- a/tests/sort/sort-debug-warn.sh +++ b/tests/sort/sort-debug-warn.sh @@ -26,39 +26,39 @@ sort: key 1 has zero width and will be ignored 2 sort: text ordering performed using simple byte comparison sort: key 1 has zero width and will be ignored -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale 3 sort: text ordering performed using simple byte comparison sort: key 1 is numeric and spans multiple fields -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale 4 sort: text ordering performed using simple byte comparison -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale sort: options '-bghMRrV' are ignored 5 sort: text ordering performed using simple byte comparison -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale sort: options '-bghMRV' are ignored sort: option '-r' only applies to last-resort comparison 6 sort: text ordering performed using simple byte comparison -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale sort: option '-r' only applies to last-resort comparison 7 sort: text ordering performed using simple byte comparison sort: leading blanks are significant in key 2; consider also specifying 'b' -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale sort: options '-bg' are ignored 8 sort: text ordering performed using simple byte comparison -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale 9 sort: text ordering performed using simple byte comparison -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale sort: option '-b' is ignored 10 sort: text ordering performed using simple byte comparison -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale 11 sort: text ordering performed using simple byte comparison sort: leading blanks are significant in key 1; consider also specifying 'b' @@ -136,7 +136,7 @@ sort: text ordering performed using simple byte comparison sort: key 1 is numeric and spans multiple fields sort: obsolescent key '+2 -1' used; consider '-k 3,1' instead sort: key 2 has zero width and will be ignored -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale sort: option '-b' is ignored sort: option '-r' only applies to last-resort comparison EOF @@ -168,7 +168,7 @@ cat <<\EOF > exp sort: text ordering performed using simple byte comparison sort: key 1 is numeric and spans multiple fields sort: field separator '-' is treated as a minus sign in numbers -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale EOF sort -nk1 -t- --debug /dev/null 2>out || fail=1 compare exp out || fail=1 @@ -177,7 +177,7 @@ cat <<\EOF > exp sort: text ordering performed using simple byte comparison sort: key 1 is numeric and spans multiple fields sort: field separator '+' is treated as a plus sign in numbers -sort: note numbers use '.' as a decimal point in this locale +sort: numbers use '.' as a decimal point in this locale EOF sort -gk1 -t+ --debug /dev/null 2>out || fail=1 compare exp out || fail=1