Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emacs: Fix crash on inputting Asian chars (Solaris 240-22461939)
This change is pulled from here: https://github.com/oracle/solaris-userland/blob/master/components/ksh93/patches/240-22461939.patch Information: att#6 George Lijo wrote on 14 Mar 2016: > I observed this issue in a Solaris 11 system on ksh2012-08-01 > [...]. The issue can be reproduced if we add Asian locales to > ibus (such as Korean). In the ksh93 shell prompt, input some > Asian character. ksh promptly dumps core [...]. > > The coredump happens at the following line no 320 in > src/cmd/ksh93/edit/emacs.c > if(c!='\t' && c!=ESC && !isdigit(c)). > > I referred the vi.c code and added the digit(c) macro, i.e. > ((c&~STRIP)==0 && isdigit(c)) and replaced the isdigit(c) usage > with the "digit(c)" macro.
- Loading branch information