Re: [Midnight Commander] #147: Fix escaping for completion on cmdline (spaces, backslashes, etc).



#147: Fix escaping for completion on cmdline (spaces, backslashes, etc).
---------------------------------------------------+------------------------
  Reporter:  Patrick Winnertz <winnie debian org>  |       Owner:  winnie  
      Type:  defect                                |      Status:  accepted
  Priority:  major                                 |   Milestone:  4.6.2   
 Component:  mc-core                               |     Version:  4.6.1   
Resolution:                                        |    Keywords:  review  
  Blocking:  149                                   |   Blockedby:          
---------------------------------------------------+------------------------
Changes (by Patrick Winnertz):

  * keywords:  rework => review


Comment:

 Hey,
 >  Maybe it's a good idea to try to use
 >   g_strescape and g_strcompress instead of home-made functions...
 I tried it with these functions.. unfortunatly g_strescape doesn't escape
 the
 whitespace .. therefore this function is useless for us.

 I rewrote the patch a little bit to escape everything even if it's the
 leading
 char.

-- 
Ticket URL: <www.midnight-commander.org/ticket/147#comment:>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center


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