pike.git / lib / modules / Calendar.pmod / Timezone.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Timezone.pmod:100: Inside #if 1
   "/etc/conf.d/clock":"TIMEZONE",    "/etc/localtime":0,    ])[fname];    catch {    if (Stdio.is_file(fname) && (s = Stdio.read_bytes(fname))) {    if (!var_name) {    if (tz = tz_from_tzfile(s)) return tz;    } else {    foreach(s/"\n", string line) {    line = (line/"#")[0]; // Strip comments. -  if (sscanf(s, "%*s" + var_name + "=%s", s) == 2) { +  if (sscanf(line, "%*s" + var_name + "=%s", s) == 2) {    sscanf(s, "\"%s\"", s); // Strip quotes (if any).    if (tz = `[](s))    {    // werror("=>%O\n",tz);    return tz;    }    } else if ((var_name == "") && sizeof(line)) {    if (tz = `[](line))    {    // werror("=>%O\n",tz);