delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <im5n9b$qmo$1@dough.gmane.org> |
References: | <im5n9b$qmo$1 AT dough DOT gmane DOT org> |
Date: | Mon, 21 Mar 2011 12:52:25 +0000 |
Message-ID: | <AANLkTikEhnZGrtqu8jPQj2VLKN77fTtE6v-JA1uo+bV5@mail.gmail.com> |
Subject: | Re: How to determine actual character set |
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 |
On 20 March 2011 20:15, Matthias Meyer wrote: > I use cygwin 1.7.5 and run backups from Windoze to my Linux server by usi= ng > BackupPC. > I want to set the windows character set within the backuppc configuration > for preventing me from this filename renamings (e.g. the german "=C3=BC" = will be > replaced by "?") > > But how to determine the windows character set? The "Windows character set", if there is such a thing, is UTF-16. That's how files are encoded on disk with NTFS, and a backup program better supports that. > chcp will only deliver the code page (850 in one of my clients). That's the console code page, which is set to the system's "OEM" code page by default. These are the old DOS code pages. > But I need something like "cp1252" By which I guess you mean the system "ANSI" code page. > Is there a program within cygwin which would resolve my pain ;-) Not that I know of, but writing one is trivial: #include <windows.h> #include <stdio.h> int main(void) { printf("%u\n", GetACP()); return 0; } 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 |