Ticket #2831 (closed defect: invalid)

Opened 12 years ago

Last modified 7 years ago

ini file grows to excessive size with blank lines

Reported by: guido Owned by:
Priority: minor Milestone:
Component: mc-core Version: 4.8.3
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Upon every exit from mc, the ini config file adds several blank lines between sections. If not corrected, it grows to thousands of lines. Performance is NOT affected. I use a sed script to fix it, but, that should NOT be needed. (sed -i '/$/d;/\[/{x;p;x;}' ini). This is occurring even when there are NO changes to the setup. Clearly not an important bug. But, could it get fixed in some future release?
NB: It happens even when auto-save=setup is disabled

Attachments

ini0 (4.0 KB) - added by guido 12 years ago.
ini1 (4.0 KB) - added by guido 12 years ago.

Change History

comment:1 follow-up: ↓ 2 Changed 12 years ago by andrew_b

Cannot confirm.

First at all, show the output of mc -V. What version of glib you use?

Version 0, edited 12 years ago by andrew_b (next)

comment:2 in reply to: ↑ 1 ; follow-up: ↓ 4 Changed 12 years ago by guido

Replying to andrew_b:

Cannot confirm.

First of all, show the output of mc -V. What version of glib you use?

GNU Midnight Commander 4.8.3
Built with GLib 2.28.6
Using the ncurses library
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With multiple codepages support
Virtual File Systems: ftpfs
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;

Changed 12 years ago by guido

Changed 12 years ago by guido

comment:3 Changed 12 years ago by guido

ini1 has a few more lines than ini0. ini0 is the start ini; ini1 is after just 1 exit with auto-save on.

comment:4 in reply to: ↑ 2 Changed 12 years ago by andrew_b

Replying to guido:

Built with GLib 2.28.6

What glib do you use in runtime?

comment:5 Changed 12 years ago by andrew_b

  • Status changed from new to closed
  • Resolution set to invalid

comment:6 Changed 7 years ago by andrew_b

  • Milestone Future Releases deleted
Note: See TracTickets for help on using tickets.