Skip to content

Commit dafb424

Browse files
committed
Merge branch 'git-assoc-sh'
This fixes a non-ASCII related bug in Git for Windows' feature that allows running `.sh` scripts with Git Bash by double-clicking them in the Windows Explorer. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 81b92e4 + 69f06a7 commit dafb424

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

newlib/libc/locale/lctype.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525

2626
#define LCCTYPE_SIZE (sizeof(struct lc_ctype_T) / sizeof(char *))
2727

28+
#ifdef __CYGWIN__
29+
/* Cygwin uses __utf8_mbtowc() by default, therefore mb_cur_max := 6 */
30+
static char numone[] = { '\x06', '\0'};
31+
#else
2832
static char numone[] = { '\1', '\0'};
33+
#endif
2934

3035
const struct lc_ctype_T _C_ctype_locale = {
3136
"ASCII", /* codeset */

0 commit comments

Comments
 (0)