Case un-sensitive filetypes
- From: Caballero Rojo <pampeano@xxxxxxxxxxxxxx>
- To: emelfm2@xxxxxxxxxxxxx
- Date: Sat, 5 Jan 2008 19:10:20 -0800 (PST)
Hi all, just a little patch in case anyone moves files from windows to
linux like me, I usually end up with some files with upper case.
I modified e2_filetype_get_default_action function in e2_filetype.c,
adding ext = g_utf8_strdown(ext,-1); before calling
g_hash_table_lookup. That converts file extention to lower case and
then goes to compare. I hope someone can tell me if I should allocate a
new gchar to get the result of that function, since regarding to the
manual, it allocates new space to return, that would make the first
reference of ext to get lost.
Hope this helps.
Keep up with emelfm2, it's the best norton commander style fm that I
found on Linux.
Best regards,
Guillermo Bonvehí
Best Regards,
Guillermo Bonvehi
AKA: Knixeur - Caballero Rojo
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
--
Users can unsubscribe from the list by sending email to
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by
logging into the web interface.
- Follow-Ups:
- Re: Case un-sensitive filetypes
- From: tpgww
Other related posts:
- » Case un-sensitive filetypes
- » Re: Case un-sensitive filetypes
- » Re: Case un-sensitive filetypes
- » Re: Case un-sensitive filetypes
- » Re: Case un-sensitive filetypes
- » Re: Case un-sensitive filetypes
- Re: Case un-sensitive filetypes
- From: tpgww