mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	Merge #8804 from battlmonstr/lang_region_crash
Fix crash in lang_init() on macOS if lang_region = NULL
This commit is contained in:
		@@ -31,7 +31,7 @@ void lang_init(void)
 | 
			
		||||
      char buf[20] = { 0 };
 | 
			
		||||
      if (CFStringGetCString(cf_lang_region, buf, 20,
 | 
			
		||||
                             kCFStringEncodingUTF8)) {
 | 
			
		||||
        os_setenv("LANG", lang_region, true);
 | 
			
		||||
        os_setenv("LANG", buf, true);
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    CFRelease(cf_lang_region);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user