I have that very question out to the vendor to see what platform the file
was created on prior to encrypting it.

I have seen this same behavior with ftp when you go from windows to unix or
vice versa when you don't use binary mode.

I guess I as wondering if there is some sort of switch I can use with pgp
to strip out the ^M? I know I could cat the output file to sed and strip
out the ^M but I was hoping there was something in gpg that would do this.

Randy Braun
Foot Locker Corporate Services
Office 414-357-4148
Email  [email protected]


|------------>
| From:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |David Tomaschik <[email protected]>                                   
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Randy Braun <[email protected]>                                          
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Cc:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[email protected]                                                        
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |08/02/2011 10:18 AM                                                          
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: decrypt adding ^M characters at the end of each line                     
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|





On Tue, Aug 2, 2011 at 9:55 AM, Randy Braun <[email protected]> wrote:
>
> Anyone have any ideas as to why I am seeing ^M characters at the end of
> each line after decrypting a file?
>
> I am using the following:
>
> /sftw/gnupg/bin/gpg --output /path/path/testfile.txt
> --decrypt /path/path/testfile.txt.pgp
>
> This is gnupg 1.4.10 on AIX 5.3.12.2


Was the file encrypted on another platform?  Windows, for example,
places \r\n (carriage return, newline) at the end of each line.  UNIX
OSs use just \n, and Mac OS 9 and earlier used just \r.  ^M is another
representation of the carriage return character.  (Aka \r.)

David



--
David Tomaschik, RHCE, LPIC-1
System Administrator/Open Source Advocate
OpenPGP: 0x5DEA789B
http://systemoverlord.com
[email protected]





                    Visit us on-line at footlocker.com.

The information in this e-mail, and any attachment therein, is confidential
and for use by the addressee only. If you are not the intended recipient,
please return the e-mail to the sender and delete it from your computer.
Although the Company attempts to sweep e-mail and attachments for viruses,
it does not guarantee that either are virus-free and accepts no liability
for any damage sustained as a result of viruses.


_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to