Up to [Local Repository] / interchange / lib / Vend
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Quell bogus warnings from Encode::Alias. Resolves RT #224. Thanks to Andy <ic@tvcables.co.uk> and Rene Hertell <icdevgroup@hertell.com> for reporting.
Quell bogus warnings from Encode::Alias. Resolves RT #224. Thanks to Andy <ic@tvcables.co.uk> and Rene Hertell <icdevgroup@hertell.com> for reporting.
* Don't "use warnings" in a module unless you are committed to removing them all.
Be more specific in logging for character set handling.
Fix regexes that use UTF-8 inside a Safe compartment. Patch by Sonny Cook <sonny@endpoint.com>, with some logging tweaks by me.
remove default charset, effectively disabling UTF-8 by default until we solved the issue with embedded Perl log error message if decode operation fails
removed incomplete POD documentation which provided more typos than additional information
Various minor UTF-8 changes.
Correct attribution of &Vend::CharSet::display_chars (which is from
perluniintro manpage).
Enable localization of an error string.
Match content type more tightly in 2 spots ("text" is only trustworthy
in the MIME major type, not minor, and even that may be a stretch).
Simplify request method matching in a few places for readability and a
(trivial) performance benefit.
Use conventional $c lexical instead of $g for catalog hashref.
Fix tab/space differences to match context.
Update copyrights of files changed in 2008.
* Fixed the copyright attribution. I just copied the header from
Config.pm without thinking. Thanks to Peter and Racke for the
kicking. :-)
* Added the Interchange copyright and GPL header comments.
* Committing Sonny Cook's UTF-8 patches, along with a fix for the
PreFork issue caused by the patches. Thanks, Sonny!
* From Sonny's original article on interchange-core:
There are two variables that will need to be added to your
catalog.cfg: MV_HTTP_CHARSET and MV_UTF8. They should be set
like so:
Variable MV_HTTP_CHARSET UTF-8
Variable MV_UTF8 1
The MV_UTF8 variable tells the system that we are using UTF-8
for stuff internally when that needs to be specified. Perl mostly
does the right thing wrt UTF-8, but when we need to explicitly
specify for one of a handful of reasons, this variable lets us
configure that.
The MV_HTTP_CHARSET specifies which character set that the web
pages are going to be encoded with. UTF-8 is the only value that
has been tested at the moment, although it probably generalises
to whatever you would like to use.
Communication with the database introduces three database
directives. These are required to ensure that data is properly
communicated with the database:
PG_ENABLE_UTF8
MYSQL_ENABLE_UTF8
GDBM_ENABLE_UTF8
These can be set on a table by table basis or with DatabaseDefault.
You will probably want to set the one for the sql database you are
using and one for GDBM, like so:
DatabaseDefault PG_ENABLE_UTF8 1
DatabaseDefault GDBM_ENABLE_UTF8 1
You will need to make sure that your database is encoded in UTF-8
and that all of your data is encoded that way as well.
Enabling UTF-8 should not cause any problems if your data is all in
US-ASCII, but might cause problems if other encodings are involved.
* Note: This commit is missing the latest safeuntrap/reval/safetrap
code, which should be added ASAP. In the meantime, the following
works in the interchange.cfg file (with Perl 5.8.8):
SafeUntrap rand require caller dofile print