From: Jean-Philippe Lang Date: Thu, 12 Mar 2009 18:11:44 +0000 (+0000) Subject: Flush buffer when asking for language (#2948). X-Git-Tag: 0.9.0~587 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b622e0f8ce685e0c061f3391513dde875bcd54ed;p=redmine.git Flush buffer when asking for language (#2948). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2573 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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)