mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Try C.UTF-8 which is also a commonly useful locale on some platforms,
from Romain Francoise.
This commit is contained in:
		
							
								
								
									
										3
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								tmux.c
									
									
									
									
									
								
							| @@ -196,7 +196,8 @@ main(int argc, char **argv) | |||||||
| 	int					 opt, flags, keys; | 	int					 opt, flags, keys; | ||||||
| 	const struct options_table_entry	*oe; | 	const struct options_table_entry	*oe; | ||||||
|  |  | ||||||
| 	if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) { | 	if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL && | ||||||
|  | 	    setlocale(LC_CTYPE, "C.UTF-8") == NULL) { | ||||||
| 		if (setlocale(LC_CTYPE, "") == NULL) | 		if (setlocale(LC_CTYPE, "") == NULL) | ||||||
| 			errx(1, "invalid LC_ALL, LC_CTYPE or LANG"); | 			errx(1, "invalid LC_ALL, LC_CTYPE or LANG"); | ||||||
| 		s = nl_langinfo(CODESET); | 		s = nl_langinfo(CODESET); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm