mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Sync OpenBSD patchset 966:
Ignore LC_ALL and LC_CTYPE if they are empty as well as unset.
This commit is contained in:
		
							
								
								
									
										4
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tmux.c
									
									
									
									
									
								
							@@ -295,8 +295,8 @@ main(int argc, char **argv)
 | 
			
		||||
		 * if not they know that output from UTF-8-capable programs may
 | 
			
		||||
		 * be wrong.
 | 
			
		||||
		 */
 | 
			
		||||
		if ((s = getenv("LC_ALL")) == NULL) {
 | 
			
		||||
			if ((s = getenv("LC_CTYPE")) == NULL)
 | 
			
		||||
		if ((s = getenv("LC_ALL")) == NULL || *s == '\0') {
 | 
			
		||||
			if ((s = getenv("LC_CTYPE")) == NULL || *s == '\0')
 | 
			
		||||
				s = getenv("LANG");
 | 
			
		||||
		}
 | 
			
		||||
		if (s != NULL && (strcasestr(s, "UTF-8") != NULL ||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user