diff options
Diffstat (limited to 'iup/src/iup_str.c')
-rwxr-xr-x | iup/src/iup_str.c | 5 |
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++; } |