Hi Eric,
Setting this variable manually from the command line with the following fixes this problem for me. emacs --batch --eval "(progn (add-to-list 'load-path \"~/src/org-mode/lisp\") (require 'org) (add-to-list 'load-path \"~/src/org-mode/contrib/lisp\")(require 'htmlize) (setq c-standard-font-lock-fontify-region-function 'font-lock-default-fontify-region))" --visit /tmp/cpp-test.org --funcall org-html-export-to-html
This works for me. I will use it until emacs trunk will become official release. Many thanks to both of you,
Cheers, Xavier --