Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision dcaf9754

Von Moritz Bunkus vor mehr als 12 Jahren hinzugefügt

  • ID dcaf9754bac8b40319cbb62b6577fb2d2569aac7
  • Vorgänger c8181687
  • Nachfolger 6afd06ad

SQL-Upgrade: '@encoding' als Alias für '@charset' erkennen

Unterschiede anzeigen:

SL/DBUpgrade2.pm
next if ($control->{ignore});
$control->{charset} ||= Common::DEFAULT_CHARSET;
$control->{charset} = $control->{charset} || $control->{encoding} || Common::DEFAULT_CHARSET;
if (!$control->{"tag"}) {
_control_error($form, $file_name, $locale->text("Missing 'tag' field.")) ;
......
my $file_charset = Common::DEFAULT_CHARSET;
while (<$fh>) {
last if !/^--/;
next if !/^--\s*\@charset:\s*(.+)/;
next if !/^--\s*\@(?:charset|encoding):\s*(.+)/;
$file_charset = $1;
last;
}
......
} else {
while (<$fh>) {
last if !/^--/;
next if !/^--\s*\@charset:\s*(.+)/;
next if !/^--\s*\@(?:charset|encoding):\s*(.+)/;
$file_charset = $1;
last;
}
......
before the current one is applied.
=item charset
=item encoding
The charset this file uses. Defaults to C<ISO-8859-15> if missing.
The charset this file uses. Defaults to C<ISO-8859-15> if
missing. Both terms are recognized.
=item priority

Auch abrufbar als: Unified diff