ALT Linux Bugzilla
– Attachment 131 Details for
Bug 1550
Locale error
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
0001550-help.c.patch
0001550-help.c.patch (text/plain), 1.27 KB, created by
GkMossy
on 2002-11-13 13:08:12 MSK
(
hide
)
Description:
0001550-help.c.patch
Filename:
MIME Type:
Creator:
GkMossy
Created:
2002-11-13 13:08:12 MSK
Size:
1.27 KB
patch
obsolete
>Index: help.c >=================================================================== >RCS file: /cvs/gnome/mc/src/help.c,v >retrieving revision 1.33 >diff -u -p -r1.33 help.c >--- help.c 22 Oct 2002 23:56:26 -0000 1.33 >+++ help.c 13 Nov 2002 10:04:00 -0000 >@@ -48,11 +48,13 @@ > #include "dialog.h" > #include "win.h" > #include "mouse.h" >-#include "key.h" /* For mi_getch() */ >+#include "key.h" /* For mi_getch() */ > #include "help.h" > #include "dlg.h" /* For Dlg_head */ > #include "widget.h" /* For Widget */ > #include "wtools.h" /* For common_dialog_repaint() */ >+#include "charsets.h" /* For convert_to_display_c() */ >+#include "selcodepage.h" /* For do_select_codepage() */ > > #define MAXLINKNAME 80 > #define HISTORY_SIZE 20 >@@ -429,8 +431,13 @@ static void show (Dlg_head *h, char *pai > continue; > if (col > HELP_WINDOW_WIDTH-1) > continue; >- >+ > dlg_move (h, line+2, col+2); >+#ifdef HAVE_CHARSET >+ c = (unsigned char)convert_to_display_c (c); >+ if (!is_printable (c)) >+ c = '.'; >+#endif > if (acs){ > if (c == ' ' || c == '.') > addch (c); >@@ -715,7 +722,11 @@ static int help_handle_key (struct Dlg_h > case XCTRL('g'): > dlg_stop (h); > break; >- >+#ifdef HAVE_CHARSET >+ case XCTRL('t'): >+ do_select_codepage (); >+ break; >+#endif > default: > return 0; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1550
: 131