Commit Graph

2910 Commits

Author SHA1 Message Date
Pavel Roskin
998bbab143 * edit/edit_key_translator.c [HAVE_CHARSET]: Add charset
conversion support.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 23:04:38 +00:00
Pavel Roskin
c645d780c7 * edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
* editcmd.c [HAVE_CHARSET]: Add charset conversion support.
* editdraw.c [HAVE_CHARSET]: Likewise.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 23:02:08 +00:00
Pavel Roskin
cd1fd56223 * boxes.c [HAVE_CHARSET]: New charset selection dialog.
* main.c [HAVE_CHARSET]: Don't use eight_bit_clean and
full_eight_bits. Use source_codepage and display_codepage to
deduce the terminal 8-bitness.
* main.h [HAVE_CHARSET]: Change to match main.c.
* setup.c [HAVE_CHARSET]: Implement saving and loading charset
settings.
* util.c (is_printable) [HAVE_CHARSET]: Use charset settings.
* view.c [HAVE_CHARSET]: Implement charset support.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 22:49:15 +00:00
Pavel Roskin
d34b0fde60 * selcodepage.c (do_select_codepage): New function.
* selcodepage.h: Declare it.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 22:28:11 +00:00
Pavel Roskin
0e46f60810 * mfmt.c (omain): Warning fix. 2001-06-05 22:21:42 +00:00
Marco Ciampa
8f2b254483 my homework was late :-) 2001-06-05 22:08:38 +00:00
Pavel Roskin
72db8e927d * key.c [HAVE_TEXTMODE_X11_SUPPORT]: Rename `display' to
`x11_display' and `w' to `x11_window'. Make them static.
(init_textmode_x11_support): Include into init_key().
(done_textmode_x11_support): Include into done_key().
(k_dispose): Make static.
(s_dispose): Likewise.
* key.h: Remove init_textmode_x11_support() and
done_textmode_x11_support().
* main.c: Don't call init_textmode_x11_support() and
done_textmode_x11_support().
2001-06-05 22:08:31 +00:00
Pavel Roskin
7b340a2af9 * achown.c: Make global variables static if possible. Remove now
useless preprocessor directives, since this file is now used in
the text edition only.
* boxes.c: Remove useless ifdefs.
[USE_VFS]: Don't undef USE_NETCODE - it's done in extraconf.h.
* cmd.c [USE_VFS]: Don't undef USE_NETCODE.
* chmod.c: Remove useless ifdefs.
* filegui.c: Likewise.
* hotlist.c: Likewise.
* info.c: Likewise.
* layout.c: Likewise.
* listmode.c: Likewise.
* option.c: Likewise.
* subshell.c: Likewise.
* help.c: Remove useless ifdefs. Make global variables static if
possible.
* key.c: Likewise.
* learn.c: Likewise.
2001-06-05 16:41:44 +00:00
Pavel Roskin
adb76aab8f * extraconf.h [HAVE_X]: Undefine HAVE_TEXTMODE_X11_SUPPORT. 2001-06-05 15:27:48 +00:00
Andrew V. Samoilov
2c2744b763 * charsets.c (load_codepages_list): Lines in mc.charset beginning
with a # are comments. Use "default character_set_name" in mc.charset
to set default codepage for your system.
(xstrncpy): Eliminate.
2001-06-05 01:00:26 +00:00
Pavel Roskin
28da0eda1f * gmcd.c (gnome_filter_cmd): Set default regex filter to "^.*$".
Don't translate it.
(set_cursor_busy): Warning fix.
2001-06-04 21:12:11 +00:00
Pavel Roskin
4018a4bb6d * cmd.c (edit_symlink_cmd) [!HAVE_GNOME]: Warn if the current
selection is not a symbolic link.
2001-06-04 20:57:37 +00:00
Marius Andreiana
e514211bb1 2001-06-03 Marius Andreiana <mandreiana@yahoo.com>
* ro.po: updated
2001-06-03 13:00:11 +00:00
Pavel Roskin
cacd759dde * Makefile.in: Don't use hotlist.o. Remove annoying message. 2001-06-02 06:55:45 +00:00
Pavel Roskin
47754df0c4 * cmd.c (free_vfs_now) [HAVE_GNOME]: Eliminate.
(reselect_vfs) [HAVE_GNOME]: Likewise.
* main.c (ctl_x_map) [HAVE_GNOME]: Disable add2hotlist_cmd.
(done_mc) [HAVE_X]: Don't call save_hotlist().
* setup.c (save_setup) [HAVE_X]: Likewise.
(done_setup) [HAVE_X]: Don't call done_hotlist().
2001-06-02 06:52:28 +00:00
Pavel Roskin
c6f85d7969 * vfs.c (vfs_canon): s/canonize/canonicalize/. 2001-06-02 06:36:00 +00:00
Pavel Roskin
d2724e215a * gmain.c (x_init_dlg): Warning fix for buggy Gtk that doesn't
always cast the argument to GTK_OBJECT.
2001-06-02 02:10:47 +00:00
Pavel Roskin
5386a6375f * gtkedit.h: Warning fix - use stricter declarations for
destroy_me and destroy_me_user_data.
2001-06-02 01:37:23 +00:00
Pavel Roskin
2802b5f19a * Makefile.in: Don't use key.o. 2001-06-02 01:18:22 +00:00
Pavel Roskin
429c5fcd58 * hotlist.c [HAVE_X]: Don't use ctrl_pressed().
* widget.c [HAVE_X]: Likewise.
* main.c [HAVE_X]: Likewise. Don't call init_key() and
init_key_input_fd().
* setup.c [HAVE_X]: Remove some variables that make no sence
for the GNOME edition. Eliminate save_panel_types().
* view.c [!PORT_WANTS_VIEW]: Eliminate view_mode_callback().
2001-06-02 01:17:27 +00:00
Pavel Roskin
b66d2fec72 * view.c [HAVE_X]: Define is_idle() to 1. Warning fix. 2001-06-02 01:01:30 +00:00
Pavel Roskin
67a118915d * file.c (copy_file_file): Initialize src_uid, src_gid, src_mode
and file_size to avoid a warning.
2001-06-02 00:00:51 +00:00
Pavel Roskin
262a42afdb * lib/mc.charsets: Synchronize with the latest patch - remove
a comment.
2001-06-01 22:46:07 +00:00
Andrew V. Samoilov
07b052699e * ftpfs.h: Declare use_netrc, ftpfs_retry_seconds, ftpfs_first_cd_then_ls,
ftpfs_use_passive_connections and ftpfs_use_unix_list_options.

* vfs.c [VFS_STANDALONE]: Undefine WITH_SMBFS, they are mutually
exclusive now.
(is_week): Unmade week static.
(is_month): Unmade month static.
(vfs_parse_ls_lga): Optimize memory usage.

* .cvsignore: *.sor added.
* sfs.c (sfs_init): Optimized.

* vfs/samba/lib/util_sock.c (socket_options): Made static const.
2001-06-01 17:46:57 +00:00
Andrew V. Samoilov
c9c3e9538e *.sor added. 2001-06-01 13:39:53 +00:00
Andrew V. Samoilov
7df26a45b5 * vfs/samba/lib/util_sock.c (socket_options): Made static const. 2001-06-01 13:38:04 +00:00
Pavel Roskin
9442074b84 * extraconf.h [HAVE_X]: Undefine HAVE_CHARSET - it doesn't
work with GNOME.
2001-06-01 00:19:38 +00:00
Pavel Roskin
91eba7d5ca * Makefile.in: Define HAVE_X and HAVE_GNOME, not just GTK -
header files are using them.
2001-06-01 00:17:03 +00:00
Pavel Roskin
0866d8c3e0 * charsets.c: Include config.h before everything else.
* selcodepage.c: Likewise.
2001-05-31 23:56:27 +00:00
Pavel Roskin
9c545b2e8f * textconf.c (features): Use longer strings to avoid enforcing
english word ordering on the translations. Capitalize sentences.
From Walery Studennikov: Indicate charset support.
(version): Use fputs, not fprintf.
2001-05-31 23:22:06 +00:00
Pavel Roskin
b75b12b34d * Makefile.in: Add charsets.c, charsets.h, selcodepage.c and
selcodepage.h. Compile them if the charset support is enabled.
Distribute them always.
2001-05-31 22:45:28 +00:00
Pavel Roskin
e72a150ac9 * charsets.c: New file for charset conversion support.
From Walery Studennikov.
* charsets.h: Likewise.
* selcodepage.c: Likewise.
* selcodepage.h: Likewise.
2001-05-31 01:27:20 +00:00
Pavel Roskin
64b09e307a * lib/mc.charsets: New file. From Walery Studennikov.
* lib/Makefile.am: Distribute mc.charsets. Install it if
the charset support is enabled.
2001-05-31 01:17:21 +00:00
Pavel Roskin
1ddcc8951c * configure.in: Add check for iconv() and the necessary code
to support the charset selection patch.
2001-05-31 00:53:06 +00:00
Andrew V. Samoilov
daa8e84176 (key_pending) [!GTK]: Warning fix. 2001-05-31 00:43:04 +00:00
Pavel Roskin
cd8d6460bd * editdraw.c (edit_render) [GTK]: Revert previous patch, it
broke compilation.
2001-05-31 00:06:22 +00:00
Andrew V. Samoilov
b5210e40f6 * editdraw.c (edit_status): Use strcpy (s, ) instead of
sprintf (s, "%s", ).

(set_color) [MIDNIGHT]: Became a macro.
(render_edit_text) [!defined(MIDNIGHT) && !defined(GTK)]: Warning fix.
(edit_render) [GTK]: Eliminate win variable.
2001-05-30 23:32:41 +00:00
Pavel Roskin
6c7bd41428 * editdraw.c (status_string): Use is_printable(). Declare
static. Eliminate intermediate buffer. Use memset() for filling.
Print byte as unsigned. Use C notation for hex numbers.
2001-05-30 17:18:28 +00:00
Pavel Roskin
c9b27ea6eb * editdraw.c (status_string): Don't print non-printable chars.
Better formatting. Print "<EOF>" at the end of file instead of
-1. Use snprintf instead of sprintf.
2001-05-30 15:48:26 +00:00
Pavel Roskin
540cccc4d6 * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
possible to prevent ncurses from waiting after escape.
2001-05-30 15:05:07 +00:00
Pavel Roskin
2990245111 * configure.in: Add check for ESCDELAY variable in ncurses. 2001-05-30 15:01:12 +00:00
Andrew V. Samoilov
733c2dd05e * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
of syntax file(s) with LIBDIR, use mc_home instead.
From Ludovic Drolez <ludovic.drolez@freealter.com>.

(syntax_text): Use perl.syntax to highlight perl modules (.pm).
2001-05-30 12:35:16 +00:00
Andrew V. Samoilov
f52cfa5607 2001-05-30 Ludovic Drolez <ludovic.drolez@freealter.com>
* sfs.c (sfs_init): Don't hardcode location of sfs.ini,
	use mc_home to make mc relocatable.
2001-05-30 12:05:50 +00:00
Pavel Roskin
823c83aa9e * Makefile.in: Don't use boxes.o. 2001-05-30 00:18:10 +00:00
Pavel Roskin
17724b4004 * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.
* main.c (sort_cmd) [HAVE_GNOME]: Likewise.
(ctl_x_map) [HAVE_GNOME]: Disable "Ctrl-x j" - background jobs.
2001-05-30 00:16:19 +00:00
Pavel Roskin
6b317d088e * extraconf.h [!USE_VFS]: Undefine USE_NETCODE and
USE_EXT2FSLIB.
2001-05-29 23:43:05 +00:00
Pavel Roskin
4c7a7f7132 * gcmd.c (gnome_listing_cmd): Remove, it unused.
(gnome_compare_panels): Likewise.
2001-05-29 22:50:59 +00:00
Pavel Roskin
146730a630 * extraconf.h: Remove unused HAS_DIRECT_COLOR_ACCESS.
* pc/config.h: Likewise.
2001-05-29 22:12:00 +00:00
Pavel Roskin
6c24b699cd * color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
NULL as color names - this works even if COLORFGBG is unset.
Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
2001-05-29 22:02:16 +00:00
Pavel Roskin
d9713d6233 * lib/mc.ext.in: For MS Word documents try "catdoc", "word2x"
and "strings". Recognize "write" files and MS Word templates.
For MS Excel documents try "xls2csv" and "strings".
Escape spaces in the "type" directives.
From Nerijus Baliunas.
2001-05-29 20:40:59 +00:00