Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8

This commit is contained in:
Ilia Maslakov 2009-04-20 14:55:39 +00:00
commit 17c4e67cb2
3 changed files with 10 additions and 6 deletions

View File

@ -825,7 +825,7 @@ static menu_entry LeftMenu[] = {
{' ', "", NULL_HOTKEY, 0},
{' ', N_("&Filter..."), NULL_HOTKEY, filter_cmd},
{' ', "",NULL_HOTKEY, 0},
{' ', N_("&Encoding..."), NULL_HOTKEY, encoding_cmd},
{' ', N_("&Encoding... C-t"), 'C', encoding_cmd},
#ifdef USE_NETCODE
{' ', "", NULL_HOTKEY, 0},
#ifdef WITH_MCFS
@ -851,7 +851,7 @@ static menu_entry RightMenu[] = {
{' ', "", NULL_HOTKEY, 0},
{' ', N_("&Filter..."), NULL_HOTKEY, filter_cmd},
{' ', "",NULL_HOTKEY, 0},
{' ', N_("&Encoding..."), NULL_HOTKEY, encoding_cmd},
{' ', N_("&Encoding... C-t"), 'C', encoding_cmd},
#ifdef USE_NETCODE
{' ', "", NULL_HOTKEY, 0},
#ifdef WITH_MCFS

View File

@ -2196,7 +2196,8 @@ static const panel_key_map panel_keymap [] = {
{ XCTRL('n'), move_down }, /* C-n like emacs */
{ XCTRL('s'), start_search }, /* C-s like emacs */
{ ALT('s'), start_search }, /* M-s not like emacs */
{ XCTRL('t'), mark_file },
/* { XCTRL('t'), mark_file },*/
{ XCTRL('t'), encoding_cmd },
{ ALT('o'), chdir_other_panel },
{ ALT('i'), sync_other_panel },
{ ALT('l'), chdir_to_readlink },

View File

@ -106,14 +106,16 @@ _str_convert (GIConv coder, char *string, int size, GString * buffer)
gsize bytes_read, bytes_written;
GError *error = NULL;
errno = 0;
if (string == NULL || buffer == NULL)
return ESTR_FAILURE;
/*
if (! used_class.is_valid_string (string))
{
return ESTR_FAILURE;
return ESTR_FAILURE;
}
*/
state = 0;
if (size < 0)
{
@ -208,7 +210,8 @@ _str_convert (GIConv coder, char *string, int size, GString * buffer)
{
if (tmp_buff != NULL)
{
if (*tmp_buff){
if (*tmp_buff)
{
g_string_append (buffer, tmp_buff);
g_free (tmp_buff);
string += bytes_read;