Lines Matching refs:cp
15 function set_active_cp($cp, $echo = true)
18 $ret = exec("chcp $cp");
20 if (!sapi_windows_cp_set($cp)) {
21 echo "Failed to set cp $cp\n";
29 function get_basename_with_cp($path, $cp, $echo = true)
32 set_active_cp($cp, $echo);
47 function skip_if_wrong_cp($cp, $kind = "")
49 if (get_active_cp($kind) != $cp) {
50 die("skip this test expect codepage $cp");
73 function create_verify_file($prefix, $basename, $content = "", $cp = 65001)
82 $now = get_basename_with_cp($full, $cp, false);
93 function create_verify_dir($prefix, $basename, $cp = 65001)
102 $now = get_basename_with_cp($full, $cp, false);
129 function create_data($id, $item = "", $cp = 65001, $utf8 = true)
134 return create_data_from_utf8($id, $item, $cp);
144 create_verify_dir($prefix, $item, $cp);
147 create_verify_file($prefix, $item, "dummy content", $cp);