Commit d33fc38
scripts: menuconfig: proper handling of NULL character as input
Fixes: #33212
Upstream PR: ulfalizer/Kconfiglib#103
Ignoring when user inputs NULL in a text field.
menuconfig exits with a python stack trace if NULL is provided as input
character, therefore ignore NULL as an input character to prevent this
behaviour.
A NULL character may be given accidentally by the user through the
following ways:
- Pressing `Win` key on keyboard (Windows only)
- Pressing `<CTRL>-@` / `<CTRL>-2`.
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>1 parent cd465ff commit d33fc38
1 file changed
Lines changed: 6 additions & 0 deletions
File tree
- scripts/kconfig
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1757 | 1757 | | |
1758 | 1758 | | |
1759 | 1759 | | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1760 | 1763 | | |
1761 | 1764 | | |
1762 | 1765 | | |
| |||
2196 | 2199 | | |
2197 | 2200 | | |
2198 | 2201 | | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
2199 | 2205 | | |
2200 | 2206 | | |
2201 | 2207 | | |
| |||
0 commit comments