Index: openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl,v diff -u -N -r1.26 -r1.27 --- openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl 7 Oct 2002 15:05:31 -0000 1.26 +++ openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl 10 Oct 2002 17:07:43 -0000 1.27 @@ -589,8 +589,18 @@ # ns_log Notice "OACS= RP end" # Set locale and language of the request. We need ad_conn user_id to be set at this point - ad_conn -set locale [lang::conn::locale] - ad_conn -set language [lang::conn::language] + if { [catch { + ad_conn -set locale [lang::conn::locale] + ad_conn -set language [lang::conn::language] + }] } { + # acs-lang doesn't seem to be installed. Even though it must be installed now, + # the problem is that if it isn't, everything breaks. So we wrap it in + # a catch, and set locale and language to the empty strings. + # This is a temporary work-around until it's reasonably safe + # to assume that most people have added acs-lang to their system. + ad_conn -set locale "" + ad_conn -set language "" + } ##### #