]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
sort: drop "note" from a --debug message
authorPádraig Brady <P@draigBrady.com>
Wed, 22 Jan 2025 17:55:25 +0000 (17:55 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 22 Jan 2025 17:55:54 +0000 (17:55 +0000)
* 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

src/sort.c
tests/sort/sort-debug-warn.sh

index 0928fd57c0f6096af384e7613f93a7d288338170..4473987ef6761f97e64fe2b07059f794a653fb24 100644 (file)
@@ -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})));
 
     }
index 5cc1889f135b80c04aa5b498fa841882209b87a8..be3d1ddaf019b8c8397bf2d4e8df863164f5f9ca 100755 (executable)
@@ -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