Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'read.': 0.03; 'encoding': 0.05; 'interpreter': 0.05; 'output': 0.05; 'widely': 0.05; 'encouraging': 0.07; 'variables': 0.07; '"c"': 0.09; 'executable': 0.09; 'get.': 0.09; 'locale': 0.09; 'separately': 0.09; 'subject:characters': 0.09; 'windows,': 0.09; 'works.': 0.09; 'python': 0.11; 'assume': 0.14; 'suggest': 0.14; 'windows': 0.15; 'cli': 0.16; 'encodings': 0.16; 'presume': 0.16; 'reasonably': 0.16; 'roi': 0.16; 'stdout': 0.16; 'subject:Unicode': 0.16; 'tends': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'else,': 0.19; 'written': 0.21; 'seems': 0.21; 'command': 0.22; 'tests': 0.22; 'install': 0.23; 'header :User-Agent:1': 0.23; 'certainly': 0.24; 'specify': 0.24; 'subject:problem': 0.24; 'unicode': 0.24; '(or': 0.24; 'environment': 0.24; 'question': 0.24; 'source': 0.25; 'push': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'idea': 0.28; 'characters': 0.30; 'said,': 0.30; 'work.': 0.31; 'gives': 0.31; 'code': 0.31; 'page.': 0.31; 'that.': 0.31; 'dialog': 0.31; 'font': 0.31; 'subject:some': 0.31; 'file': 0.32; 'figure': 0.32; 'run': 0.32; 'another': 0.32; 'open': 0.33; 'worked': 0.33; 'comment': 0.34; 'maybe': 0.34; 'problem': 0.35; 'subject:with': 0.35; 'advice': 0.35; 'display': 0.35; 'tool': 0.35; 'but': 0.35; 'edge': 0.36; 'executing': 0.36; 'doing': 0.36; 'similar': 0.36; 'detail': 0.37; 'application': 0.37; 'so,': 0.37; 'clear': 0.37; 'configured': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'does': 0.39; 'environment.': 0.39; 'launch': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'users': 0.40; 'how': 0.40; 'free': 0.61; 'new': 0.61; 'course': 0.61; 'simply': 0.61; 'save': 0.62; 'grab': 0.64; 'provide': 0.64; 'more': 0.64; 'within': 0.65; 'side': 0.67; 'biggest': 0.67; 'realized': 0.68; 'default': 0.69; 'power': 0.76; '"just': 0.84; 'characters,': 0.84; 'clearer': 0.84; 'console,': 0.84; 'glenn': 0.84; 'snatch': 0.84; 'start.': 0.84; 'unclear': 0.84; 'graphical': 0.91; 'obtained': 0.96 Date: Mon, 4 Aug 2014 05:33:22 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Subject: Re: cmd.exe on WIndows - problem with displaying some Unicode characters References: <53DEC4F5.8090805@my.hennepintech.edu> <53DED137.7080907@g.nevcal.com> <53DF08B4.20600@g.nevcal.com> <53DF14DF.3090504@my.hennepintech.edu> <53DF5665.9050408@g.nevcal.com> In-Reply-To: <53DF5665.9050408@g.nevcal.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:2:4780:2fd:e806:9aa:f68a:db81] X-ClientProxiedBy: BN3PR0301CA0020.namprd03.prod.outlook.com (25.160.180.158) To BY1PR0301MB0837.namprd03.prod.outlook.com (25.160.193.143) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0293D40691 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(199002)(189002)(24454002)(83322001)(74502001)(74662001)(105586002)(106356001)(86362001)(42186005)(50986999)(102836001)(31966008)(33656002)(77982001)(76482001)(107886001)(47776003)(88552001)(99396002)(107046002)(76176999)(85306004)(101416001)(93886004)(46102001)(65816999)(79102001)(83506001)(64706001)(21056001)(89122001)(81542001)(110136001)(75432001)(83072002)(80022001)(87976001)(4396001)(81342001)(95666004)(92566001)(23676002)(65956001)(54356999)(92726001)(50466002)(77096002)(20776003)(2351001)(85852003)(64126003)(3826002); DIR:OUT; SFP:; SCL:1; SRVR:BY1PR0301MB0837; H:[IPv6:2601:2:4780:2fd:e806:9aa:f68a:db81]; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; X-OriginatorOrg: my.hennepintech.edu X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407148423 news.xs4all.nl 2913 [2001:888:2000:d::a6]:36608 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75681 On 2014.08.04 04:46, Glenn Linderman wrote: > How does one "directly run" another application using ConEmu? That wasn't clear > from what I found to read. It sounded like you run ConEmu, run one or more > shells within it, and launch programs from those shells? And so it was also > unclear if a program launched from some batch file would have to have the batch > file launched from ConEmu, also. Or does ConEmu grab the execution association > for batch files to make that work more automatically? When you open a new console, the dialog will ask you to supply a path to an executable you want to run. Any arbitrary CLI application will work. I don't understand your question about batch files. If you mean to ask if ConEmu will snatch a console opened by executing a batch file outside of ConEmu, yes, it can do that. I highly suggest actually using the program and doing some tests of your own to see how it works. >> ConEmu can use any arbitrary font available on the system. As I have >> said, I have been able to display Unicode output on it from an application >> written in Python. No mojibake, no replacement characters, just the exact >> characters one would expect. >> I do not know the internals of ConEmu and how it interacts with conhost and >> whatever else, but I have not found a need to since it has just worked for me. > So you may not know the internals of ConEmu, but I presume you know the > internals of your Python applications. What encodings do you use for stdout for > those applications? Do you set up the Python environment variables that specify > some particular encoding, in the ConEmu environment (or does it)? Because the > default Python IO encoding in Windows seems to be obtained from the configured > code page. I use UTF-8. Open the Python interpreter directly in ConEmu and see what you get. > Of course the biggest problem with much free and open source software is the > documentation; I wasn't able to find specific answers to all my questions by > reading the ConEmu wiki. Maybe some of it would be clearer if I installed it, > and your "just worked" comment is certainly encouraging me to "just try it", > but while trying it may help me figure it out, adding another package to > separately install for my users gives more complexity. See if you can push me > over the edge :) It certainly would make things much clearer if you were to actually use the program. Documentation tends to assume (and reasonably so, IMO) that you intend to do some hands-on learning. I can give no advice on deploying this to your users other than to say ConEmu works well as a tool for command line power users on Windows, but does not provide much ROI when it is simply an implementation detail for a single program. If you want to save your users the hassle, I would definitely recommend a graphical environment. If I had realized that you intended your application to be widely deployed, I would have simply recommended that from the start. On a side note, you would have run into similar issues on *nix systems where a significant amount of your users would be using the "C" locale and have no idea what it is, why it causes them problems, or how to change it.