Author Topic: Widows users readme.txt format  (Read 2115 times)

badbod

  • Swordman
  • *
  • Posts: 15
    • View Profile
Widows users readme.txt format
« on: 26 January 2012, 20:12:27 »
Hi,
  I am guessing that most windows users may not have custom (or well behaved) editors as default. The readme.txt after install looks a real mess in notepad. Notepad is the default windows viewer for .txt files. Please check. Does Notepad respect \n\r . It knows carriage returns of one sort or another. Else maybe consider another format?

Just mentioning it as I installed the latest version in windows today, when I clicked yes to the readme I was confronted with a mess.

David

weltall

  • Guest
Re: Widows users readme.txt format
« Reply #1 on: 26 January 2012, 21:10:47 »
it means it has unix \n only. wordpad can open it.

Kiko

  • Guest
Re: Widows users readme.txt format
« Reply #2 on: 26 January 2012, 21:21:29 »
I've had that problem, and ended up helping others fix the same thing because they had no idea of file types and formats. I find RTF is the best, as Wordpad will open it, and every other editor that does also respects the line breaks (plus font styling can be useful of course).

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Widows users readme.txt format
« Reply #3 on: 26 January 2012, 22:16:00 »
Most people who would open a text file in windows to read readme's are likely techie users. Just download and use notepad++ (free opensource editor for windows) which is insanely awesome and views unix text files perfectly.

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: Widows users readme.txt format
« Reply #4 on: 26 January 2012, 23:24:23 »
i swear to notepad++, if i ever take my time to learn anything other than XML, it will be because of notepad, thats how awesome it is.
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Widows users readme.txt format
« Reply #5 on: 27 January 2012, 00:12:16 »
Yeah, it's in unix format. It would work on both systems if converted to /r/n line endings (carriage return and line feed), as (to my knowledge) all Linux OS's handle it gracefully. Microsoft's notepad is crap (they should replace it with Notepad++ in Windows 8 ), and can't handle really anything. Not too big of a deal, though.
« Last Edit: 27 January 2012, 00:26:19 by Omega »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Widows users readme.txt format
« Reply #6 on: 27 January 2012, 00:15:47 »
Yeah, it's in unix format. It would work on both systems if converted to /r/n line endings (carriage return and line feed), as (to my knowledge) all Linux OS's handle it gracefully. Microsoft's notepad is crap (they should replace it with Notepad++ in Windows 8), and can't handle really anything. Not too big of a deal, though.
But why can't MS Paint open Glest's texture files?!  ;D

badbod

  • Swordman
  • *
  • Posts: 15
    • View Profile
Re: Widows users readme.txt format
« Reply #7 on: 27 January 2012, 06:58:36 »
Hi Softcoder,
  The default viewer for .txt files is notepad, so only techi users would not be using notepad to view it. I use notepad++ but only associate it with the file-types I want, like .php or .html. Usually, most .txt come up fine in windows notepad, but I am guessing that is cos whoever wrote them knew that only technical types would not be using windows notepad as their default .txt file viewer.

 I am talking about the readme.txt at the end of installation "Do you want to read the readme" option.

Regards

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Widows users readme.txt format
« Reply #8 on: 27 January 2012, 11:27:33 »
This is how it feels when you are not the main target of a development. Development is done in Linux for Linux and Windows is just a port somehow and by this there might show up some regressions ...
( None of the developers uses Windows if he is not forced to  :angel: )
I am not sure if we can fix it so easily, because debian compliance is more important in this case. But at least the installer should show the txt file with wordpad ...
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

weltall

  • Guest
Re: Widows users readme.txt format
« Reply #9 on: 27 January 2012, 11:52:41 »
if you are using eol-style = native in svn (there is for sure something similar in git) you'll be able to have it checkout in windows format on windows and unix format on the rest.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Widows users readme.txt format
« Reply #10 on: 27 January 2012, 12:06:21 »
This is how it feels when you are not the main target of a development. Development is done in Linux for Linux and Windows is just a port somehow and by this there might show up some regressions ...
( None of the developers uses Windows if he is not forced to  :angel: )
I am not sure if we can fix it so easily, because debian compliance is more important in this case. But at least the installer should show the txt file with wordpad ...
What an interesting reversal. Vanilla Glest was created solely for Windows, then later ported to GAE. But at any rate, all Linux OS's and there superior default text editors handle both /n and /r/n line endings gracefully (just like Notepad++).
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Widows users readme.txt format
« Reply #11 on: 28 January 2012, 05:36:58 »
I think it's problematic if the default Windows configuration doesn't allow the average user to easily access content we want them to read, i.e. the README file. And if there can be ways to work around this limitation without failing to comply with other standards which we deem to be more important (does Debian require us to use \n instead of \r\n line endings?) and doesn't break compatibility with other platforms (does OS X handle \r\n as expected by default?) then we should go with these.

Will brought up that there are ways to have different line endings per platform when using SVN. We could probably weave this into our build system?

If this turns out to be not so straight forward then we could have a script which runs when we build Windows installers and converts all .txt files to classic Windows line endings (\r\n).

Finally, should none of these options work out (I can hardly imagine this, though) we can still add an FAQ entry which recommends to change Windows defaults to open .txt files with a proper text editor such as Wordpad (AKA Windows Write).
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Widows users readme.txt format
« Reply #12 on: 28 January 2012, 06:05:11 »
Finally, should none of these options work out (I can hardly imagine this, though) we can still add an FAQ entry which recommends to change Windows defaults to open .txt files with a proper text editor such as Wordpad (AKA Windows Write).
On a side note, I wouldn't consider Wordpad to be a "proper" text editor by any means. Windows is pretty dumbed down when it comes to text editors.

And to my knowledge, OS X handles Windows EoLs fine, though I can't confirm that personally.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

badbod

  • Swordman
  • *
  • Posts: 15
    • View Profile
Re: Widows users readme.txt format
« Reply #13 on: 28 January 2012, 13:06:48 »
I am not sure how many people will click to see the readme after install, the dialogue box does recommend this as it contains important  information etc. As suggested already - maybe a script in the windows build to convert the txt file to .rtf would solve it. Or adding \r\n, or even convert to .doc?

There are more important issues, like all the overflowing text in the server browser page in-game, the join server buttons hidden behind text etc. Just though I would bring up this txt file issue as it does look untidy. Depends on your priorities though as to if/when it should be addressed.

Regards

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Widows users readme.txt format
« Reply #14 on: 28 January 2012, 19:54:58 »
Code: [Select]
[URL=http://imageshack.us/photo/my-images/46/captureojl.jpg/][IMG]http://img46.imageshack.us/img46/9167/captureojl.jpg[/img][/URL]
« Last Edit: 7 October 2016, 21:52:06 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

 

anything