From 810bf5e87a47ab985711a3496aeca1acdd14e9b1 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 14 Aug 2019 11:02:30 -0600 Subject: [PATCH] symtab/Makefile: When system wide locale is set (i.e. en_US.UTF-8) then 'read' is ordered after 'readdir' even if separator is set to quotation mark and key set to 2. When C locale is used result is correct. --- arch/arm/include/lpc54xx/chip.h | 1 + symtab/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/lpc54xx/chip.h b/arch/arm/include/lpc54xx/chip.h index e1b9fb6b95..08123cbd1f 100644 --- a/arch/arm/include/lpc54xx/chip.h +++ b/arch/arm/include/lpc54xx/chip.h @@ -59,6 +59,7 @@ */ /* NVIC priority levels *************************************************************/ + /* Each priority field holds a priority value, 0-31. The lower the value, the greater * the priority of the corresponding interrupt. * diff --git a/symtab/Makefile b/symtab/Makefile index c560f35d51..7a7fcd79d4 100644 --- a/symtab/Makefile +++ b/symtab/Makefile @@ -81,7 +81,7 @@ $(MKSYMTAB): symtab.c : $(CSVFILES) $(MKSYMTAB) $(Q) rm -f tmp.csv $@ - $(Q) cat $(CSVFILES) | sort >tmp.csv + $(Q) cat $(CSVFILES) | LC_ALL=C sort >tmp.csv $(Q) $(MKSYMTAB) tmp.csv $@ $(Q) echo >>$@ $(Q) echo >>$@ 'int g_nsymbols = NSYMBOLS;'