From b622e0f8ce685e0c061f3391513dde875bcd54ed Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 12 Mar 2009 18:11:44 +0000 Subject: [PATCH] Flush buffer when asking for language (#2948). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2573 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/load_default_data.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/load_default_data.rake b/lib/tasks/load_default_data.rake index 4179b9db3..c213ad79e 100644 --- a/lib/tasks/load_default_data.rake +++ b/lib/tasks/load_default_data.rake @@ -10,6 +10,7 @@ namespace :redmine do print "Select language: " print valid_languages.collect(&:to_s).sort.join(", ") print " [#{current_language}] " + STDOUT.flush lang = STDIN.gets.chomp! break if lang.empty? break if set_language_if_valid(lang)