bugGNU nano - Bugs: bug #32077, "Redirection is not...

 
 

bug #32077: "Redirection is not supported" on win32

Submitted by:  Lubomir I. Ivanov <lubomir_ivanov>
Submitted on:  Sat 08 Jan 2011 11:49:18 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Wed 26 Feb 2014 01:19:04 PM UTC, comment #7:

I have tested with nano v2.25 both outside and inside an uptodate cygwin install - I neo longer get this warning message.

TERM is not set in the environment outside of cygwin.

Omega Weapon <omegaphil>
Sun 23 Feb 2014 01:06:59 PM UTC, comment #6:

As mentioned in bug #35214, it might help to set %TERM% to "cygwin". Can you confirm?

Benno Schulenberg <bens>
Project Member
Wed 18 Jul 2012 01:23:37 PM UTC, comment #5:

For others like me using mintty and reaching here via Google:

If you are using nano under the Git For Windows environment and mintty, you will get this redirection error. mintty is not a proper tty, and implements stdin/out with pipes (which I assume causes this issue) - see http://jpsoft.com/blogs/2012/03/windows-console-replacements-part-1-take-command-and-mintty/

Omega Weapon <omegaphil>
Mon 10 Jan 2011 04:08:56 PM UTC, comment #4:

http://sites.google.com/site/neolit123/Home/gnu-nano-2.2.6-ncurses-5.7.18.zip

Lubomir I. Ivanov <lubomir_ivanov>
Mon 10 Jan 2011 04:04:28 PM UTC, comment #3:

i was able to compile 2.2.6 with ncurses-5.7.18 and gcc-3.3.4 under cygwin. the build runs with no problem... apparently this gives a clue that the 'redirection is not supported' issue is probably coming from pdcurses.

here is the 2.2.6 package:
gnu-nano-2.2.6-ncurses-5.7.18.zip

ps: sorry for the spam

lubomir

---

Lubomir I. Ivanov <lubomir_ivanov>
Mon 10 Jan 2011 03:03:19 PM UTC, comment #2:

i've repacked gnu-nano-2.2.5 from cygwin (dll 1.7.7-1)

DOWNLOAD:
http://sites.google.com/site/neolit123/Home/gnu-nano-2.2.5-winxp-fix.zip

the version from cygwin runs ok on this machine.
more information in README.txt

lubomir

---

Lubomir I. Ivanov <lubomir_ivanov>
Mon 10 Jan 2011 12:00:14 PM UTC, comment #1:

gave it a try on another machine with windows vista sp1 and it seems to work there.

Lubomir I. Ivanov <lubomir_ivanov>
Sat 08 Jan 2011 11:49:18 AM UTC, original submission:

hello,
i've sent this report previously to Chris Allegretta:

> there seems to be something wrong with all 2.* win32 build of nano on my
> system (windows xp sp2 32bit).
>
> when i run the nano.exe i get:
> -------------------------------------------------
>
> Redirection is not supported
>
> -------------------------------------------------
> it seems that it does not matter where the dll / exe files are installed
> (following the README.txt instructions) ?
>


NOTE:
bellow is some disassembly debug for the latest nano-2.2.6-win32.

> "nano.exe -h" works and also other cmd line options are responsive
>
> i've found the "Redirection is not supported" ascii is stored in nano.exe at
> offset 0x00025DD0
> the string is not part of the /src folder (grep)
>
> the call itself that causes the throw to the output buffer i think is at
> 0x00024DD0 (.exe):
>
> FF1524134300 CALL DWORD PTR DS:[<&cygwin1._dll_crt0@0>] ;
> cygwin1._dll_crt0@0
>
> the ascii goes into a register as :
>
> 00424596 |. C70424 60E8420>MOV DWORD PTR SS:[ESP],nano.0042E860 ;
> ||ASCII 0A,"Redirectio"
> 0042459D |. 894424 0C MOV DWORD PTR SS:[ESP+C],EAX ; ||
> 004245A1 |. B8 1F000000 MOV EAX,1F ; ||
> 004245A6 |. 894424 08 MOV DWORD PTR SS:[ESP+8],EAX ; ||
> 004245AA |. B8 01000000 MOV EAX,1 ; ||
> 004245AF |. 894424 04 MOV DWORD PTR SS:[ESP+4],EAX ; ||
> 004245B3 |. E8 B0250000 CALL <JMP.&cygwin1.fwrite> ;
> |\fwrite
> 004245B8 |. C70424 0100000>MOV DWORD PTR SS:[ESP],1 ; |
> 004245BF |. E8 04270000 CALL <JMP.&cygwin1.exit> ; \exit
> 004245C4 |> A1 C0024300 MOV EAX,DWORD PTR DS:[4302C0] ; |
> 004245C9 |. 890424 MOV DWORD PTR SS:[ESP],EAX ; |
> 004245CC |. E8 C7240000 CALL <JMP.&cygwin1.free> ; \free
>
> the above begins around static offset:
> 0x00023996
>
> ---


any idea what the cause for this might be ?

regards
lubomir

Lubomir I. Ivanov <lubomir_ivanov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by omegaphil (Posted a comment)
  • -unavailable- added by lubomir_ivanov (Submitted the item)
  • -unavailable- added by lubomir_ivanov (nano-comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 23 Feb 2014 01:06:59 PM UTCbensStatusNone=>Need Info
    Sat 08 Jan 2011 11:49:18 AM UTClubomir_ivanovCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup