mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Sync OpenBSD patchset 216:
Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also appear.
This commit is contained in:
		
							
								
								
									
										5
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								tmux.c
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| /* $Id: tmux.c,v 1.154 2009-08-09 15:26:24 tcunha Exp $ */ | /* $Id: tmux.c,v 1.155 2009-08-09 16:39:40 tcunha Exp $ */ | ||||||
|  |  | ||||||
| /* | /* | ||||||
|  * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> |  * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> | ||||||
| @@ -341,7 +341,8 @@ main(int argc, char **argv) | |||||||
| 			if ((s = getenv("LC_CTYPE")) == NULL) | 			if ((s = getenv("LC_CTYPE")) == NULL) | ||||||
| 				s = getenv("LANG"); | 				s = getenv("LANG"); | ||||||
| 		} | 		} | ||||||
| 		if (s != NULL && strcasestr(s, "UTF-8") != NULL) | 		if (s != NULL && (strcasestr(s, "UTF-8") != NULL || | ||||||
|  | 		    strcasestr(s, "UTF8") != NULL)) | ||||||
| 			flags |= IDENTIFY_UTF8; | 			flags |= IDENTIFY_UTF8; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tiago Cunha
					Tiago Cunha