mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
Fix i18n related crash. This may be only a workaround, a better solution
is in work. The crash doesn't happen if $LANG is set to *.ISO8859-* or to *.KOI8-R. It happens with $LANG=C, US_ASCII, *.KOI8-U, *.Big5 etc. The function which does crash should select the best suitable mime encoding type for $LANG. The workaround is to default to US-ASCII if there is no suitable entry. If the entry has been modified in the settings, this value will not be used anymore and the crash should even stop if we don't have this workaround in place.
This commit is contained in:
parent
58e5ae5b64
commit
f7ca61a7b6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63787
13
editors/openoffice-1.0/files/patch-sal+textenc+tencinfo.c
Normal file
13
editors/openoffice-1.0/files/patch-sal+textenc+tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
13
editors/openoffice-1.0/files/patch-sal::textenc::tencinfo.c
Normal file
13
editors/openoffice-1.0/files/patch-sal::textenc::tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
13
editors/openoffice-1.1/files/patch-sal+textenc+tencinfo.c
Normal file
13
editors/openoffice-1.1/files/patch-sal+textenc+tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
13
editors/openoffice-3/files/patch-sal+textenc+tencinfo.c
Normal file
13
editors/openoffice-3/files/patch-sal+textenc+tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
13
editors/openoffice-devel/files/patch-sal+textenc+tencinfo.c
Normal file
13
editors/openoffice-devel/files/patch-sal+textenc+tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
13
editors/openoffice.org-2/files/patch-sal+textenc+tencinfo.c
Normal file
13
editors/openoffice.org-2/files/patch-sal+textenc+tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
13
editors/openoffice.org-3/files/patch-sal+textenc+tencinfo.c
Normal file
13
editors/openoffice.org-3/files/patch-sal+textenc+tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
13
editors/openoffice/files/patch-sal+textenc+tencinfo.c
Normal file
13
editors/openoffice/files/patch-sal+textenc+tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
13
editors/openoffice/files/patch-sal::textenc::tencinfo.c
Normal file
13
editors/openoffice/files/patch-sal::textenc::tencinfo.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002
|
||||
+++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002
|
||||
@@ -695,6 +695,10 @@
|
||||
/* characters. The function search for the first equal string in */
|
||||
/* the table. In this table are only the most used mime types. */
|
||||
/* Sort order: important */
|
||||
+
|
||||
+ if (pMimeCharset == NULL)
|
||||
+ pMimeCharset = "usascii";
|
||||
+
|
||||
static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
|
||||
{
|
||||
{ "usascii", RTL_TEXTENCODING_ASCII_US },
|
Loading…
Reference in New Issue
Block a user