davidmroth / Extract-Kernel-Initramfs

Script used to extract initramfs. Developed for the Galaxy Tab, but may work for other kernels
47 stars 34 forks source link

Doesn't work in UTF-8 locales #1

Open ian-abbott opened 9 years ago

ian-abbott commented 9 years ago

The calls to grep in the script do not find the byte sequences in a UTF-8 locale as the zImage file gets treated as a text file in the current locale. A workaround is to run the script in the C (or POSIX) locale. A fix is to prepend LANG=C to the grep commands in the script.

davidmroth commented 9 years ago

Thank you for the feedback @ian-abbott! If you have a suggestion on how to incorporate this fix, please provide it via a pull request, or replying to this thread with a patch.

Best Regards, David Roth