mirror of
				https://github.com/brain-hackers/brain-config.git
				synced 2025-11-04 22:48:38 +09:00 
			
		
		
		
	Make nonint do_change_locale work with encoding field as well (#167)
This commit is contained in:
		@@ -492,7 +492,7 @@ do_change_locale() {
 | 
			
		||||
    dpkg-reconfigure locales
 | 
			
		||||
  else
 | 
			
		||||
    local LOCALE="$1"
 | 
			
		||||
    if ! LOCALE_LINE="$(grep "^$LOCALE " /usr/share/i18n/SUPPORTED)"; then
 | 
			
		||||
    if ! LOCALE_LINE="$(grep -E "^$LOCALE( |$)" /usr/share/i18n/SUPPORTED)"; then
 | 
			
		||||
      return 1
 | 
			
		||||
    fi
 | 
			
		||||
    local ENCODING="$(echo $LOCALE_LINE | cut -f2 -d " ")"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user