src/strings.cpp
changeset 7844 fbecfb6e2c2b
parent 7812 9e652ca4827b
child 7852 d2491d19f323
equal deleted inserted replaced
7843:ec16ba9480c5 7844:fbecfb6e2c2b
  1222 	SortNetworkLanguages();
  1222 	SortNetworkLanguages();
  1223 	SortTownGeneratorNames();
  1223 	SortTownGeneratorNames();
  1224 	return true;
  1224 	return true;
  1225 }
  1225 }
  1226 
  1226 
       
  1227 /* Win32 implementation in win32.cpp. */
       
  1228 #ifndef WIN32
  1227 /** Determine the current charset based on the environment
  1229 /** Determine the current charset based on the environment
  1228  * First check some default values, after this one we passed ourselves
  1230  * First check some default values, after this one we passed ourselves
  1229  * and if none exist return the value for $LANG
  1231  * and if none exist return the value for $LANG
  1230  * @param param environment variable to check conditionally if default ones are not
  1232  * @param param environment variable to check conditionally if default ones are not
  1231  *        set. Pass NULL if you don't want additional checks.
  1233  *        set. Pass NULL if you don't want additional checks.
  1245 		if (env != NULL) return env;
  1247 		if (env != NULL) return env;
  1246 	}
  1248 	}
  1247 
  1249 
  1248 	return getenv("LANG");
  1250 	return getenv("LANG");
  1249 }
  1251 }
       
  1252 #endif /* ifndef WIN32 */
  1250 
  1253 
  1251 static int CDECL LanguageCompareFunc(const void *a, const void *b)
  1254 static int CDECL LanguageCompareFunc(const void *a, const void *b)
  1252 {
  1255 {
  1253 	const Language *cmp1 = (const Language*)a;
  1256 	const Language *cmp1 = (const Language*)a;
  1254 	const Language *cmp2 = (const Language*)b;
  1257 	const Language *cmp2 = (const Language*)b;