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)
97 if (!mkdir($full) || get_basename_with_cp($full, $cp, false) !== $basename) {
123 function create_data($id, $item = "", $cp = 65001, $utf8 = true)
128 return create_data_from_utf8($id, $item, $cp);
138 create_verify_dir($prefix, $item, $cp);
141 create_verify_file($prefix, $item, "dummy content", $cp);