X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:content-type:message-id :date:message-id:mime-version; q=dns; s=default; b=eDLYmtWUkCSxT 7tEi3upPI7YW4GGp2S8iXIc/zYDfjElz8gWBlblFd+3aBRBXw50MsFrf7iI3g7E5 eBjrqyCyarlmU5BmWpLVSPR2E0Pdo0mbPIBASiJI1bcK+ef3vuEfIVoYgivkp8cg 6bASG6XBWTROVEPLtL5frIW2+HchwY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:content-type:message-id :date:message-id:mime-version; s=default; bh=/kCoaiuP8/d2Rj9e4kl EHObPkFA=; b=hAOf/AW+Fd9uWzppeNqI6cVoP7I7i8tB5vTDm/XPPukmRij+uks IOfE5tBy0jK3HpMardUA3mzh3oIao015I54Y+7+1vmKzNb8rEWNdTAgMOwh85JLN TpkG2cxC5xtHbMcuXKEEIXTYVPFlvzf85mR1Fzn9tYJgoQXuj+NQ1a7g= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=3.2 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,GARBLED_BODY,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mailout.ish.de X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Message-ID" From: Helmut Karlowski To: cygwin AT cygwin DOT com Cc: cygwin AT cygwin DOT com Subject: utf/codepage-conversion on cmd-window Content-Type: multipart/mixed; boundary="-----_MULTIPART_CBD04F7A0ECB18104A0E9CC151FC40B0_" Message-Id: 5AC96F1252A8B8C03DC3FD65665BC476 Date: Tue, 6 Oct 2015 21:01:22 +0200 Message-Id: <20151006210122.160D1A28.helmut.karlowski@ish.de> MIME-Version: 1.0 X-IsSubscribed: yes Note-from-DJ: This may be spam -------_MULTIPART_CBD04F7A0ECB18104A0E9CC151FC40B0_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit I came across a surprising behaviour when a cygwin-process prints to a windows-console. In cygwin 1.7 (XP) I don't think any conversion took place, while now in cygwin 2 (10) cygwin-utf-8 gets converted into the suitable(?) windows-encoding used in the cmd-window. I have a file containing german umlaut-characters encoded in utf-8 and cp850. When I'm in the cmd-window: C:\bat>type cmduml.txt ├û├ä├£├Â├ñ├╝├ƒ -> some cp850-characters with high-bit set ÖÄÜöäüß -> correct output C:\bat>\cygwin\bin\cat cmduml.txt ÖÄÜöäüß -> utf converted to cp850 ¦¦¦¦¦¦¦ -> ??? C:\bat>chcp Aktive Codepage: 850. It makes things easier the way it is now, but I could not find it documented. Also I wonder about cygwin's output of the cp-850-characters, I'd expect them to be printed unchanged, instead I only see grey rectangles. In the cygwin-window the file is: /c/bat|17:05:30#od -x cmduml.txt 0000000 96c3 84c3 9cc3 b6c3 a4c3 bcc3 9fc3 990a 0000020 9a8e 8494 e181 0a0d 0000030 I've also attached it. I hope all is displayed correctly, but it should be easy to reproduce. -Helmut -------_MULTIPART_CBD04F7A0ECB18104A0E9CC151FC40B0_ Content-Type: application/octet-stream Content-Disposition: attachment; filename="cmduml.txt" Content-Transfer-Encoding: base64 w5bDhMOcw7bDpMO8w58KmY6alISB4Q0K -------_MULTIPART_CBD04F7A0ECB18104A0E9CC151FC40B0_ Content-Type: text/plain; charset=us-ascii -- 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 -------_MULTIPART_CBD04F7A0ECB18104A0E9CC151FC40B0_--