[Gimp-docs] re: CR+LF in src/menus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All -

It looks like I have found the source of the problems with the
src/menus/ files.

I am working on Windows.  I installed Notepad++ to edit the files,
which seems to work fine.

Julien was sending me .tar.gz files with the .xml files for me to
edit.  I was able to unpack these with the free WinZip program.  All
seemed well, but in fact, they were in Dos format.

I just compared the files I unpacked with WinZip with ones I was
able to unpack using Linux tools (on the Knoppix live CD, which is
how I run Gimp).  Julien's original .tar.gz files unpacked fine,
in Unix cr/lf format.  That means the problem was in WinZip unpacking
them.

I went exploring in WinZip and found an interesting default setting.
In the version I have, go to the Classic Interface, use
Options->Configuration, choose the
Miscellaneous tab, and uncheck the option for "TAR file smart CR/LF
conversion" box.  It looks that should work a lot better if you
are sending Unix formatted file by mail.

After unchecking this option, I unpacked one of the previous
.tar.gz file Julien sent me and the files were unpacked in Unix
format.  QED

It seems like many programs try to "help you out" by setting bad
defaults.  For example in Notepad++, I had to use
Settings->Preference, the MISC tab, and then in the Tab Setting
section, check "Replace by space".  Even though I never use the
tab key, it was inserting tabs in the file for me unless I did
this.

By the way, I do encounter tabs sometimes in the GIMP files I have
edited, so please make sure to check the settings of your favorite
editor and don't use the tab key when you're editing.

I also discovered that Knoppix has several different names for a
utility to convert dos-formatted files to unix-formatted files.
I assume that most other Linuxes do, too.  I used dos2unix as a
test.  When I used it on a random Dos-formatted file, it seemed
to work OK.  When I used it on a random Windows-formatted file,
it didn't seem to hurt it.

Might it be possible (or a good idea) to use a command like this as
a front-end to a cvs checkin automatically?  I don't know if this
is do-able or how to do it, but it seems like a possibility.

Red-facedly yours,

Sally


_______________________________________________
Gimp-docs mailing list
Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs

[Index of Archives]     [Video For Linux]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [Scanners]     [GEGL]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux