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
This commit is contained in:
Pádraig Brady committed 2025-01-22 17:55:54 +00:00
1 parent d10cc94399
commit fbfd886e59
2 files changed
+13 -14

No files matched your search

+1 -2
View 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})));
}
+12 -12
View File
@@ -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