Article View: news.software.readers
Article #147910Re: [slrn] Compile - using Cygwin - for Windows
From: Alejandro López-Valencia
Date: Sun, 09 May 2004 17:19
Date: Sun, 09 May 2004 17:19
46 lines
3730 bytes
3730 bytes
On 2004-05-09, Lars Stokholm wrote in <2004.04.09.16.28.51$n.s.r@stokholm.dyndns.dk>:
> * Alejandro López-Valencia wrote:
>> Strange, I use aspell myself, but I'm using a little script
>> (vimspell) that sets all the correct flags behind the scenes
>> and does real-time spell-checking on the editing buffer (that
>> is, I cheat :-).
>
> Yes, it is strange. I don't know a lot about all these charsets
> (in fact very little). When I create a text-file with Notepad and
> run it through aspell, special characters are messed up - and
> naturally they're not any less messed up when the edited file is
> finally saved. If I - on the other hand - with 'edit' (in a DOS
> environment) create a file with special characters, aspell sees
> them correctly, but when the spell checking is over and the file
> is saved, special characters die.
Ahh! Of course! DOS and Windows use different character sets. When you
type chcp in a system console you'll notice it says 'cp850' (using a
Western Europe language and assuming you are using a recent Windows NT
system :-), this is different to the character set used by Windows
itself, that's cp1252. There are enough differences among the two
charsets to have data corruption in the high ASCII range. Now, if you
use a different console program (say the rxvt that comes with MSYS),
you'll have better luck.
> With slrn, aspell acts like with Notepad, because of this line:
> 'set editor_uses_mime_charset 1' (I guess) in slrnrc.
Yes, because slrn overrides the console and cooks I/O using the Win32
API. Although it is a CLI application, it is a true Windows application.
Unfortunately, aspell doesn't do that.
> I've looked through the command line arguments to apell, but I
> can't find anything that might help me.
I've been playing aspell by ear but I know the manual is somewhere in
my Cygwin directories. Let's see... Hmm... You want to read chapter 7 in
the manual. cp1252 works because it is an extended version of the
ISO-8859-1 charset.
--
Alejandro López-Valencia
qenqhy ng rgo qbg arg qbg pb
http://dradul.tripod.com/
The limits of my language are the limits of my world.
(L. Wittgenstein)
Technical Details
Message-ID:
<2g77hjF52m6hU1@uni-berlin.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!amsnews01.chello.com!news2.euro.net!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<slrnc9q9i1.1jo.lars@stokholm.dyndns.dk> <2g4qu6F4g0jdU1@uni-berlin.de> <slrnc9qf3i.1h0.lars@stokholm.dyndns.dk> <slrnc9qg3g.1ao.lars@stokholm.dyndns.dk> <slrnc9qjfk.tk.lars@stokholm.dyndns.dk> <2g58udF4j94lU3@uni-berlin.de> <2004.04.09.09.19.31_n.s.r@stokholm.dyndns.dk> <2g6k5cF4u4kgU1@uni-berlin.de> <2004.04.09.13.24.35$n.s.r@stokholm.dyndns.dk> <2g717nF50tq1U1@uni-berlin.de> <2004.04.09.16.28.51$n.s.r@stokholm.dyndns.dk>Show Full Headers
Complete Article Headers
Message-ID: <2g77hjF52m6hU1@uni-berlin.de> Subject: Re: [slrn] Compile - using Cygwin - for Windows Date: Sun, 09 May 2004 17:19:50 +0000 From: Alejandro López-Valencia <me@privacy.net> References: <slrnc9q9i1.1jo.lars@stokholm.dyndns.dk> <2g4qu6F4g0jdU1@uni-berlin.de> <slrnc9qf3i.1h0.lars@stokholm.dyndns.dk> <slrnc9qg3g.1ao.lars@stokholm.dyndns.dk> <slrnc9qjfk.tk.lars@stokholm.dyndns.dk> <2g58udF4j94lU3@uni-berlin.de> <2004.04.09.09.19.31_n.s.r@stokholm.dyndns.dk> <2g6k5cF4u4kgU1@uni-berlin.de> <2004.04.09.13.24.35$n.s.r@stokholm.dyndns.dk> <2g717nF50tq1U1@uni-berlin.de> <2004.04.09.16.28.51$n.s.r@stokholm.dyndns.dk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!amsnews01.chello.com!news2.euro.net!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!not-for-mail Newsgroups: news.software.readers Organization: Individual.net, usenet for the rest of us. Lines: 46 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: http://news.individual.net/abuse.html X-Trace: news.uni-berlin.de z3YVjjltNiL5WHQtwi/yUgeuMncwl/+1tqZ9k4DxobTIrRjH8= Mail-Copies-To: nobody User-Agent: slrn/0.9.8.0-jwk4 (CYGWIN_NT-5.0)