Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:438:   #else    // While filesystems on other OSes typically are 8bit.    switch(lower_case(path_encoding)) {    case "iso-8859-1":    return p;    case "utf8": case "utf-8":    // NB: We assume that the filesystem will normalize    // the path as appropriate.    return Unicode.normalize(utf8_to_string(p), "NFC");    default: -  return Charset.decoder(path_encoding)->feed(p)->drain(); +  return Locale.Charset.decoder(path_encoding)->feed(p)->drain();    }   #endif /* !__NT__ */   }      string real_path(string f, RequestID id)   {    f = normalized_path + encode_path(f);    if (FILTER_INTERNAL_FILE(f, id)) return 0;    catch {    f = NORMALIZE_PATH(f);