I have a string in a buffer "THIS_IS_A_TEST" (the quotes are part of the string).
I want to turn this in to "ThisIsATest". I'm attempting to do this using a query-replace-regexp where I substitute \(\w+\)_? with \,(capitalize \1). However, the upcased words are not being capitalized.
Running M-c (capitalize-word) on any of those words works fine, and if my test string is changed to "this_is_a_test", then I get the desired result ("ThisIsATest").
What's going wrong? Is this a bug in capitalize?
(Note that this still happens without an init file loaded)