Messages in this thread Patch in this message | | | Date | Sun, 18 Apr 2004 13:35:18 +0200 | Subject | Re: menuconfig and UTF-8 | From | (Marcel Sebek) |
| |
Here is another patch. It saves LC_CTYPE value to a temporary variable and restores it for *config targets. It fixes the problem with menuconfig and UTF-8 console.
diff -urN linux-2.6/Makefile linux-2.6-new/Makefile --- linux-2.6/Makefile 2004-04-18 13:20:47.000000000 +0200 +++ linux-2.6-new/Makefile 2004-04-18 13:26:31.000000000 +0200 @@ -131,14 +131,20 @@ endif # Make sure we're not wasting cpu-cycles doing locale handling, yet do make -# sure error messages appear in the user-desired language +# sure error messages appear in the user-desired language and LC_CTYPE is +# preserved for *config targets ifdef LC_ALL LANG := $(LC_ALL) LC_ALL := endif LC_COLLATE := C +ifdef LC_CTYPE +SAVED_LC_CTYPE := $(LC_CTYPE) +else +SAVED_LC_CTYPE := C +endif LC_CTYPE := C -export LANG LC_ALL LC_COLLATE LC_CTYPE +export LANG LC_ALL LC_COLLATE LC_CTYPE SAVED_LC_CTYPE srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR)) TOPDIR := $(srctree) diff -urN linux-2.6/scripts/kconfig/Makefile linux-2.6-new/scripts/kconfig/Makefile --- linux-2.6/scripts/kconfig/Makefile 2004-04-18 13:27:37.000000000 +0200 +++ linux-2.6-new/scripts/kconfig/Makefile 2004-04-18 13:27:56.000000000 +0200 @@ -4,6 +4,9 @@ .PHONY: oldconfig xconfig gconfig menuconfig config silentoldconfig +LC_CTYPE := $(SAVED_LC_CTYPE) +export LC_CTYPE + xconfig: $(obj)/qconf $< arch/$(ARCH)/Kconfig
-- Marcel Sebek jabber: sebek@jabber.cz ICQ: 279852819 linux user number: 307850 GPG ID: 5F88735E GPG FP: 0F01 BAB8 3148 94DB B95D 1FCA 8B63 CA06 5F88 735E
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |