This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] fix generation of gnu/lib-names.h in some locales


the scripts/lib-names.awk file uses the toupper() function which in some 
locales (like tr_TR.UTF-8) can produce unwanted results (the capital of "i" 
in tr_TR is not "I").  the fix is to invoke this awk with LC_ALL=C.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

http://bugs.gentoo.org/184281

2007-07-05  Mike Frysinger  <vapier@gentoo.org>

	* Makeconfig (gnu/lib-names.h): Use LC_ALL=C when running awk script.

--- libc/Makeconfig
+++ libc/Makeconfig
@@ -856,7 +857,7 @@ $(common-objpfx)gnu/lib-names.stmp: $(..
 				    $(common-objpfx)soversions.i
 	$(make-target-directory)
 	@rm -f ${@:stmp=T} $@
-	$(AWK) -f $^ > ${@:stmp=T}
+	LC_ALL=C $(AWK) -f $^ > ${@:stmp=T}
 	$(move-if-change) ${@:stmp=T} ${@:stmp=h}
 	touch $@
 endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]