unix.c
changeset 3330 9059c6bd735d
parent 3329 9885789ecaf7
child 3332 7a671549da48
equal deleted inserted replaced
3329:9885789ecaf7 3330:9059c6bd735d
   673 
   673 
   674 	if (convd == (iconv_t)(-1)) {
   674 	if (convd == (iconv_t)(-1)) {
   675 		const char *env = GetLocalCode();
   675 		const char *env = GetLocalCode();
   676 		convd = iconv_open(env, INTERNALCODE);
   676 		convd = iconv_open(env, INTERNALCODE);
   677 		if (convd == (iconv_t)(-1)) {
   677 		if (convd == (iconv_t)(-1)) {
   678 			DEBUG(misc, 0) ("[iconv] Cannot convert from codeset '%s' to '%s'", INTERNALCODE, env);
   678 			DEBUG(misc, 0) ("[iconv] Conversion from codeset '%s' to '%s' unsupported", INTERNALCODE, env);
   679 			return name;
   679 			return name;
   680 		}
   680 		}
   681 	}
   681 	}
   682 
   682 
   683 	return convert_tofrom_fs(convd, name);
   683 	return convert_tofrom_fs(convd, name);
   692 
   692 
   693 	if (convd == (iconv_t)(-1)) {
   693 	if (convd == (iconv_t)(-1)) {
   694 		const char *env = GetLocalCode();
   694 		const char *env = GetLocalCode();
   695 		convd = iconv_open(INTERNALCODE, env);
   695 		convd = iconv_open(INTERNALCODE, env);
   696 		if (convd == (iconv_t)(-1)) {
   696 		if (convd == (iconv_t)(-1)) {
   697 			DEBUG(misc, 0) ("[iconv] Cannot convert from codeset '%s' to '%s'", INTERNALCODE, env);
   697 			DEBUG(misc, 0) ("[iconv] Conversion from codeset '%s' to '%s' unsupported", env, INTERNALCODE);
   698 			return name;
   698 			return name;
   699 		}
   699 		}
   700 	}
   700 	}
   701 
   701 
   702 	return convert_tofrom_fs(convd, name);
   702 	return convert_tofrom_fs(convd, name);