Olaf Hering 3d8439da8c grub-install: Locale depends on nls
With --disable-nls no locales exist.

Avoid runtime error by moving code that copies locales into its own
function. Return early in case nls was disabled. That way the compiler
will throw away unreachable code, no need to put preprocessor
conditionals everywhere to avoid warnings about unused code.

Fix memleak by freeing srcf and dstf.
Convert tabs to spaces in moved code.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2018-04-23 13:13:11 +02:00
..
2010-09-15 14:46:53 +02:00
2013-12-21 13:47:27 +01:00
2015-03-04 01:00:19 +01:00
2017-08-07 18:08:39 +02:00
2016-01-16 21:47:28 +03:00
2013-11-07 06:35:50 +01:00
2015-03-04 01:00:19 +01:00