Windows editor destroys gpg.conf
Tristan Santore
tristan.santore at internexusconnect.net
Wed Jan 15 16:16:57 CET 2014
On 15/01/14 13:33, Jerry wrote:
> On Wed, 15 Jan 2014 14:02:12 +0100, Hauke Laging stated:
>
>> Hello,
>>
>> when I help Windows users create keys then my script converts the
>> Linux version of gpg.conf (after some editing) to the Windows line
>> endings. This works.
>>
>> But if I edit the file with the Windows editor (unfortunately I have
>> forgotten the Windows version) then gpg crashes with an error message
>> like "error in gpg.conf:1". I have experienced that several times in
>> the past already.
>>
>> Unfortunately I both don't have Windows at home and have forgotten to
>> make a copy of the damaged file so that I cannot have a look at it.
>>
>> A wild guess is that the editor adds a UTF-8 BOM at the beginning of
>> the file (but that wouldn't affect XP, would it?).
>>
>> Two concerns:
>>
>> 1) Does anyone know what the problem is and/or whether I can avoid it
>> by using another program which is part of Windows (or widely used)?
>>
>> 2) Would it make sense to make gpg work with such config files...? 8-)
>
> Personally, I use "PSPad" to edit files from different OSs on a Window's
> machine. <http://www.pspad.com>. It can save in several different
> formats and styles. Plus, it is free.
>
unix2dos and dos2unix are your friends.
Regards,
Tristan
--
Tristan Santore BSc MBCS
TS4523-RIPE
Network and Infrastructure Operations
InterNexusConnect
Mobile +44-78-55069812
Tristan.Santore at internexusconnect.net
Former Thawte Notary
(Please note: Thawte has closed its WoT programme down,
and I am therefore no longer able to accredit trust)
For Fedora related issues, please email me at:
TSantore at fedoraproject.org
More information about the Gnupg-users
mailing list