This repository was archived by the owner on Jan 26, 2026. It is now read-only.
Commit 7759765
committed
encoding: Fix encoding lookup with xmlOpenCharEncodingHandler
Make xmlOpenCharEncodingHandler call xmlParseCharEncoding first so we
prefer our own handlers for names like "UTF8". Only UTF-16 needs an
exception.
Make callers check the return value. For UTF-8, a NULL encoding doesn't
mean an error.
Remove unnecessary UTF-8 check from htmlFindOutputEncoder. Don't try to
look up ASCII handler since the HTML handler is always available.
Fix return code of xmlParseCharEncoding.
Should fix #744.1 parent 5ff3794 commit 7759765
3 files changed
Lines changed: 34 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
396 | 394 | | |
397 | 395 | | |
398 | | - | |
| 396 | + | |
399 | 397 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 398 | + | |
404 | 399 | | |
405 | 400 | | |
406 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1160 | 1160 | | |
1161 | 1161 | | |
1162 | 1162 | | |
1163 | | - | |
| 1163 | + | |
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
| |||
1930 | 1930 | | |
1931 | 1931 | | |
1932 | 1932 | | |
1933 | | - | |
1934 | 1933 | | |
1935 | | - | |
1936 | 1934 | | |
1937 | 1935 | | |
1938 | 1936 | | |
| |||
1944 | 1942 | | |
1945 | 1943 | | |
1946 | 1944 | | |
1947 | | - | |
1948 | 1945 | | |
1949 | 1946 | | |
1950 | 1947 | | |
1951 | 1948 | | |
1952 | | - | |
1953 | | - | |
1954 | | - | |
1955 | | - | |
1956 | | - | |
1957 | | - | |
1958 | 1949 | | |
1959 | | - | |
| 1950 | + | |
| 1951 | + | |
1960 | 1952 | | |
1961 | | - | |
1962 | | - | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
1963 | 1966 | | |
1964 | 1967 | | |
1965 | 1968 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
804 | | - | |
| 804 | + | |
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
| |||
2669 | 2669 | | |
2670 | 2670 | | |
2671 | 2671 | | |
2672 | | - | |
| 2672 | + | |
2673 | 2673 | | |
2674 | 2674 | | |
2675 | 2675 | | |
| |||
2783 | 2783 | | |
2784 | 2784 | | |
2785 | 2785 | | |
2786 | | - | |
2787 | | - | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
2788 | 2790 | | |
2789 | 2791 | | |
2790 | 2792 | | |
| |||
2920 | 2922 | | |
2921 | 2923 | | |
2922 | 2924 | | |
2923 | | - | |
2924 | | - | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
2925 | 2929 | | |
2926 | 2930 | | |
2927 | 2931 | | |
| |||
0 commit comments