Use the command "aptitude install tofrodos" to install dos2unix. This command get the file and clear the "^M".
Regards, Rodrigo Lang. 2010/8/25 Zeeshan Zakaria <[email protected]> > Actually I have found the problem, and leanred some new stuff along with > it. > > Apparently all Linux files have a mime type information stored in them, > which can be checked using command: > > file -i <filename> > > For my extensions.ael, which I copied from a different server, the mime > type is 'text/x-c' whereas all the other files have mime type 'text/plain'. > Now if I create a new file extemsions.maelstrom on this machine which is by > default 'text/plain', there are no errors on doing 'ael reload', however > using extensions.maelstrom with mime type 'text/x-c' gives errors, though > the code works fine. > > How it got mime type 'text/x-c' on the other machine, Vim which I use there > assigned it this mime type. I'll have to fix it there. > > Now I am trying to figure out how to convert between mime types. A simpler > solution is to just copy text to a new file, but would be nice to do a > proper conversion. > > Zeeshan A Zakaria > > -- > www.ilovetovoip.com > > On 2010-08-25 12:01 PM, "Watkins, Bradley" <[email protected]> > wrote: > > > > ------------------------------ > > > From: [email protected] [mailto: > [email protected]] On B... > *Sent:* Wednesday, August 25, 2010 11:43 AM > > > To: Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* Re: [asterisk-users] AEL - what is error: ael.flex:647 > ael_yylex:Unhandled char(s): > > That's what I understood too from this one and probably only related google > search result, but even ... > > Is there any chance that these files were edited on a Windows machine and > then copied back to the Asterisk boxes? That is, are there some nefarious > ^m characters hiding in there? > > > > Regards, > > - Brad > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- Rodrigo Lang http://rodrigorecipes.blogspot.com/<http://rodrigorecipes.blogspot.com/2010/08/ssh-rapido-e-pratico.html>
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
