Signed-off-by: Patrick Winnertz <winnie@debian.org>
edit: cleanup: moved variable declaration to begin of block
edit: have_charset: added explicit variable declarations
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
fix not initialized variable 'cw'
fix variables 'cw', 'utf_ch', make more safety algorithm.
fix: issue in 'while'
remove 'Once' button as 'atavism'
add 'from' field in confirm dialog
Fixed layout of place confirmation dialog in mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Reason:
If some directory in fish is a read-only, then mc will crashed
Issue:
In fish_mkdir added additional check if directory was created.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
No any files was copyed into fish.
Issue:
Files was try to create with O_EXCL flag. On fish it's fail
Now for fish flag O_EXCL will dropped.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Fixed:
* Call of str_convert_to_input() now in HAVE_CHARSET block
* Fixed recoding of search string if charsets in use.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Reason:
glib ini-function works only with UTF-8 in files. Bug raised if system charset not UTF-8.
Issue:
* recode to utf-8 before saving values of ini-params and
* recode from utf-8 after reading values of ini-params
Also fixed:
* if system codepage is not UTF-8, panelize named is always in utf-8 and seems as non-sense string.
* Recode panelize command names into system codepage from utf-8
* global variable utf8_display now initialized in any case (non-relative to ENABLE_CHARSET)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* Replace search prepare algorithm
* Added function for update search status.
* Added callback for update search status into external places
* Added new message box 'Seeking to search result' at end of search process
* Fixed search in file with different charset.
* Fixed backward search in nroff'ed text
* Added named enum for return values of callback functions for search
* Fixed wrong search with 'pcre' search engine.
* Fixed search in underlined text.
* Fixed wrong offset of nroff'ed text where text is underlined.
* Fixed calculating of next search position. Fixed double-search one text in nroff'ed area.
* Last found text stay selected if no more found.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 1391_segfault_on_empty_codepages:
Ticket #1391: fill codepages list if mc.charsets file cannot be read.
Prevent mc from crashing when codepages is empty because of an bogus installation
* 1396_with_search_engine:
Fixed bug in calculate version code when run under FreeBSD
Ticket #1396 (need build option --with-search-engine for select regex engine)
Added '--with-search-engine' into configure script.
Changed behavior of lib_pcre m4-module. Now used pkg-config
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
If mc.charsets file cannot be read, add default ASCII codepage
to codepages list.
Some code clean up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 346_fix_faq:
Fixed URI to list of build requrements
Fixed also some outdated informations in doc/HACKING
Removed some trailing whitespaces in FAQ
Fixed also some outdated informations in doc/HACKING
Ticket 346 (git master: FAQ is outdated)
Fixed some outdated informations in the FAQ
- about main site
- about maillists
- about configure options
- glib version which is needed
Signed-off-by: Patrick Winnertz <winnie@debian.org>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Modified histroy_cmd() function: now it shows history of command
line widget, not yet another dialog window.
Modified menu entry.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
As stderr closes before process shutdown we get hangup trying to
read last data from stderr. Try to read at least something before closing
stderr.
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
* 394_history_file:
History: don't drop valid keys after 1st invalid one.
REBASE: Need to join to previous commit
Fixed return value of mc_config_new() function
Ticket #394: handle the empty ~/.mc/history file correctly.
Old behavior: while reading some history from ~/.mc/history file,
the all keys after 1st invalid key are ignored.
New behavior: ignored invlaid keys only. All valid keys are
get.
Signed-off-by: Andrew Borodin <borodin@borodin.zarya>
* src/find.c:
+ New design of 'Find File' dialog.
+ íodification of search results dialog: listbox
which contains search results is not scrolled now.
New behavior avoids dialog blinking :) and allows the walk
through the list during search.
Added counter of found items.
+ Check regexp before search.
+ For glib >= 2.14.0, use GQueue for directory queue.
+ Fixed memory leak.
+ Some optimization.
+ More type accuracy.
+ Formatting. Fixed typo. Clean up.
* src/widget.c:
(listbox_select_by_number): don't operate with non-existing list.
* src/search/*:
+ (mc_search_prepare): new function that allows check if regexp
is valid before search (Slava Zanko).
+ Removed redundant chek for g_free ().
Use g_free() instead of free().
Signed-off-by: Andrew Borodin <borodin@borodin.zarya>
* 72_preserve_attributes:
Copy files/dirs: If 'Preserve attributes' checkbox is unchecked, then permissions of files and dirs will be set relative to current umask
Added recognizing of filesystem type and automatically toggle 'on' or 'off' checkbox 'Preserve attributes' in file copy/move dialog
Fix chmod complaints when "preserve attributes" unchecked
Hangup state:
viewer executes program an checks whether it emits data from stdout
or stderr and receives them via UNIX pipes. Viewer reads stdout
synchronously (fread). Inferior program tries to write large chunk
to stderr when viewer is blocked on stdout read. We get a deadlock:
* viewer is blocked reading from empty nonclosed stdout
* inferior app is blocked by full stderr pipe
To prevent this we close stderr right after first read byte from stdout.
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>