diff options
| author | Eli Zaretskii | 2013-03-06 18:21:26 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-03-06 18:21:26 +0200 |
| commit | d26e478eaa7c743b999fbcd995cc8c09ecbcc6c8 (patch) | |
| tree | c244681474782388a964957a67ed051ea3e3be98 /src/msdos.c | |
| parent | 33d1e2f5bdaca00fa003faab1d3f8b03dec98023 (diff) | |
| download | emacs-d26e478eaa7c743b999fbcd995cc8c09ecbcc6c8.tar.gz emacs-d26e478eaa7c743b999fbcd995cc8c09ecbcc6c8.zip | |
Fix bug #13879 with raw-text encoding of msdos.c.
src/msdos.c: Change encoding to cp850. (Bug#13879)
(fr_keyboard, it_keyboard, dk_keyboard): Update keyboard layouts.
Diffstat (limited to 'src/msdos.c')
| -rw-r--r-- | src/msdos.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/src/msdos.c b/src/msdos.c index ac8c90455d7..ee47109d5f2 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* MS-DOS specific C utilities. -*- coding: raw-text -*- | 1 | /* MS-DOS specific C utilities. -*- coding: cp850 -*- |
| 2 | 2 | ||
| 3 | Copyright (C) 1993-1997, 1999-2013 Free Software Foundation, Inc. | 3 | Copyright (C) 1993-1997, 1999-2013 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -20,6 +20,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | /* Contributed by Morten Welinder */ | 20 | /* Contributed by Morten Welinder */ |
| 21 | /* New display, keyboard, and mouse control by Kim F. Storm */ | 21 | /* New display, keyboard, and mouse control by Kim F. Storm */ |
| 22 | 22 | ||
| 23 | /* Note: This file MUST use a unibyte encoding, to both display the | ||
| 24 | keys on the non-US keyboard layout as their respective labels, and | ||
| 25 | provide the correct byte values for the keyboard input to inject | ||
| 26 | into Emacs. See 'struct dos_keyboard_map' below. As long as there | ||
| 27 | are only European keyboard layouts here, we are OK with DOS | ||
| 28 | codepage 850 encoding. */ | ||
| 29 | |||
| 23 | /* Note: some of the stuff here was taken from end of sysdep.c in demacs. */ | 30 | /* Note: some of the stuff here was taken from end of sysdep.c in demacs. */ |
| 24 | 31 | ||
| 25 | #include <config.h> | 32 | #include <config.h> |
| @@ -1965,10 +1972,10 @@ struct dos_keyboard_map | |||
| 1965 | 1972 | ||
| 1966 | static struct dos_keyboard_map us_keyboard = { | 1973 | static struct dos_keyboard_map us_keyboard = { |
| 1967 | /* 0 1 2 3 4 5 */ | 1974 | /* 0 1 2 3 4 5 */ |
| 1968 | /* 01234567890123456789012345678901234567890 12345678901234 */ | 1975 | /* 01234567890123456789012345678901234567890 123 45678901234 */ |
| 1969 | "`1234567890-= qwertyuiop[] asdfghjkl;'\\ zxcvbnm,./ ", | 1976 | "`1234567890-= qwertyuiop[] asdfghjkl;'\\ \\zxcvbnm,./ ", |
| 1970 | /* 0123456789012345678901234567890123456789 012345678901234 */ | 1977 | /* 0123456789012345678901234567890123456789 012345678901234 */ |
| 1971 | "~!@#$%^&*()_+ QWERTYUIOP{} ASDFGHJKL:\"| ZXCVBNM<>? ", | 1978 | "~!@#$%^&*()_+ QWERTYUIOP{} ASDFGHJKL:\"| |ZXCVBNM<>? ", |
| 1972 | 0, /* no Alt-Gr key */ | 1979 | 0, /* no Alt-Gr key */ |
| 1973 | 0 /* no translate table */ | 1980 | 0 /* no translate table */ |
| 1974 | }; | 1981 | }; |
| @@ -1976,9 +1983,9 @@ static struct dos_keyboard_map us_keyboard = { | |||
| 1976 | static struct dos_keyboard_map fr_keyboard = { | 1983 | static struct dos_keyboard_map fr_keyboard = { |
| 1977 | /* 0 1 2 3 4 5 */ | 1984 | /* 0 1 2 3 4 5 */ |
| 1978 | /* 012 3456789012345678901234567890123456789012345678901234 */ | 1985 | /* 012 3456789012345678901234567890123456789012345678901234 */ |
| 1979 | "&\",(-_)= azertyuiop^$ qsdfghjklm* wxcvbnm;:! ", | 1986 | "&\"'(-_)= azertyuiop^$ qsdfghjklm* <wxcvbn,;:! ", |
| 1980 | /* 0123456789012345678901234567890123456789012345678901234 */ | 1987 | /* 0123456789012345678901234567890123456789012345678901234 */ |
| 1981 | " 1234567890+ AZERTYUIOP QSDFGHJKLM% WXCVBN?./ ", | 1988 | " 1234567890+ AZERTYUIOP QSDFGHJKLM% >WXCVBN?./ ", |
| 1982 | /* 01234567 89012345678901234567890123456789012345678901234 */ | 1989 | /* 01234567 89012345678901234567890123456789012345678901234 */ |
| 1983 | " ~#{[|`\\^@]} ", | 1990 | " ~#{[|`\\^@]} ", |
| 1984 | 0 /* no translate table */ | 1991 | 0 /* no translate table */ |
| @@ -2000,9 +2007,9 @@ static struct kbd_translate it_kbd_translate_table[] = { | |||
| 2000 | static struct dos_keyboard_map it_keyboard = { | 2007 | static struct dos_keyboard_map it_keyboard = { |
| 2001 | /* 0 1 2 3 4 5 */ | 2008 | /* 0 1 2 3 4 5 */ |
| 2002 | /* 0 123456789012345678901234567890123456789012345678901234 */ | 2009 | /* 0 123456789012345678901234567890123456789012345678901234 */ |
| 2003 | "\\1234567890'< qwertyuiop+> asdfghjkl zxcvbnm,.- ", | 2010 | "\\1234567890'< qwertyuiop+> asdfghjkl <zxcvbnm,.- ", |
| 2004 | /* 01 23456789012345678901234567890123456789012345678901234 */ | 2011 | /* 01 23456789012345678901234567890123456789012345678901234 */ |
| 2005 | "|!\"$%&/()=?^> QWERTYUIOP* ASDFGHJKL ZXCVBNM;:_ ", | 2012 | "|!\"$%&/()=?^> QWERTYUIOP* ASDFGHJKL >ZXCVBNM;:_ ", |
| 2006 | /* 0123456789012345678901234567890123456789012345678901234 */ | 2013 | /* 0123456789012345678901234567890123456789012345678901234 */ |
| 2007 | " {}~` [] @# ", | 2014 | " {}~` [] @# ", |
| 2008 | it_kbd_translate_table | 2015 | it_kbd_translate_table |
| @@ -2011,9 +2018,9 @@ static struct dos_keyboard_map it_keyboard = { | |||
| 2011 | static struct dos_keyboard_map dk_keyboard = { | 2018 | static struct dos_keyboard_map dk_keyboard = { |
| 2012 | /* 0 1 2 3 4 5 */ | 2019 | /* 0 1 2 3 4 5 */ |
| 2013 | /* 0123456789012345678901234567890123456789012345678901234 */ | 2020 | /* 0123456789012345678901234567890123456789012345678901234 */ |
| 2014 | "1234567890+| qwertyuiop~ asdfghjkl' zxcvbnm,.- ", | 2021 | "1234567890+| qwertyuiop~ asdfghjkl' <zxcvbnm,.- ", |
| 2015 | /* 01 23456789012345678901234567890123456789012345678901234 */ | 2022 | /* 01 23456789012345678901234567890123456789012345678901234 */ |
| 2016 | "!\"#$%&/()=?` QWERTYUIOP^ ASDFGHJKL* ZXCVBNM;:_ ", | 2023 | "!\"#$%&/()=?` QWERTYUIOP^ ASDFGHJKL* >ZXCVBNM;:_ ", |
| 2017 | /* 0123456789012345678901234567890123456789012345678901234 */ | 2024 | /* 0123456789012345678901234567890123456789012345678901234 */ |
| 2018 | " @$ {[]} | ", | 2025 | " @$ {[]} | ", |
| 2019 | 0 /* no translate table */ | 2026 | 0 /* no translate table */ |