Branch: Tag:

2015-10-10

2015-10-10 11:40:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Calendar.mkrules: Improved backward compat.

mkrules is often run with the system Pike, which typically doesn't
support %m yet.

670:    string s=Stdio.read_bytes(file),t;    if (!s)    { -  werror("%s:-: Failed to open file: %m.\n",file); +  // NB: This file is often used with the system Pike, so +  // it can't use %m yet. +  werror("%s:-: Failed to open file: %s.\n", file, strerror(errno()));    return;    }