Skip to content

Commit

Permalink
Use LC_ALL=C before awk generating "optionlist"
Browse files Browse the repository at this point in the history
(and before two other awk calls, just to be safe)
Without it sorting is broken for locales with ASCII collating equivalence
like (v,w) in sv_SE
  • Loading branch information
Andrey A. Chernov authored and Andrey A. Chernov committed Nov 18, 2007
1 parent 23c1e98 commit f6d6295
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gnu/usr.bin/cc/cc_tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ GENSRCS+= tconfig.h
CLEANFILES+= cs-tconfig.h
# Options
optionlist: ${OPT_FILES}
awk -f ${GCCDIR}/opt-gather.awk ${.ALLSRC} > ${.TARGET}
LC_ALL=C awk -f ${GCCDIR}/opt-gather.awk ${.ALLSRC} > ${.TARGET}

options.h: optionlist
awk -f ${GCCDIR}/opt-functions.awk \
LC_ALL=C awk -f ${GCCDIR}/opt-functions.awk \
-f ${GCCDIR}/opth-gen.awk \
< ${.ALLSRC} > ${.TARGET}

options.c: optionlist
awk -f ${GCCDIR}/opt-functions.awk \
LC_ALL=C awk -f ${GCCDIR}/opt-functions.awk \
-f ${GCCDIR}/optc-gen.awk \
-v header_name="config.h system.h coretypes.h tm.h" \
< ${.ALLSRC} > ${.TARGET}
Expand Down

0 comments on commit f6d6295

Please sign in to comment.