Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15189.54454.848701.715968@jupiter.akutech-local.de> Date: Wed, 18 Jul 2001 20:25:58 +0200 From: Ralf Fassel To: egor duda Subject: Solved: Re: Umlauts on commandline and in .bat files In-Reply-To: <12810809132.20010718203318@logos-m.ru> References: <15189 DOT 27038 DOT 830962 DOT 27804 AT jupiter DOT akutech-local DOT de> <20010718130055 DOT B7388 AT cygbert DOT vinschen DOT de> <126156737787 DOT 20010718150901 AT logos-m DOT ru> <15189 DOT 31481 DOT 723686 DOT 200194 AT jupiter DOT akutech-local DOT de> <12810809132 DOT 20010718203318 AT logos-m DOT ru> Organization: Akustik Technologie Goettingen (ATG) * egor duda | Hi! Rehi! | RF> [different codepages] | RF> Octal 304 is octal 304 no matter what character set? | | it also affects input. when you type something in console window and | some program tries to read this input, what it got depends on what | codepage is currently selected. Yes, but... but I don't type anything here? The .bat file comes from disk, the bytes in the .bat are the ones I want, nevertheless cmd.exe seems to mangle it and make different bytes from it? Obviously some *very* clever input processing of cmd.exe... | RF> I'd rather change the former... :-/ | | iirc, 'chcp' command can change the former. Yup, I tried that before, but obviously not hard enough. I assumed that codepage 850 was the one I want (doc says `western european multi language'), but actually it seems to be 1252, the default ANSI code page according to some resource kit docu. If I go `chcp 1252' and then call my .bat, the output is ok (characters displayed are still weird, but...). Changing the equivalent registry entry `OEMCP' in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage to `1252', reboot, even changes the code page at cmd.exe startup, and also my `real' problem, the NutCracker shell. I don't know if this is a clever idea, but it seems to `work'. Thanks so far... R' -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/