From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: FTP to MS ftp server Date: Thu, 4 Apr 2013 13:20:40 +0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1365056472 26160 80.91.229.3 (4 Apr 2013 06:21:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 06:21:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Guido Van Hoecke Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 08:21:40 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UNdYJ-00066m-Sl for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 08:21:39 +0200 Original-Received: from localhost ([::1]:58706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNdXv-0007LE-1Z for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 02:21:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNdXX-0007Jm-7C for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 02:21:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNdXO-0005Ok-1N for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 02:20:51 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:56225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNdXN-0005OX-Pt for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 02:20:41 -0400 Original-Received: by mail-lb0-f169.google.com with SMTP id p11so2361135lbi.28 for ; Wed, 03 Apr 2013 23:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IgL5aMVbqFLWXdYiGYotZukN3hU3iGTladsFG9CqHVA=; b=nHsMASU9jLJKQnNyVFQnzCDDb958CvZz+2T9/OIMRwLZg7lcRPHhgGZ1pt2DWig0FP AtuwrmGQ6i8sIYwDY0fk2kLmlMc4AK26VD2pDDLLcQt+q+gAD9tu0ozR+ZMkYrjf8ZDd Z2j879E5Qqzj0EWo0XuraIEOP4SMkS6kzjM48WMFF9sK48FtdTBuhmwHkF6Ho/Gx4muz hTpSljuP6uILA1QotU91/OY6DLYy/uRbvt5yXZz+98e4XMqWnVx10QZnvzK91qsheCiY jaMvR/nYwN95H1A7CkgE8iWb6Os88l9cGAETJcIq52Lp+6ViDhGoHoXkhtlnSZnD3fZr 0MVw== X-Received: by 10.112.98.227 with SMTP id el3mr2573571lbb.131.1365056440673; Wed, 03 Apr 2013 23:20:40 -0700 (PDT) Original-Received: by 10.114.74.226 with HTTP; Wed, 3 Apr 2013 23:20:40 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: m9j3-TqzqTVbih9RgfkbpEw_uwk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89970 Archived-At: On Wed, Apr 3, 2013 at 10:54 PM, Guido Van Hoecke wrote: > As far as I know, there's only one MS-DOS format, and luckily, it is > occurring less frequently that the UNIX format. There is not only one DOS format. DOS versions earlier than Windows 95 had no notion of long file names, and so their listings displayed the file names in the leftmost column; with long file names, the file names moved to the right. Also, the sizes come separated with the locale-specific thousand (or, rather, digit group) separator, which can vary considerably. The dates and times are formatted in the locale-specific formats, with their associated component orders, digit counts and separators. In the case of Windows, the locale that is used is most often the one that the system was initially installed with; it bears strong correlation with the country of deployment because of pricing policies. UNIX listings also have these locale-related problems, with an added twist that the UNIX listing sometimes conserves space by showing either modification time or the modification year. This variability is what makes human-oriented listings ultimately unparseable in the general case. > Microsoft explains how > users of their servers can choose either format: > http://www.iis.net/configreference/system.applicationhost/sites/sitedefau= lts/ftpserver/directorybrowse So have you tried convincing the administrators of servers you need to work with to switch to the UNIX format? > So again, I would be happy if Emacs would grok this MS-DOS format. I am not very well versed in Emacs=E2=80=99s implementation of FTP; a curso= ry reading suggests that it is handled by the ange-ftp module which has code to deal with VMS, MTS, CMS and BS2000 listings. You might be able to implement DOS listing parsing (or have it implemented for you) by following those as examples. In case you are not doing it yourself, you will need to provide the implementor with access to a suitable server. (I certainly won=E2=80=99t undertake such a task, as it=E2=80=99s my deep b= elief that parsing human-readable FTP listings is a dirty hack and the only proper way is to use the MLSD command and persuade everybody to replace their old servers with those that implement MLSD. Better yet, drop FTP altogether in favor of a protocol originally designed for machines, not humans.)