Re: [PATCH]: Locale's abbreviated month & vfs
- From: "Andrew V. Samoilov" <sav bcs zp ua>
- To: GNU Midnight Commander Development team <mc-devel gnome org>
- Subject: Re: [PATCH]: Locale's abbreviated month & vfs
- Date: Wed, 19 Feb 2003 10:40:57 +0200
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]