1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

patch to add binary mode on opening files (for Windows+Cygwin compatibility).

This commit is contained in:
dan
2002-09-15 20:37:41 +00:00
parent 3fc803c0d8
commit 92b012e800
20 changed files with 41 additions and 34 deletions

View File

@@ -1207,7 +1207,7 @@ readMenuFile(WScreen *scr, char *file_name)
#endif /* USECPP */
if (!file) {
file = fopen(file_name, "r");
file = fopen(file_name, "rb");
if (!file) {
wsyserror(_("%s:could not open menu file"), file_name);
return NULL;
@@ -1309,7 +1309,7 @@ readMenuPipe(WScreen *scr, char **file_name)
#endif /* USECPP */
if (!file) {
file = popen(filename, "r");
file = popen(filename, "rb");
if (!file) {
wsyserror(_("%s:could not open menu file"), filename);