delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20100106T220554-749@post.gmane.org> |
References: | <4B421BD3 DOT 4040005 AT gmx DOT net> <loom DOT 20100106T220554-749 AT post DOT gmane DOT org> |
Date: | Thu, 7 Jan 2010 08:58:41 +0000 |
Message-ID: | <416096c61001070058w49625871nf63513afb89bf393@mail.gmail.com> |
Subject: | Re: Cygwin 1.7.1-1: problem with pipe to windows programs |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
2010/1/6 RH: > echo "select * from mytable" | unix2dos | sqlcmd -S server -U sa -P mypas= sword > -d myDatabase > > As you can see I'm trying to force the data hitting sqlcmd to be in dos m= ode but > somehow I suspect it is getting put into linux-mode line endings before h= itting > sqlcmd. =C2=A0The error response is "Error: Internal error at ReadTextLin= e (Reason: > Not Specified)" > > This command from an NT command shell works: > > echo "select * from mytable" | sqlcmd -S server -U sa -P mypassword -d my= Database > > My mount in /etc/fstab is text, I tried binary, that seems to not help. > > any ideas? Another thing to try might be the locale setting. Windows uses codepage numbers where Unix uses charset names, so perhaps sqlcmd is stumbling over those. In particular, try unsetting LANG. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |