From ripley at stats.ox.ac.uk  Thu Feb 14 21:51:07 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 14 Feb 2008 20:51:07 +0000 (GMT)
Subject: [Rd] Small encoding question
In-Reply-To: <0137C480-C423-49B8-824D-40A71469442B@r-project.org>
References: <600C44D2-A4F2-4997-BD51-DCC1AFB9DCB0@act.ulaval.ca>
	<18356.39495.201156.757047@fangorn.hornik.net>
	<0137C480-C423-49B8-824D-40A71469442B@r-project.org>
Message-ID: <alpine.LFD.1.00.0802142048010.27234@gannet.stats.ox.ac.uk>

On Thu, 14 Feb 2008, Simon Urbanek wrote:

>
> On Feb 14, 2008, at 2:45 PM, Kurt Hornik wrote:
>
>>>>>>> Vincent Goulet writes:
>>
>>> Dear developeRs,
>>> Compilation of the latest version (0.9-5) of my actuar package fails
>>> with r-release MacOS_X ix86 on CRAN; see
>>
>>> 	http://www.R-project.org/nosvn/R.check/r-release-macosx-ix86/actuar-00check.html
>>
>>> All errors come from accented letters in comments in latin-1 encoded
>>> files (except hierarc.R which is in UTF-8, my bad). Encoding is
>>> declared as latin-1 in DESCRIPTION.
>>
>>> The package checks and compiles fine on Windows, Linux and,
>>> ironically, my MacOS X main development machine. I realize using non-
>>> ASCII characters in source files is not a good idea and I removed
>>> them, but I would appreciate any clue as to what went wrong with the
>>> compilation on CRAN.
>>
>> I assume that the MacOS X builds are done in a C locale?

That was my first thought, but it worked in a C locale for me, even on Mac 
OS X.  But then we know there are C locales and C locales ....

I think R-devel is somewhat less prone to such issues, and it was R-devel 
I checked.

> Yes - but isn't this very similar to the problem we have been talking
> about a while back? The check analyses were reporting an error
> although the code was fine (I think it boiled down to text connection
> I/O in the check scripts failing mysteriously due to the fact that it
> was using the wrong encoding) I'll have to check later today ...
>
> Cheers,
> S
>
>
>>
>>> FWIW,
>>
>>>> sessionInfo()
>>> R version 2.6.2 (2008-02-08)
>>> i386-apple-darwin8.10.1
>>
>>> locale:
>>> fr_CA.UTF-8/fr_CA.UTF-8/fr_CA.UTF-8/C/fr_CA.UTF-8/fr_CA.UTF-8
>>
>>> attached base packages:
>>> [1] stats     utils     datasets  grDevices graphics  methods   base
>>
>>> other attached packages:
>>> [1] CarbonEL_0.1-4
>>
>>> loaded via a namespace (and not attached):
>>> [1] tools_2.6.2
>>
>>> Thanks in advance!
>>
>>> ---
>>>   Vincent Goulet, Associate Professor
>>>   ?cole d'actuariat
>>>   Universit? Laval, Qu?bec
>>>   Vincent.Goulet at act.ulaval.ca   http://vgoulet.act.ulaval.ca
>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] Small encoding question
Prof Brian Ripley