From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hi-Angel Newsgroups: gmane.emacs.help Subject: =?UTF-8?Q?On_Windows=28R=29_Emacs_=C2=ABshell=C2=BB_mode_doesn=27t_prints_an?= =?UTF-8?Q?_output=2E?= Date: Thu, 25 Sep 2014 00:07:09 +0400 Message-ID: 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 1411591648 22840 80.91.229.3 (24 Sep 2014 20:47:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2014 20:47:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 24 22:47:21 2014 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 1XWtT6-00076x-Go for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Sep 2014 22:47:20 +0200 Original-Received: from localhost ([::1]:34648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWtT6-0002ke-77 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Sep 2014 16:47:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWsqL-000572-VC for help-gnu-emacs@gnu.org; Wed, 24 Sep 2014 16:07:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWsqK-0004OW-Sl for help-gnu-emacs@gnu.org; Wed, 24 Sep 2014 16:07:17 -0400 Original-Received: from mail-ob0-x234.google.com ([2607:f8b0:4003:c01::234]:55866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWsqK-0004LR-Nn for help-gnu-emacs@gnu.org; Wed, 24 Sep 2014 16:07:16 -0400 Original-Received: by mail-ob0-f180.google.com with SMTP id wn1so6766562obc.11 for ; Wed, 24 Sep 2014 13:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=jK7BVQhnJ70YaB1Fve+VoGQScPfBu9dPQj8HUHVTRaU=; b=D3i4NJeIEmzqcD171Ngh2A9ChZAk2AkSttGtMqa2/7F98NGeb5Yd8uusv/7SAlsSes Z1o07/SiHLftg3tq21dXfL7mCbGrZMmjwWs9Hehc1ABGXbYuPrz/CX+xG86SaZip6k+i whSdGHKml0GIKfEjFXoy0famqtff3Ut83Ntt+2VWbsmwPM7plkT83NrWLoGVxKesG7zv EADAr+XYjaWoTyNkh2z8nimM+V4XGl+PKYjoaf67i+JB5T+pgE3e0WVJU/NbUQAkctmN Z85e2ZQhCc6K8yz+VXZRtBY3mbsdZqR5i4YVN60F6V7zfpKZBTmr6m+HgP2kkrV0bv13 Ozog== X-Received: by 10.60.134.36 with SMTP id ph4mr9019701oeb.51.1411589229442; Wed, 24 Sep 2014 13:07:09 -0700 (PDT) Original-Received: by 10.76.75.42 with HTTP; Wed, 24 Sep 2014 13:07:09 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::234 X-Mailman-Approved-At: Wed, 24 Sep 2014 16:47:09 -0400 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:100131 Archived-At: When I am working on Windows, I am using Emacs =C2=ABshell=C2=BB mode. The problem is that it sometimes doesn't prints an applications output (more precisely prints only after the app died). The problem is present exclusively in Emacs, e.g. if I am run an application in Windows=C2=AE native terminal, it is works fine. I thought that the problem is in encoding, and set =C2=ABshell=C2=BB's buff= er with =C2=ABC-x f=C2=BB to UTF-16, which, as I know, uses MS, but it d= idn't fixed the problem. Below is a simple example of an application that won't print an output in E= macs: #include #include int main(){ puts("Hello, enter something"); char buf[256]; memset(buf, 0, sizeof(buf)); fgets(buf, sizeof(buf)-1, stdin); puts(buf); return 0; } This works fine in both GNU/Linux, and the terminal of Windows=C2=AE, but not in Emacs shell mode on Windowsor.