Skip to content

Commit

Permalink
Use LC_ALL instead of LC_COLLATE
Browse files Browse the repository at this point in the history
Closes issue #96.
  • Loading branch information
suominen committed Mar 11, 2024
1 parent 488f86a commit 0545d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
${CPP} $(CPPFLAGS) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\
$(srcdir)/tc.const.c | \
sed -n -e 's/^\(Char STR[a-zA-Z0-9_]*\) *\[ *\].*/extern \1[];/p' | \
LC_COLLATE=C sort >> $@.tmp
LC_ALL=C sort >> $@.tmp
@echo '#endif /* _h_tc_const */' >> $@.tmp
@if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi

Expand Down Expand Up @@ -725,6 +725,7 @@ check test: atconfig atlocal $(srcdir)/tests/testsuite $(BUILD)
$(ENVCMD) - \
TESTSUITEREGEN="$(TESTSUITEREGEN)" \
USER="$(USER)" \
LC_ALL=C \
$(SHELL) $(srcdir)/tests/testsuite $(TESTSUITEFLAGS)

#
Expand Down
2 changes: 1 addition & 1 deletion Makefile.std
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
${CPP} $(INCLUDES) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\
$(srcdir)/tc.const.c | grep 'Char STR' | \
sed -e 's/Char \([a-zA-Z0-9_]*\) *\[ *\].*/extern Char \1[];/' | \
LC_COLLATE=C sort >> $@
LC_ALL=C sort >> $@
@echo '#endif /* _h_tc_const */' >> $@

csh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF}
Expand Down

0 comments on commit 0545d51

Please sign in to comment.