jg71 reported -DMKSH_ASSUME_UTF8=* breaks defining stristr
This commit is contained in:
		
							
								
								
									
										3
									
								
								check.t
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								check.t
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| # $MirOS: src/bin/mksh/check.t,v 1.479 2011/07/26 16:57:25 tg Exp $ | # $MirOS: src/bin/mksh/check.t,v 1.480 2011/08/27 17:30:02 tg Exp $ | ||||||
| # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ | # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ | ||||||
| # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ | # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ | ||||||
| # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ | # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ | ||||||
| @@ -5891,6 +5891,7 @@ description: | |||||||
| 	-DMKSH_ASSUME_UTF8=1 => not expected, please investigate | 	-DMKSH_ASSUME_UTF8=1 => not expected, please investigate | ||||||
| 	-UMKSH_ASSUME_UTF8 => not expected, but if your OS is old, | 	-UMKSH_ASSUME_UTF8 => not expected, but if your OS is old, | ||||||
| 	 try passing HAVE_SETLOCALE_CTYPE=0 to Build.sh | 	 try passing HAVE_SETLOCALE_CTYPE=0 to Build.sh | ||||||
|  | need-pass: no | ||||||
| category: !os:hpux | category: !os:hpux | ||||||
| need-ctty: yes | need-ctty: yes | ||||||
| arguments: !-i! | arguments: !-i! | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								funcs.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								funcs.c
									
									
									
									
									
								
							| @@ -38,7 +38,7 @@ | |||||||
| #endif | #endif | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| __RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.194 2011/07/20 23:47:28 tg Exp $"); | __RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.195 2011/08/27 17:30:04 tg Exp $"); | ||||||
|  |  | ||||||
| #if HAVE_KILLPG | #if HAVE_KILLPG | ||||||
| /* | /* | ||||||
| @@ -53,7 +53,7 @@ __RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.194 2011/07/20 23:47:28 tg Exp $"); | |||||||
|  |  | ||||||
| /* XXX conditions correct? */ | /* XXX conditions correct? */ | ||||||
| #if !defined(RLIM_INFINITY) && !defined(MKSH_NO_LIMITS) | #if !defined(RLIM_INFINITY) && !defined(MKSH_NO_LIMITS) | ||||||
| #define MKSH_NO_LIMITS | #define MKSH_NO_LIMITS	1 | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #ifdef MKSH_NO_LIMITS | #ifdef MKSH_NO_LIMITS | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.c
									
									
									
									
									
								
							| @@ -33,7 +33,7 @@ | |||||||
| #include <locale.h> | #include <locale.h> | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| __RCSID("$MirOS: src/bin/mksh/main.c,v 1.196 2011/07/16 17:08:19 tg Exp $"); | __RCSID("$MirOS: src/bin/mksh/main.c,v 1.197 2011/08/27 17:30:06 tg Exp $"); | ||||||
|  |  | ||||||
| extern char **environ; | extern char **environ; | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								misc.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								misc.c
									
									
									
									
									
								
							| @@ -29,7 +29,7 @@ | |||||||
| #include <grp.h> | #include <grp.h> | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| __RCSID("$MirOS: src/bin/mksh/misc.c,v 1.169 2011/07/06 22:21:57 tg Exp $"); | __RCSID("$MirOS: src/bin/mksh/misc.c,v 1.170 2011/08/27 17:30:07 tg Exp $"); | ||||||
|  |  | ||||||
| /* type bits for unsigned char */ | /* type bits for unsigned char */ | ||||||
| unsigned char chtypes[UCHAR_MAX + 1]; | unsigned char chtypes[UCHAR_MAX + 1]; | ||||||
| @@ -1915,7 +1915,6 @@ strstr(char *b, const char *l) | |||||||
| } | } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #ifndef MKSH_ASSUME_UTF8 |  | ||||||
| #if !HAVE_STRCASESTR | #if !HAVE_STRCASESTR | ||||||
| const char * | const char * | ||||||
| stristr(const char *b, const char *l) | stristr(const char *b, const char *l) | ||||||
| @@ -1935,7 +1934,6 @@ stristr(const char *b, const char *l) | |||||||
| 	return (b - 1); | 	return (b - 1); | ||||||
| } | } | ||||||
| #endif | #endif | ||||||
| #endif |  | ||||||
|  |  | ||||||
| #ifdef MKSH_SMALL | #ifdef MKSH_SMALL | ||||||
| char * | char * | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								sh.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								sh.h
									
									
									
									
									
								
							| @@ -151,7 +151,7 @@ | |||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #ifdef EXTERN | #ifdef EXTERN | ||||||
| __RCSID("$MirOS: src/bin/mksh/sh.h,v 1.491 2011/08/13 22:19:41 tg Exp $"); | __RCSID("$MirOS: src/bin/mksh/sh.h,v 1.492 2011/08/27 17:30:07 tg Exp $"); | ||||||
| #endif | #endif | ||||||
| #define MKSH_VERSION "R40 2011/07/26" | #define MKSH_VERSION "R40 2011/07/26" | ||||||
|  |  | ||||||
| @@ -496,7 +496,7 @@ char *ucstrstr(char *, const char *); | |||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #if defined(MKSH_NOPROSPECTOFWORK) && !defined(MKSH_UNEMPLOYED) | #if defined(MKSH_NOPROSPECTOFWORK) && !defined(MKSH_UNEMPLOYED) | ||||||
| #define MKSH_UNEMPLOYED | #define MKSH_UNEMPLOYED		1 | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| /* | /* | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user