Re: [PATCH v3] grub-install: locale depends on nls

2018-04-17 Thread Daniel Kiper
On Fri, Apr 13, 2018 at 11:36:49PM +0200, Olaf Hering wrote: > 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 pre

[PATCH v3] grub-install: locale depends on nls

2018-04-13 Thread Olaf Hering
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.