summaryrefslogtreecommitdiff
path: root/iup
diff options
context:
space:
mode:
Diffstat (limited to 'iup')
-rwxr-xr-xiup/src/iup_str.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/iup/src/iup_str.c b/iup/src/iup_str.c
index 6ca8c1b..8c90446 100755
--- a/iup/src/iup_str.c
+++ b/iup/src/iup_str.c
@@ -572,6 +572,11 @@ void iupStrToMac(char* str)
str++;
*pstr++ = '\r';
}
+ else if (*str == '\n') /* UNIX line end */
+ {
+ str++;
+ *pstr++ = '\r';
+ }
else
*pstr++ = *str++;
}