diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 15:02:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 15:02:08 -0400 |
commit | ff5d48a6d18d09bb750d1f89f6464f5fdb6fc85b (patch) | |
tree | 243a2157912d6183c99d98dc74fe7a87a5cfbf6e /drivers | |
parent | 762b8291be6944bd891fbe2c8976a2b2e5bbc726 (diff) | |
parent | a29ccf6f823a84d89e1c7aaaf221cf7282022024 (diff) |
Merge git://git.infradead.org/embedded-2.6
* git://git.infradead.org/embedded-2.6:
Make console charset translation optional
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/Kconfig | 8 | ||||
-rw-r--r-- | drivers/char/Makefile | 4 | ||||
-rw-r--r-- | drivers/char/vt.c | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index 6c070dc5f2d4..d0ac944e1696 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig | |||
@@ -36,6 +36,14 @@ config VT | |||
36 | If unsure, say Y, or else you won't be able to do much with your new | 36 | If unsure, say Y, or else you won't be able to do much with your new |
37 | shiny Linux system :-) | 37 | shiny Linux system :-) |
38 | 38 | ||
39 | config CONSOLE_TRANSLATIONS | ||
40 | depends on VT | ||
41 | default y | ||
42 | bool "Enable character translations in console" if EMBEDDED | ||
43 | ---help--- | ||
44 | This enables support for font mapping and Unicode translation | ||
45 | on virtual consoles. | ||
46 | |||
39 | config VT_CONSOLE | 47 | config VT_CONSOLE |
40 | bool "Support for console on virtual terminal" if EMBEDDED | 48 | bool "Support for console on virtual terminal" if EMBEDDED |
41 | depends on VT | 49 | depends on VT |
diff --git a/drivers/char/Makefile b/drivers/char/Makefile index f7a0d1a754fc..8a161c30e1dc 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile | |||
@@ -12,8 +12,8 @@ obj-y += mem.o random.o tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o | |||
12 | obj-$(CONFIG_LEGACY_PTYS) += pty.o | 12 | obj-$(CONFIG_LEGACY_PTYS) += pty.o |
13 | obj-$(CONFIG_UNIX98_PTYS) += pty.o | 13 | obj-$(CONFIG_UNIX98_PTYS) += pty.o |
14 | obj-y += misc.o | 14 | obj-y += misc.o |
15 | obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o consolemap.o \ | 15 | obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o selection.o keyboard.o |
16 | consolemap_deftbl.o selection.o keyboard.o | 16 | obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o |
17 | obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o | 17 | obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o |
18 | obj-$(CONFIG_AUDIT) += tty_audit.o | 18 | obj-$(CONFIG_AUDIT) += tty_audit.o |
19 | obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o | 19 | obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o |
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index cb8c90da3934..82a51f38a546 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c | |||
@@ -2211,7 +2211,7 @@ rescan_last_byte: | |||
2211 | c = 0xfffd; | 2211 | c = 0xfffd; |
2212 | tc = c; | 2212 | tc = c; |
2213 | } else { /* no utf or alternate charset mode */ | 2213 | } else { /* no utf or alternate charset mode */ |
2214 | tc = vc->vc_translate[vc->vc_toggle_meta ? (c | 0x80) : c]; | 2214 | tc = vc_translate(vc, c); |
2215 | } | 2215 | } |
2216 | 2216 | ||
2217 | param.c = tc; | 2217 | param.c = tc; |