--- rxvt-unicode/src/rxvt.h 2010/12/07 19:10:00 1.421 +++ rxvt-unicode/src/rxvt.h 2010/12/16 23:03:50 1.422 @@ -192,6 +192,22 @@ environ = envv; } +struct localise_env +{ + char **orig_env; + + localise_env (char **new_env) + { + orig_env = environ; + environ = new_env; + } + + ~localise_env () + { + environ = orig_env; + } +}; + /* ***************************************************************************** * STRUCTURES AND TYPEDEFS