Updated italian translation
Add doc/MIRRORS.txt

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #2988: When an unknown key is pressed, it is interpreted as garbage.

keyboard input: simplify code, no logic changes

This change slightly simplifies and rearranges the code
in get_key_code(), reduces indentation levels there,
adds a few comments. The logic remains the same.

This is a preparatory patch for subsequent changes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This change prevents misinterpreting an unknown ESC sequence's
tail as a garbage input. To reproduce, run "sleep 3" and
hold down Down_Arrow key until sleep runs.
With debugging log enabled, the following can be seen:

entered get_key_code(no_delay:0)
 c=tty_lowlevel_getch()=27
 push_char(27) !0
 c=xgetch_second()=91
 push_char(91) !0
 2 c=tty_lowlevel_getch()=66
 push_char(66)
 seq_buffer[0]:27   <---- the saved Down Arrow sequence "ESC [ B"
 seq_buffer[1]:91
 seq_buffer[2]:66
 seq_buffer[3]:0
pending_keys!=NULL. m=-1
d=*pending_keys++=27
d=ALT(*pending_keys++)=ALT(91)=8283
^^^^^^^^^^^^^^^^^^^^^^^ we misinterpret "ESC [ B" as "ESC ["
return correct_key_code(8283)
entered get_key_code(no_delay:0)
pending_keys!=NULL. m=-1
d=*pending_keys++=66
^^^^^^^^^^^^ we think user pressed "B"
return correct_key_code(66)

With this patch, no bogus "input" is generated.

Longer unknown sequences need an additional fix, coming next.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
When we see an unknown sequence, it is not enough
to drop already received part - there can be more of it
coming over e.g. a serial line.

To prevent interpreting it as a random garbage,
eat and discard all chars that follow.
Small, but non-zero timeout is needed to reconnect
escape sequence split up by a serial line.

Before this change, Ctrl-Alt-Shift-Right_Arrow generates "1;8C"
bogus "input" in MC on my machine; after the change,
nothing is generated.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Merge branch '2988_ignore_unknown_esc_sequences'

* 2988_ignore_unknown_esc_sequences:
  When we see an unknown sequence, it is not enough to drop already received part - there can be more of it coming over e.g. a serial line.
  This change prevents misinterpreting an unknown ESC sequence's tail as a garbage input. To reproduce, run "sleep 3" and hold down Down_Arrow key until sleep runs. With debugging log enabled, the following can be seen:
  Ticket #2988: When an unknown key is pressed, it is interpreted as garbage.
Ticket #2990: Prepare for release mc-4.8.9

Change maint/doctest utility to run under maint directory

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Move all templates from maint to maint/templates

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add syncronization of po-files with Transifex.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Add maint/sync-transifex/README.txt file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
(subshell_name_quote): use GString for string forming.

(do_subshell_chdir): changed related to modified subshell_name_quote().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2998: configure.ac cleanups.

Remove tests whose results are not used:
  * AC_CHECK_HEADERS of unistd.h, fcntl.h, sys/time.h, sys/types.h
  * AC_HEADER_MAJOR
  * AC_HEADER_TIME
  * AC_HEADER_DIRENT
  * AC_CHECK_FUNCS of isascii, statfs, sysconf, tcgetattr, tcsetattr, ftruncate
  * AC_FUNC_STRCOLL

AC_C_CONST is obsolete, today it is safe to assume all C compilers
support at least C89.

The INTERACTIVE UNIX that needed AC_ISC_POSIX is long dead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Remove unneded utilities from maint/ directory.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Move an utility for found the include duplicates to maint/find-dup-includes subdirectory.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
remove the include duplicates from source files

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Reorder files in maint/ subdirectory.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Update the 'release procedure' file.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #3003: man pages should contain charset

man pages should contain charset for to display properly in other encodings.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
WEdit::labels is unused. Remove.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Use G_N_ELEMENTS macro to calculate of array size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>