* makeint.h (STOP_SET): [SV 40371] Cast to unsigned char. 91/35291/1 accepted/tizen_3.0.2014.q4_common accepted/tizen_3.0.m2_base accepted/tizen_3.0_base accepted/tizen_common accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2_base tizen_3.0_base accepted/tizen/3.0.2014.q4/common/20150226.105902 accepted/tizen/3.0.m2/base/20170104.081855 accepted/tizen/3.0/base/20161028.103006 accepted/tizen/base/20151223.052212 accepted/tizen/common/20150216.085038 accepted/tizen/mobile/20150217.004715 accepted/tizen/tv/20150218.123044 accepted/tizen/wearable/20150218.124229 submit/tizen/20150212.055855 submit/tizen_3.0.2014.q4_common/20150226.000000 submit/tizen_3.0.m2_base/20170104.073748 submit/tizen_3.0_base/20161028.062323 submit/tizen_base/20151223.111112 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorPaul Smith <psmith@gnu.org>
Sat, 26 Oct 2013 04:10:17 +0000 (00:10 -0400)
committerYury Usishchev <y.usishchev@samsung.com>
Wed, 11 Feb 2015 15:13:37 +0000 (18:13 +0300)
* tests/scripts/misc/utf8: Test variable names with characters >127.
Fix suggested by Robert Bogomip <bob.bogo@milohedge.com>

Change-Id: I93e2b24562d2bed3a8d60f8876d1def3a1f7b012
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
makeint.h
tests/scripts/misc/utf8 [new file with mode: 0644]

index 3e22296..7677af0 100644 (file)
--- a/makeint.h
+++ b/makeint.h
@@ -409,7 +409,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
diff --git a/tests/scripts/misc/utf8 b/tests/scripts/misc/utf8
new file mode 100644 (file)
index 0000000..2adcd07
--- /dev/null
@@ -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;