Searched refs:to_is_utf8 (Results 1 – 3 of 3) sorted by relevance
429 $to_is_utf8 = lc($opt_t) =~ m/^utf-?8/;446 die "NFC requires UTF-8 as target charset\n" unless ($to_is_utf8);449 die "NFD requires UTF-8 as target charset\n" unless ($to_is_utf8);455 …as source and non-UTF-8 as target charset\n" unless ($from_is_utf8 and $opt_t and not $to_is_utf8);618 if (!$from_is_utf8 and $to_is_utf8 and !$opt_nosmart and &looks_like_utf8($oldfile)) {630 if ($from_is_utf8 and ! $to_is_utf8) {643 $newname=&$norm(decode_utf8($newname)) if ($to_is_utf8);661 $newname=encode_utf8($newname) if ($to_is_utf8);791 if ($to_is_utf8 and !$opt_nosmart and &looks_like_utf8($oldfile)) {806 if ($to_is_utf8) {
2453 int to_is_utf8; in convert_setup_ext() local2477 to_is_utf8 = to_prop & ENC_UNICODE; in convert_setup_ext()2479 to_is_utf8 = to_prop == ENC_UNICODE; in convert_setup_ext()2482 if ((from_prop & ENC_LATIN1) && to_is_utf8) { in convert_setup_ext()2486 } else if ((from_prop & ENC_LATIN9) && to_is_utf8) { in convert_setup_ext()2500 vcp->vc_fd = (iconv_t)my_iconv_open(to_is_utf8 ? (char_u *)"utf-8" : to, in convert_setup_ext()
5034 int to_is_utf8; in convert_setup_ext() local5057 to_is_utf8 = to_prop & ENC_UNICODE; in convert_setup_ext()5059 to_is_utf8 = to_prop == ENC_UNICODE; in convert_setup_ext()5061 if ((from_prop & ENC_LATIN1) && to_is_utf8) in convert_setup_ext()5067 else if ((from_prop & ENC_LATIN9) && to_is_utf8) in convert_setup_ext()5086 && (to_is_utf8 || encname2codepage(to) > 0)) in convert_setup_ext()5091 vcp->vc_cpto = to_is_utf8 ? 0 : encname2codepage(to); in convert_setup_ext()5099 else if ((from_prop & ENC_MACROMAN) && to_is_utf8) in convert_setup_ext()5118 to_is_utf8 ? (char_u *)"utf-8" : to, in convert_setup_ext()