[PATCH] busybox: tr: enable options required by POSIX

Magnus Kroken mkroken at gmail.com
Mon Jul 13 09:49:30 EDT 2020


Support for character classes (e.g. [:upper:] and [:lower:]) and
equivalence classes (e.g. [=a=]) in the tr utility are required by POSIX.
This change increases package size by approx. 500 bytes.

Size before:
208372 busybox_1.31.1-1_mips_24kc.ipk

Size after:
208895 busybox_1.31.1-1_mips_24kc.ipk

Signed-off-by: Magnus Kroken <mkroken at gmail.com>
Reported-by: Jordan Geoghegan <jordan at geoghegan.ca>
---
This was discussed a few days ago [1], but the patch wasn't caught by
Patchwork. Resending.

Jordan: I was not able to apply your patch, but it was easy enough to
fix. Please consider using git-send-email for future patches, as it
ensures it is formatted so Patchwork [2] will keep track of it, and
solves most formatting issues that may occur between author and committer.

1: https://lists.openwrt.org/pipermail/openwrt-devel/2020-July/030021.html
2: https://patchwork.ozlabs.org/project/openwrt/list/
 package/utils/busybox/Config-defaults.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/utils/busybox/Config-defaults.in b/package/utils/busybox/Config-defaults.in
index 29724041f4..76c51cf7e9 100644
--- a/package/utils/busybox/Config-defaults.in
+++ b/package/utils/busybox/Config-defaults.in
@@ -837,10 +837,10 @@ config BUSYBOX_DEFAULT_TR
 	default y
 config BUSYBOX_DEFAULT_FEATURE_TR_CLASSES
 	bool
-	default n
+	default y
 config BUSYBOX_DEFAULT_FEATURE_TR_EQUIV
 	bool
-	default n
+	default y
 config BUSYBOX_DEFAULT_TRUE
 	bool
 	default y
-- 
2.20.1




More information about the openwrt-devel mailing list