tags:

views:

144

answers:

2

From my own "key logger like" process I figured out that another process Locale is wrong (i.e. by sniffing few keys, I figured out that the foreground process Locale should be something while it is set to another). What's the best way to do this?

+1  A: 

I'd use setLocale from within that process to change it, and notify the process about this with some form of IPC like:

from the process who knows

Florian Bösch
A: 

You didn't specify operating system or anything, but in Linux this is quite hard unless the target process is willing to help (i.e. there's some IPC mechanism available where you can ask the process to do it for you)

What you can do is to attach to the process, like a debugger or strace does, and the call the appropriate system call (like setlocale())

The result on the target process is of course undetermined since it probably doesn't expect to get its locale changed under its feet :)

Isak Savo