Torsten wrote
I'm using a windows with Therion and if you have a look to the ini file there are missing all line feeds.
I’m currently using Windows 10 with Therion development version dfe3c00 and have never noticed any problem. But I recall some changes mentioned regarding linefeed behaviour in recent commits, so I thought I’d check with other editors. So my preferred editor NotePad++ displays the linefeeds ini files correctly, as does WordPad. But the NotePad application that ships with Windows 10 does not display the therion.ini linefeeds, except one. The whole therion.ini file displays on two lines. Xtherion.ini displays on about 7 lines with the linefeeds in random places, apparently midline. As I never use the NotePad that ships with Windows it does not concern me, but maybe this is something that needs resolving or explaining so that other users are not inconvenienced. Bruce
Hi Bruce I'm using Windows 7 (64bit). Normally and right now I just used a double click to open the ini files. The default is notepad.exe to open these files. This editor does not show the line feeds in a correct way. I now tested it with following programms: - Visual Studio Code - Notepad++ - UltraEdit-32 - Wordpad All these programms show the line feeds in a correct way. In my opinion the file is OK. It's using 0x0D and 0x0A for a line feed (CR+LF) which is the correct way as far as I know. So the problem is obviously "Notepad.exe". May be it's a good advice not to use notepad.exe. ;-) hth, Torsten
Bruce Mutton via Therion <therion@speleo.sk> hat am 4. November 2018 um 20:24 geschrieben:
Torsten wrote
> I'm using a windows with Therion and if you have a look to the ini file there are missing all line feeds.
I’m currently using Windows 10 with Therion development version dfe3c00 and have never noticed any problem. But I recall some changes mentioned regarding linefeed behaviour in recent commits, so I thought I’d check with other editors.
So my preferred editor NotePad++ displays the linefeeds ini files correctly, as does WordPad. But the NotePad application that ships with Windows 10 does not display the therion.ini linefeeds, except one. The whole therion.ini file displays on two lines. Xtherion.ini displays on about 7 lines with the linefeeds in random places, apparently midline.
As I never use the NotePad that ships with Windows it does not concern me, but maybe this is something that needs resolving or explaining so that other users are not inconvenienced.
Bruce
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
On 2018-11-05 10:27 +0100, Torsten Schnitter via Therion wrote:
Hi Bruce
I'm using Windows 7 (64bit). Normally and right now I just used a double click to open the ini files. The default is notepad.exe to open these files. This editor does not show the line feeds in a correct way.
I now tested it with following programms: - Visual Studio Code - Notepad++ - UltraEdit-32 - Wordpad All these programms show the line feeds in a correct way.
In my opinion the file is OK. It's using 0x0D and 0x0A for a line feed (CR+LF) which is the correct way as far as I know.
Correct on DOS/Windows, not elsewhere, and it's actually probably just being shown like that, but not _actually_ like that on disc.
So the problem is obviously "Notepad.exe".
Indeed it is (mostly). The issue is the difference between Unix lineends, windows/DOS lineends and macos lineends. unix uses 0x0A (10), Macos Uses 0x0D (14) and DOS/Windows uses both (0x0D,0x0A). Most editors can cope with this and will try to show you something that looks sensible on your screen whichever one it finds. i.e. any of those 3 combination will cause a new line (and the DOS version doesn't do _two_ new lines). If you think about it this is actually quite difficult to get right in all circumstances, and can only be done by 'translating' a file at load and save time from whatever convention it uses to 'native'. If a file ends up being 'half and half' Unix and DOS lineends then editors have almost no hope of showing things as originally intended, because they can't tell what is 'right'. Notepad is famous for being very old and rather stupid about this - it only shows DOS linefeeds correctly. It ignores the unix linefeed and thus puts unix-linefeed files all on one line. Not sure what it does if you give it a mac file. Version control systems also sometimes do this translation so that files 'come out right' wherever you checked them out, but they are still identical when checked back in/compared. The original therion.ini file is presumably unix linefeeds so notepad is showing it all on one line. That's expected behaviour, even if it's not very helpful. Upstream could try to make different lineends for all the files in the windows and unix and mac versions of therion, but that's work and could cause other difficulties. Mostly if you just avoid notepad because it's really very shit that's probably best.
May be it's a good advice not to use notepad.exe. ;-)
That is indeed good advice. Wookey -- Principal hats: Linaro, Debian, Wookware, ARM http://wookware.org/
On Fri, Nov 09, 2018 at 02:44:09AM +0000, Wookey via Therion wrote:
The issue is the difference between Unix lineends, windows/DOS lineends and macos lineends. unix uses 0x0A (10), Macos Uses 0x0D (14) and DOS/Windows uses both (0x0D,0x0A).
0x0D is actually 13 not 14. Pre-OS-X Macs used that, but modern macs use Unix-style line endings. Cheers, Olly
On 2018-11-09 04:09 +0000, Olly Betts via Therion wrote:
On Fri, Nov 09, 2018 at 02:44:09AM +0000, Wookey via Therion wrote:
The issue is the difference between Unix lineends, windows/DOS lineends and macos lineends. unix uses 0x0A (10), Macos Uses 0x0D (14) and DOS/Windows uses both (0x0D,0x0A).
0x0D is actually 13 not 14.
Gah - I counted that out on my fingers and still got it wrong :-)
Pre-OS-X Macs used that, but modern macs use Unix-style line endings.
That's progress :-) Wookey -- Principal hats: Linaro, Debian, Wookware, ARM http://wookware.org/
participants (5)
-
Bruce Mutton -
Martin Sluka -
Olly Betts -
Torsten Schnitter -
Wookey