[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#382983: d-i beta3 on SGI Indigo2 (IP22)



> Some strings in the list of languages aren't displayed properly, which
> means the installation probably can't be done using the affected
> languages.


Indeed, the code in localechooser that decides to display one or
another set of languages is pretty incomplete. It decides this based
on assumptions about the display but these are probably incomplete:

Suggestions to enhance this are very welcome, Mr President..:-)

# Find the display level
#
# No framebuffer and text interface      -->level 0 (only ASCII)
# No framebuffer and other interface     -->level 1 (only Latin1)
# Framebuffer and non graphical interface-->level 2 and 3 (no combining langs)
# Framebuffer and graphical interface    -->level 4 (all langs)
# Depending on these values, we use different templates with a different
# list of languages. These lists are built at the package build-time
# from the contents of the second field of languagelist entries
#
# We do this only when the language was not preseeded
# If the language was preseeded, we assume the user was 
# smart enough to preseed it to a supported value
# so the template uses all possible values
if [ -z "$LANGNAME" ] ; then
	#log "Frontend in use: $DEBIAN_FRONTEND"
	case $DEBIAN_FRONTEND in
	    text)
		# Stricto-sensu, the text interface could use all languages
		# but it will most often be used in situation where the display
		# is "poor", so let's assume that only ASCII languages may be 
		# displayed, then
		template=${langname_ascii}
		;;
	    gtk)
		# We assume that the GTK interface handles all languages
		template=${langname_all}
		;;
	    *)
		# Only keep Latin1 languages if we don't have the framebuffer
		db_get debian-installer/framebuffer || true
		if [ "$RET" = "false" -o -z "$RET" ] ; then
			template=${langname_latin}
		else
			template=${langname_fb}
		fi
		# Try to detect serial consoles
		[ -f /lib/debian-installer/detect-console ] && . /lib/debian-installer/detect-console
		if [ "${TERM_TYPE}" = "serial" ] ; then
			template=${langname_ascii}	    
		fi
		# For cases we have a dumb terminal, we're stuck with ASCII
		if [ "${TERM}" = "dumb" ] ; then
			template=${langname_ascii}	    
		fi
		;;
	esac
else
	template=${langname_all}
fi

Attachment: signature.asc
Description: Digital signature


Reply to: