Showing posts with label cygwin. Show all posts
Showing posts with label cygwin. Show all posts

Monday, January 10, 2011

#re-packing gnu-nano-2.2.5 for use on certain win-xp setups

i'm a big fan of the gnu nano editor...of course its purpose is to be simple and fun to use, while not competing with other editors like vim, emacs, codeblocks, geany, gedit, etc...etc.
(i personally think that pspad on windows may be much stronger than a lot of these editors considering the install size / functionality trade off).


edit: also a nano-2.2.6 build is available at the bottom.
i wanted to try nano for win32, so basically i went to http://www.nano-editor.org/download.php and i've downloaded the latest windows build 'nano-2.2.6.zip'.

running it however spat out a nasty message 'redirection is not supported'. after some investigation (installing / compiling / running / disassembling / testing stuff and sending emails...) i've put together a older version package of nano - 2.2.5 that runs ok on my system.

here is a fuller story in the README.txt:


this is the gnu-nano-2.2.5 from cygwin (dll 1.7.7-1), stripped down with just
the cygwin terminal information and the basic needed dlls.

the reason that i created this package is that on my desktop pc running
windows xp sp2 i've got the message "redirection is not supported" and the
program did not work.

some disassembly debug on the included dll / exe's in the official
package revealed that the message is related to cygwin1.dll.

i've installed the latest cygwin, got the pdcurses for windows and compiled
them. unlike compiling pdcurses with mingw, with the gcc-cygwin i've got
"redirection is not supported" for all new test executables - which ment
that something is wrong with cygwin/pdcurses, but not exactly sure what
specifically.

unfortunately none of the people related to this issue which i've tried
contacting replied so i've quickly decided to redistribute this
'gnu-nano-2.2.5-winxp-fix.zip' package from my website.


so instead of persisting on this and eventually patching cygwin dll's (and wasting a lot of time in the process), which wouldn't actually be the greatest and of moral things to do, i'm redistributing the one compiled for the cygwin project with the appropriate license information from both parties.

here is a bug report that i've set to gnu-nano @ savannah:
https://savannah.gnu.org/bugs/?32077

here is the DOWNLOAD of the package:
gnu-nano-2.2.5-winxp-fix.zip

i still have no idea what the cause for this is, but i can confirm that the official nano-2.2.6 works ok on other people's windows installations.

**** UPDATE ****
i was able to compile 2.2.6 with ncurses under cygwin. here is a working snapshot, download this version instead of the one above if you would prefer:
gnu-nano-2.2.6-ncurses-5.7.18.zip

06052012: here is a native (but buggy) windows build attempt, explained in comments 4-5 bellow:
gnu_nano_2.2.6_pdcruses_win32_native.zip

lubomir