Branch: Tag:

2005-04-12

2005-04-12 17:05:20 by Anders Johansson <anders@roxen.com>

Set charset in the result mapping returned from try_get_file().

Rev: server/base_server/configuration.pike:1.586

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.585 2005/02/08 13:20:22 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.586 2005/04/12 17:05:20 anders Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
2704:       m = a[1];    -  if (result_mapping) +  if (result_mapping) {    foreach(indices(m), string i)    result_mapping[i] = m[i]; -  +  if (string|function(string:string) charset = fake_id->get_output_charset()) +  result_mapping->charset = charset; +  }       if(a[0]) {    m->file = a[0];