Patrick Winnertz
d84586ba82
Reverted the use of mhl_str_dup and use g_strdup instead.
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:40:32 +01:00
Patrick Winnertz
1c287d798d
First bunch of mhl_mem_free removal patches
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:36:58 +01:00
Enrico Weigelt, metux IT service
8b38cf44da
manully merged 227_replace_g_free
2009-02-02 22:34:05 +01:00
Enrico Weigelt, metux IT service
035fa47c06
manually merged 228_replace_g_strdup
2009-02-02 21:28:01 +01:00
Enrico Weigelt, metux IT service
0434e3de5d
manually merged 235_remove_g_snprintf
2009-02-02 20:53:03 +01:00
Enrico Weigelt, metux IT service
e4a4f77ac2
replaced g_snprintf() by snprintf()
2009-02-01 20:03:28 +01:00
Sergei Trofimovich
5ee6f43796
build fix: added missing declaration of mhl_dir_plus_file
...
./configure --enable-charset && make
charsets.c: In function 'load_codepages_list':
charsets.c:51: warning: implicit declaration of function 'mhl_str_dir_plus_file'
charsets.c:51: warning: assignment makes pointer from integer without a cast
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-01 20:46:18 +02:00
Enrico Weigelt, metux IT service
54d6ec88dc
replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
2009-01-31 16:51:58 +01:00
Enrico Weigelt, metux IT service
f921cc40cd
replaced calls to g_strdup() by mhl_str_dup()
2009-01-30 20:10:40 +01:00
Enrico Weigelt, metux IT service
15d7d47c15
replaced g_free() by mhl_mem_free()
2009-01-30 19:28:35 +01:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Roland Illig
10c2c57663
* charsets.c (translate_character): Fixed checking of the return
...
value of iconv().
2005-05-11 21:50:36 +00:00
Roland Illig
fc85bdba7e
* *.c: Reordered header inclusion.
2005-02-08 09:04:03 +00:00
Roland Illig
2ed35b596c
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional
changes. Patch contributed by Andrew V Samoilov.
2004-08-30 10:38:00 +00:00
Roland Illig
5c4add0e6e
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 22:38:06 +00:00
Pavel Roskin
5c0691349c
* charsets.c (convert_to_display): Don't crash on empty read
...
only strings.
(convert_from_input): Likewise.
Reported by David Martin <dmartina@excite.com>
2002-11-11 14:48:37 +00:00
Pavel Roskin
517243efa0
* charset.h [!HAVE_CHARSET]: Provide dummy macros for
...
convert_to_display and convert_from_input. Eliminate uchar
definition, use unsigned char, adjust dependencies.
* charsets.c (convert_to_display): Tolerate NULL argument.
(convert_from_input): Likewise.
2002-10-30 23:14:26 +00:00
Andrew V. Samoilov
001f9ec607
* charsets.c (init_translation_table): Use g_snprintf() instead of sprintf().
2002-10-07 07:14:09 +00:00
Pavel Roskin
9514de4ed7
* charsets.c: Add disclaimer of warranty.
...
* filenot.c: Likewise.
* fileopctx.c: Likewise.
* mfmt.c: Likewise.
* selcodepage.c: Likewise.
* text.c: Likewise.
* textconf.c: Likewise.
2002-08-27 05:27:11 +00:00
Pavel Roskin
e2a37d3809
* charsets.c: Unconditionally enable finalization code that was
...
only used with HAVE_MAD.
* color.c: Likewise.
* color.h: Likewise.
* key.c: Likewise.
* main.c: Likewise.
* slint.c: Likewise.
* subshell.c (exit_subshell): Free subshell_prompt.
2002-08-01 20:31:52 +00:00
Andrew V. Samoilov
aa2832dff9
* util.c [!HAVE_TRUNCATE] (truncate): Close fd if my_ftruncate
...
fails.
* util.c [HAVE_CHARSET] (is_printable): Eliminate printable.
* setup.c [HAVE_CHARSET] (load_setup): Don't use
init_printable_table().
* charset.c (printable): Removed.
(init_printable_table): Removed.
2002-02-04 18:09:42 +00:00
Andrew V. Samoilov
4b84517072
* charsets.c (translate_character): Use ICONV_CONST.
2002-01-29 15:10:00 +00:00
Andrew V. Samoilov
1cd0a043a7
* charsets.c (load_codepages_list): Use glib memory allocation
...
functions.
(free_codepages_list) [HAVE_MAD]: New function to release
memory allocated in load_codepages_list.
* charsets.h: Declare free_codepages_list.
* main.c [HAVE_CHARSET]: Include charsets.h.
(main) [HAVE_MAD && HAVE_CHARSET]: Call free_codepages_list.
(program_name): Commented out.
2001-10-29 13:40:00 +00:00
Pavel Roskin
a8ef641beb
* x.h: Remove. Adjust all users. Make sure that global.h is
...
included instead. Don't include sys/param.h unconditionally -
rely on global.h taking care of it.
* Makefile.in: Remove x.h.
2001-09-03 05:07:40 +00:00
Pavel Roskin
849fecec4c
* charsets.c (load_codepages_list): Print a warning if
...
mc.charset cannot be opened.
* setup.c (load_setup) [HAVE_CHARSET]: Remove all popup messages
because it's to early to use them - ncurses would crash.
2001-08-16 21:01:12 +00:00
Pavel Roskin
689c3fb9ac
Replace "Can't" with "Cannot" everywhere.
2001-08-14 00:55:34 +00:00
Pavel Roskin
0177db2941
* charsets.c (load_codepages_list): Use concat_dir_and_file().
2001-08-12 03:27:27 +00:00
Pavel Roskin
2a6be49822
* charsets.c: Warning fixes.
...
* charsets.h: Likewise.
* selcodepage.c: Likewise.
* selcodepage.h: Likewise.
2001-07-31 05:54:39 +00:00
Andrew V. Samoilov
46e9007ea3
* charsets.h: Define CHARSETS_INDEX without leading LIBDIR.
...
* charsets.c (translate_character): Warning fix.
(init_translation_table): Don't deal with printable.
This one is initialized by init_printable_table ().
(load_codepages_list): Use CHARSETS_INDEX.
* selcodepage.c (do_select_codepage): Messages marked for i18n.
* setup.c (load_setup): Eliminate errbuf. Fix error message.
2001-06-07 22:36:45 +00:00
Pavel Roskin
d3b2663c2e
* charsets.c (get_codepage_index): Warning fix.
...
(init_printable_table): New function.
* charsets.h: Declare init_printable_table().
* setup.c (load_setup): Uncomment init_printable_table().
2001-06-07 20:04:03 +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
0866d8c3e0
* charsets.c: Include config.h before everything else.
...
* selcodepage.c: Likewise.
2001-05-31 23:56:27 +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