Octave is a great tool, and it’s free. To get it running smoothly on your computer you may need to do some basic tuning, which we described in an earlier article.
The following article describes how to get rid of a fontconfig warning.
Using Octave in OS X, you may get a warning like this when running scripts:
Fontconfig warning: ignoring UTF-8: not a valid region tag(30)
These are the steps to remove the warning:
1. Open a terminal window and type: which octave
2. Press ENTER.
OS X will now return the path to the directory where octave is started from. It will perhaps look like this: /usr/local/bin/octave
3. Open a text editor, for example TextWrangler, create a new file and paste the following code in the file:
# Replace the following line with the result in step 3 (where your octave is located)
4. Replace the last line with the result in step 3 as the code indicates above.
5. Save the file on the Desktop and call it octaveFixed.command
6. In the terminal window, type: cd ~/Desktop/
7. Press ENTER.
8. In the terminal window, type: chmod a+x octaveFixed.command
9. Press ENTER.
10. Double-click the octaveFixed.command file and it will set the character encoding and start Octave. Now it’s possible to try the script that earlier resulted in the fontconfig warning. The warning should not display again.