delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SARE_FREE_WEBM_RuMail,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <29604628.post@talk.nabble.com> |
Date: | Thu, 2 Sep 2010 06:54:56 -0700 (PDT) |
From: | rPman <rPman AT mail DOT ru> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: scp and cygwin randomly and automatically converts text files from utf-8 to windows encoding (cp1251) |
In-Reply-To: | <AANLkTi=cjFc_HdDucOw-9Rte3_sPwU_f==k30M4BBUSy@mail.gmail.com> |
MIME-Version: | 1.0 |
References: | <29586716 DOT post AT talk DOT nabble DOT com> <AANLkTi=cjFc_HdDucOw-9Rte3_sPwU_f==k30M4BBUSy AT mail DOT gmail 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 |
I found the reason - it is the combination Far2 and plug-in "Call Command". I use this plugin for run commands to synchronize the current list of editable files to the server with ssh, it is clear that both rsync and scp to copy files already modified encoding. While running from command plug-in "Call Command" current edited file from utf-8 automatically converted (and stored on disk) in encoding cp1251, and to complete the re-encoded back. Perhaps this feature of the implementation of unicode in Far2, but it was very difficult to expect such behavior from these applications. Sorry, that turned up the wrong. Thanks. Andy Koppe wrote: > > On 31 August 2010 20:23, rPman wrote: >> It happens when files are copied from cygwin windows machines to any >> linux >> (tried different versions of ubuntu and gentoo with utf-8 locale). > > Cygwin does not change the encoding of file content when copying > files. Cygwin 1.7 does translate file names between the UTF-16 > encoding used by Windows and the encoding you have configured in > Cygwin via the LC_ALL, LC_CTYPE or LANG variables. > > Please try to desribe in more detail what you were trying to do and > how it went wrong. Also, what version of Cygwin are you using? > > >> As it is not possible to understand in what cases are re-encoding, >> sometimes >> enough to add one blank line in a text file that, when the transfer >> encoding >> has not happened. Just changing the format of a newline (in the source >> files >> are unix-style \n, but on the linux machine has come to win-style \r\n) > > Line endings are a separate issue from character encodings. By > default, directories are mounted in binary mode, where file content is > left alone. Alternatively, they can be mounted in text mode, were line > endings are automatically translated between Windows and Unix style. > See http://www.cygwin.com/cygwin-ug-net/using-textbinary.html for lots > more on that. > > 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 > > > -- View this message in context: http://old.nabble.com/scp-and-cygwin-randomly-and-automatically-converts-text-files-from-utf-8-to-windows-encoding-%28cp1251%29-tp29586716p29604628.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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 |