Search the Community
Showing results for tags 'maverick'.
Hello, I've just started to write Alfred workflow in Ruby with Zhaohai's workflow https://github.com/zhaocai/alfred-workflow My workflow is pretty simple, it converts the inputted units using the gem 'ruby-units' When I test the script in the terminal, it returns valid output for Alfred: >> /usr/bin/ruby main.rb 10 cm in m <items><item arg='copy=0.1' uid='' valid='yes'><title>0.1</title><subtitle>Copy to clipboard.</subtitle><icon>icon.png</icon></item></items> However, when running in Alfred, it only shows the fallback
Upgrade to maverick today and notice many of the scripts including some standard ruby gems raise exceptions. After a few hours debugging, the root cause identified is the encoding. Now the default is not utf-8. output from `locale` is LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL=