From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xi Shen Subject: Could org-babel-process-file-name support cygwin environment? Date: Mon, 6 Jun 2016 20:37:33 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9tnA-0005Dd-Rk for Emacs-orgmode@gnu.org; Mon, 06 Jun 2016 08:38:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9tn9-0002bX-Ot for Emacs-orgmode@gnu.org; Mon, 06 Jun 2016 08:38:04 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:33073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9tn9-0002ak-KJ for Emacs-orgmode@gnu.org; Mon, 06 Jun 2016 08:38:03 -0400 Received: by mail-oi0-x22c.google.com with SMTP id k23so223447072oih.0 for ; Mon, 06 Jun 2016 05:38:03 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Emacs-orgmode@gnu.org Hi, I have been using the latest version of the Emacs in cygwin environment for a long time. Recently, I want to use the sql source environment in the org-mode. But I got some error from the "osql" tool on Windows environment. I did some investigation, and I believe it is because this tool cannot handle the input and output path Emacs handled to it in Unix form. I checked the code, https://github.com/jwiegley/org-mode/blob/fdd9b18598239dd0e8b18383ac930110d51ed22e/lisp/ob-sql.el#L115, it will directly pass the path generated from "org-babel-process-file-name" to osql, but "org-babel-process-file-name" did not take cygwin environment into account neither. I think it would be very helpful if the "org-babel-process-file-name" check the cygwin environment, and map the path using the "cygpath" tool beforehand. Thanks, David