Wine Notepad vs Windows Notepad

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
billstei
Level 2
Level 2
Posts: 44
Joined: Mon Feb 25, 2008 5:52 pm

Wine Notepad vs Windows Notepad

Post by billstei »

Wine (1.1.20) Notepad uses/generates <LF> as the line break and Windows (XP) Notepad uses <CR><LF>. Is the goal of the Wine Notepad to duplicate the behavior of the Windows version? If so, then I would say this is a bug.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Wine Notepad vs Windows Notepad

Post by austin987 »

On Fri, May 1, 2009 at 11:31 AM, billstei <[email protected]> wrote:
Wine (1.1.20) Notepad uses/generates <LF> as the line break and Windows (XP) Notepad uses <CR><LF>.  Is the goal of the Wine Notepad to duplicate the behavior of the Windows version?  If so, then I would say this is a bug.
Shows CR+LF here.

--
-Austin
billstei
Level 2
Level 2
Posts: 44
Joined: Mon Feb 25, 2008 5:52 pm

Post by billstei »

Okay my bad, I see CR-LF now with Wine 1.1.20 when the file is New in Notepad. Wine Notepad will tolerate LF-only in a loaded file, and saves it LF-only if you re-save, however any (and only) new line breaks inserted are then CR-LF, which then saving produces a mix of both line break types in the file. I did not test this specific behavior in Windows Notepad.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Wine Notepad vs Windows Notepad

Post by austin987 »

On Mon, May 4, 2009 at 4:55 PM, billstei <[email protected]> wrote:
Okay my bad, I see CR-LF now with Wine 1.1.20 when the file is New in Notepad.  Wine Notepad will tolerate LF-only in a loaded file, and saves it LF-only if you re-save, however any (and only) new line breaks inserted are then CR-LF, which then saving produces a mix of both line break types in the file.  I did not test this specific behavior in Windows Notepad.
In windows for me, loading an LF file made with Notepad++, it keeps it as LF.
Any new lines made are then CR+LF.

Windows does seem to add an extra CR+LF, e.g. a file showing as
this line was made in notepad++, unix mode #has lf here
#There is a CR+LF here, but it doesn't show a line break in
notepad...does in notepad ++
this line was made in windows notepad #has cr+lf
this line has no ending character

--
-Austin
Locked