if (lspec == 0) lspec = get_env_value ("LC_CTYPE"); if (lspec == 0) lspec = get_env_value ("LANG"); if (lspec == 0 || (t = normalize_codeset (lspec)) == 0)
if (lspec == 0 || *lspec == '\0') lspec = get_env_value ("LC_CTYPE"); if (lspec == 0 || *lspec == '\0') lspec = get_env_value ("LANG"); if (lspec == 0 || *lspec == '\0' || (t = normalize_codeset (lspec)) == 0)
_rl_init_eightbit (){/* If we have setlocale(3), just check the current LC_CTYPE category   value, and go into eight-bit mode if it's not C or POSIX. */#if defined (HAVE_SETLOCALE)  char *t;  /* Set the LC_CTYPE locale category from environment variables. */  t = setlocale (LC_CTYPE, "");  if (t && *t && (t[0] != 'C' || t[1]) && (STREQ (t, "POSIX") == 0))    {      _rl_meta_flag = 1;      _rl_convert_meta_chars_to_ascii = 0;      _rl_output_meta_chars = 1;      return (1);    }  else    return (0);#else /* !HAVE_SETLOCALE */  char *lspec, *t;  int i;  /* We don't have setlocale.  Finesse it.  Check the environment for the     appropriate variables and set eight-bit mode if they have the right     values. */  lspec = get_env_value ("LC_ALL");  if (lspec == 0) lspec = get_env_value ("LC_CTYPE");  if (lspec == 0) lspec = get_env_value ("LANG");  if (lspec == 0 || (t = normalize_codeset (lspec)) == 0)    return (0);  for (i = 0; t && legal_lang_values[i]; i++)    if (STREQ (t, legal_lang_values[i]))      {	_rl_meta_flag = 1;	_rl_convert_meta_chars_to_ascii = 0;	_rl_output_meta_chars = 1;	break;      }  free (t);  return (legal_lang_values[i] ? 1 : 0);#endif /* !HAVE_SETLOCALE */}