From 6c8a48f2eadbe4378b0b03adb15617cbcc17cf05 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 18:33:21 +0200 Subject: Syncinc iupStrToMac fix with upstream IUP. --- iup/src/iup_str.c | 5 +++++ 1 file changed, 5 insertions(+) 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++; } -- cgit v1.2.3