comparison src/keymap.c @ 22841:330629423307

(push_key_description): Output multibyte char as itself.
author Richard M. Stallman <rms@gnu.org>
date Tue, 28 Jul 1998 23:10:44 +0000
parents b9606d56f91f
children 44546fc7faad
comparison
equal deleted inserted replaced
22840:be572a467b59 22841:330629423307
1836 *p++ = (7 & (c >> 3)) + '0'; 1836 *p++ = (7 & (c >> 3)) + '0';
1837 *p++ = (7 & (c >> 0)) + '0'; 1837 *p++ = (7 & (c >> 0)) + '0';
1838 } 1838 }
1839 else 1839 else
1840 { 1840 {
1841 *p++ = '\\'; 1841 unsigned char work[4], *str;
1842 *p++ = (7 & (c >> 15)) + '0'; 1842 int i = CHAR_STRING (c, work, str);
1843 *p++ = (7 & (c >> 12)) + '0'; 1843
1844 *p++ = (7 & (c >> 9)) + '0'; 1844 bcopy (str, p, i);
1845 *p++ = (7 & (c >> 6)) + '0'; 1845 p += i;
1846 *p++ = (7 & (c >> 3)) + '0';
1847 *p++ = (7 & (c >> 0)) + '0';
1848 } 1846 }
1849 1847
1850 return p; 1848 return p;
1851 } 1849 }
1852 1850