Re: [PATCH]: Locale's abbreviated month & vfs



Andrew V. Samoilov wrote:
Hello!

There are some localised ftp-servers in the wild, and their output with locale's abbreviated months confuses mc's parser.

Below is a small patch to treat such dates as Jan 1 1970.


------------------------------------------------------------------------

ChangeLog:

	* vfs.c (is_localized_month): New function for locale's
	abbreviated month name as any 3 bytes long string without digits
	and control characters.
	(vfs_parse_filedate): Fallback to is_localized_month() if
	is_month() and is_dos_date() fail and set date to Jan 1 1970.
	(vfs_parse_ls_lga): Use is_localized_month().

Commited to CVS.  What about backward search feature in the internal viewer?

--
Regards,
Andrew V. Samoilov






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]