Here's what to do:
- Control-click on Safari in the Finder and select Show Package Contents from the pop-up menu.
- Navigate into the Contents » MacOS folder, and make a copy of the Safari file you find there. This is your backup in case anything goes wrong.
- Open the Safari file in MacOS with TextEdit. It will mainly look like a bunch of gibberish.
- Press Command-F to bring up the Find dialog, and then find this string: http://%@.google.com/%@?q=%@&ie=UTF-8&oe=UTF-8.
- Change that string to http://%@.google.co.uk/%@?q=%@&=UTF-8&oe=UTF-8. Note there are two changes here: .com to .co.uk (which adds two characters) and ie=UTF to =UTF (which removes two characters). The new string must be exactly the same length as the old or Safari will not work!
- Save your changes, close the file in TextEdit, and launch Safari.
[robg adds: Occasional hints editor Kirk McElhearn did some testing with the International System Preferences panel for me on this one -- Safari will use the local version of Google that matches the settings in the Language/Format tabs, as long as you also delete your Google cookies when making the changes. So this hint would mainly be useful to those who wish to have one location set via the International panel, but want to use a different local version of Google.
Please note that we covered something very similar nearly six years ago; this version is just focused on changing Google's default country, as opposed to changing the search engine entirely.
Update: More than likely, this hint will cause Safari's code signature to fail, resulting in Safari no longer being able to access the Keychain -- see this hint for more details on this problem (in 10.5 only).]

