mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-27 06:27:51 +00:00
* makeint.h (STOP_SET): [SV 40371] Cast to unsigned char.
* tests/scripts/misc/utf8: Test variable names with characters >127. Fix suggested by Robert Bogomip <bob.bogo@milohedge.com>
This commit is contained in:
parent
d49ab08ae0
commit
9d58570c77
2 changed files with 15 additions and 1 deletions
|
@ -415,7 +415,7 @@ extern int unixy_shell;
|
|||
# define MAP_VMSCOMMA 0x0000
|
||||
#endif
|
||||
|
||||
#define STOP_SET(_v,_m) ANY_SET (stopchar_map[(int)(_v)],(_m))
|
||||
#define STOP_SET(_v,_m) ANY_SET (stopchar_map[(unsigned char)(_v)],(_m))
|
||||
|
||||
#if defined(HAVE_SYS_RESOURCE_H) && defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT)
|
||||
# define SET_STACK_SIZE
|
||||
|
|
14
tests/scripts/misc/utf8
Normal file
14
tests/scripts/misc/utf8
Normal file
|
@ -0,0 +1,14 @@
|
|||
# -*-perl-*-
|
||||
$description = "Test utf8 handling.";
|
||||
|
||||
$details = "";
|
||||
|
||||
# Variable names containing UTF8 characters
|
||||
run_make_test("
|
||||
\xe2\x96\xaa := hello
|
||||
\$(info \$(\xe2\x96\xaa))
|
||||
all:
|
||||
",
|
||||
'', "hello\n#MAKE#: Nothing to be done for 'all'.");
|
||||
|
||||
1;
|
Loading…
Reference in a new issue