1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013
|
2006-08-20 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_init_info) : Add validation in case
::num_metabat too large for the ::num_bats.
2004-12-06 Jody Goldberg <jody@gnome.org>
* Release 1.11.1
2004-12-05 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-stdio.c (gsf_output_stdio_close): Flush file if
we don't close it.
2004-12-01 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-stdio.c (gsf_output_stdio_new): Make sure new
files end us with as lose permissions as the umask says.
[#159331]
(rename_wrapper): New function to hide the fact that Win32's
rename does not unlink the target file if it exists. [#160108]
2004-11-28 Jody Goldberg <jody@gnome.org>
* configure.in : Post release bump
2004-11-28 Jody Goldberg <jody@gnome.org>
* Release 1.11.0
2004-11-28 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_parse) : NULL unhandled types
2004-11-25 Sven Herzberg <herzi@gnome-de.org>
* gsf-gnome/gsf-output-gnomevfs.c: (gsf_output_gnomevfs_new_uri):
truncate the output file to length 0 when opening (fix #159442)
2004-11-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-output-stdio.c (gsf_output_stdio_close) : add a hook to
accept existing FILE*
(gsf_output_stdio_new_FILE) : new.
2004-11-19 Veerapuram Varadhan <vvaradhan@novell.com>
* Add gsf/gsf-meta-names.h
* gsf/gsf-doc-meta-data.[ch] (gsf_get_prop_val,
gsf_get_prop_val_str): new
(gsf_doc_meta_data_get_prop) : return GsfDocProp instead of
GsfDocMetaData. Caller should release the return value.
* gsf/Makefile.am : Add gsf-meta-names.h to the list of headers.
2004-11-16 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_in_start_element) : Check the unknown
handler if we come across something that has not been registered
yet.
(gsf_xml_in_doc_set_unknown_handler) : new.
(gsf_xml_in_doc_new) : split part of this out into
(gsf_xml_in_doc_extend) : here, so that we can add nodes to a
description later.
2004-11-12 Morten Welinder <terra@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_out_add_cstr): Escape 1..31 when used
in attributes.
2004-11-02 Jody Goldberg <jody@gnome.org>
* tests/test-msole1.c (test) : fix leak and use
gsf_msole_metadata_read_real.
* gsf/gsf-msole-utils.c (gsf_msole_metadata_read) : store them in
GsfDocProp
(gsf_msole_metadata_read_real) : renamed from gsf_msole_metadata_read
(gsf_msole_metadata_read) : a quick stub to avoid creating a leak in
existing calls to this routine.
2004-11-02 Jody Goldberg <jody@gnome.org>
From Frank
* gsf/gsf-msole-utils.c (gsf_msole_metadata_read) : store the
properties
* tests/test-msole1.c (test) : dump the properties
* gsf/Makefile.am : Add gsf-doc-meta-data.c to the build
* gsf/gsf-doc-meta-data.c (gsf_doc_meta_data_set_prop) : init
the GValue before we assign.
2004-09-20 Morten Welinder <terra@gnome.org>
* gsf/*.c: Remove useless casts of 0 to gsf_off_t in parameters.
* gsf/gsf-output.c (gsf_output_set_name_from_filename): New function.
* gsf/gsf-output-stdio.c (gsf_output_stdio_new): Use
gsf_output_set_name_from_filename.
* gsf/gsf-outfile-stdio.c (gsf_outfile_stdio_new): Use
gsf_output_set_name_from_filename.
* gsf/gsf-input.c (gsf_input_set_name_from_filename): New function.
* gsf/gsf-input-stdio.c (gsf_input_stdio_new): Use
gsf_input_set_name_from_filename.
* gsf/gsf-infile-stdio.c (gsf_infile_stdio_new): Use
gsf_input_set_name_from_filename.
* gsf/gsf-infile-zip.c (zip_update_stream_in): Add seek error check.
(gsf_infile_zip_read): Ditto.
2004-09-19 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Morten's VFS local copy requires VFS >= 2.2. Upgrade configure check.
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new_uri): Follow symlinks similarly to the STDIO input
* gsf/gsf-input-stdio.c (gsf_input_stdio_new): Convert file name to UTF8
* gsf/gsf-output-stdio.c (gsf_output_stdio_new): Convert file name to UTF8
* BUGS: remove above
2004-09-17 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-zip.c (zip_find_trailer): Fix gsf_input_seek
check.
* gsf/gsf-input.c: Doc fixes, notably reversing the sense of
gsf_input_seek_emulate's return value.
2004-09-17 Morten Welinder <terra@gnome.org>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new_uri):
Force local copy for small (<256KB) files that are not local.
* gsf/gsf-infile-msole.c (gsf_infile_msole_new): Add a proxy layer
so we don't have to dup files or net connections.
* gsf/gsf-input.c (gsf_input_dup): Provide error messages.
* gsf/gsf-input-proxy.c (gsf_input_proxy_read): gsf_input_read
updates our position so we should not.
* gsf/gsf-input-proxy.[ch]: New file.
2004-09-16 Morten Welinder <terra@gnome.org>
* gsf/gsf-input-textline.c (gsf_input_textline_dup): Set size.
* gsf/gsf-input-memory.c (gsf_input_memory_dup): Set size.
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_seek): Ugly
work-around for gnome-vfs bug.
* gsf/gsf-input.c (gsf_input_dup): Check size and seek return
value.
* gsf/gsf-infile.c (gsf_infile_child_by_name): Protect against
NULL input name.
(gsf_infile_child_by_index): Ditto.
* gsf/gsf-infile-msole.c (gsf_infile_msole_new_child): Handle
failure to dup.
(ole_info_get_sb_file): Handle failure to dup.
(gsf_infile_msole_new_child): Handle failure from
ole_info_get_sb_file.
2004-09-15 Dom Lachowicz <cinamod@hotmail.com>
* gsf-win32/gsf-input-win32.c: Create more meaningful error messages
from HRESULTs.
* gsf-win32/gsf-output-win32.c: Ditto. Add error reporting.
2004-08-27 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-outfile-zip.c (gsf_outfile_zip_seek): Use G_GNUC_UNUSED.
* gsf/gsf-output-gzip.c (gsf_output_gzip_seek): Likewise.
* gsf/gsf-structured-blob.c (blob_dup): Likewise.
* gsf/gsf-input-textline.c (gsf_input_textline_dup): Likewise.
* gsf/gsf-input-memory.c (gsf_input_memory_dup): Likewise.
(gsf_input_mmap_new): Remove useless #warning.
2004-08-26 Morten Welinder <terra@gnome.org>
* gsf/gsf-shared-memory.c (gsf_shared_memory_finalize): Don't
check size overflow here.
(gsf_shared_memory_mmapped_new): Check it here. Return NULL if we
don't have mmap.
* gsf/gsf-timestamp.c (gsf_value_set_timestamp): Renamed from
g_value_set_timestamp.
2004-08-25 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close_root): Be careful
with empty files (fixes bug #150923).
2004-08-25 Morten Welinder <terra@gnome.org>
* gsf/gsf-utils.c (gsf_base64_encode_step): Avoid potential
rounding error.
* gsf/gsf-input-bzip.c (gsf_input_memory_new_from_bzip): Kill
pointless #warning.
2004-08-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_out_add_cstr) : Add some libxml compat
behavior and ignore NULLs
(gsf_xml_out_add_cstr_unchecked) : ditto
2004-08-17 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-utils.c (BASE64_LINE_LEN): New constant to determine
the line length, my mbox indicates that 76 is commonly used.
(gsf_base64_encode_simple): Use it.
(gsf_base64_encode_step): Use it too; remember that `already'
holds line length / 4.
(gsf_base64_encode_close): Don't add '\n' if not necessary.
2004-07-29 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_new_full): One more sanity
check, bb.size has to be at least DIRENT_SIZE.
(gsf_outfile_msole_close_root): For non-root dirs, don't set
FIRSTBLOCK to DIRENT_MAGIC_END, it is BAT_MAGIC_END_OF_CHAIN; though
both are -1. Explanation: BAT_MAGIC_END_OF_CHAIN is of type ``block
number'' while DIRENT_MAGIC_END is of type ``dirent number''.
2004-08-20 Jody Goldberg <jody@gnome.org>
* configure.in : post release version bump
2004-08-20 Jody Goldberg <jody@gnome.org>
* Release 1.10.1
2004-08-17 Jon K Hellan <hellan@acm.org>
* gsf/gsf-utils.c (gsf_base64_decode_simple): Revert base64
initialization change.
2004-08-16 Morten Welinder <terra@gnome.org>
* gsf/gsf-utils.c (gsf_base64_encode_simple): Request line
breaking.
2004-08-13 Jon K Hellan <hellan@acm.org>
* gsf/gsf-utils.c (gsf_base64_decode_simple): Initialize during
first use.
2004-08-10 Morten Welinder <terra@gnome.org>
* gsf/gsf-input-textline.c (gsf_input_textline_utf8_gets): Fix
off-by-one in buffer length check.
2004-08-08 Jon K Hellan <hellan@acm.org>
* gsf/gsf-output-stdio.c (follow_symlinks, gsf_output_stdio_new):
Use g_error_new_literal, not g_error_new on strings which we do
not control.
2004-07-30 Christopher James Lahey <clahey@ximian.com>
* gsf/gsf-input.c (gsf_input_class_init), gsf/gsf-output.c
(gsf_output_class_init): Use correct types for properties here.
2004-07-30 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_out_class_init) : Init the parent_class
here.
(gsf_xml_out_init) : not here.
2004-07-27 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_new_full):
Fix a race condition with a static buffer.
Write correct sb.shift to the header, even if it differs
from the default.
2004-07-29 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (ole_bytes_left_in_block) : sigh.
Pull my head out of my rearend. a one line function with two
errors. I really shouldn't code when tired.
(ole_pad_zero) : remove residual parm rename ole_ from bb_
(ole_pad_bat_unused) : add a residual parm.
(gsf_outfile_msole_close_root) : pad metabat with BAT_UNUSED
2004-07-29 Morten Welinder <terra@gnome.org>
* gsf/gsf-input-memory.c (gsf_input_mmap_new): Use NULL, not 0 for
pointer.
(gsf_input_memory_seek): Use G_GNUC_UNUSED instead of
void-casting.
* gsf/gsf-libxml.c (gsfXMLInParser): Ditto.
(gsf_xml_in_get_entity, gsf_xml_in_warning, gsf_xml_in_error,
gsf_xml_in_fatal_error): Use G_GNUC_UNUSED instead of
void-casting.
(gsf_xml_out_add_color): Make buffer size overflow safe.
* gsf/gsf-utils.c: Always #define G_ARMFLOAT_ENDIAN.
2004-07-28 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close_root):
Check for overflow of the size field of a regular file entry.
2004-07-28 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (bb_pad_zero) : add a residual param to not
fill the entire block if desired and clarify that the current block
is cur_size - HEADER not block_size.
(gsf_outfile_msole_close_root) : Clarify the metabat writing logic a
bit and just in case add a CHAIN_END to the last incomplete metabat
(ole_bytes_left_in_block) : similar to Kasal's suggestion without the
-1 % size + 1
(bb_pad_zero) : use it here to make this safe to use when not at the
end of the file.
(ole_pad_bat_unused) : and here to fix the mystery corruption when XL
reads the file.
2004-07-27 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close_root) : the last
xbat does not require a forwarding link
2004-07-27 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-outfile-msole.c (metabat_size): Nuke; doesn't have to
be an instance variable, it can be local ...
(gsf_outfile_msole_close_root): ... here.
(gsf_outfile_msole_set_block_shift): Don't set metabat_size.
2004-07-26 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (OLE_DEFAULT_METABAT_SIZE): delete
(gsf_outfile_msole_close_root) : pull out of
(gsf_outfile_msole_close) : here as a cleanup gesture.
Per : Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_set_block_shift) : Use
BAT_INDEX_SIZE, not hardwired shift of 2.
(gsf_outfile_msole_close): Use the current sb.shift, not
OLE_DEFAULT_SB_SHIFT.
2004-07-23 Stepan Kasal <kasal@ucw.cz>
Replace various instances of local parent_class variables by
a static ones, initialized by class_init.
* gsf/gsf-*.c: (20 files touched)
* gsf/gsf-output-transaction.c: A general cleanup.
2004-07-21 Stepan Kasal <kasal@ucw.cz>
The gsf_ouput_printf method didn't correctly update cur_offset.
The implementations of vprintf virtual method shouldn't touch
cur_offset but they should return the number of bytes written;
the dispatcher updates cur_offset accordingly.
* gsf/gsf-output-impl.h (Vprintf): The virtual private method now
returns number of bytes printed.
* gsf/gsf-output.c (gsf_output_vprintf): Renamed to ...
(gsf_output_ireal_vprintf): ... this.
(gsf_output_printf): Collect the va_list and call ...
(gsf_output_vprintf): ... this new function, which dispatches
the Vprintf virtual method and takes care of updating cur_offset
and cur_size, via ...
(gsf_output_inc_cur_offset): ... a new static function, extracted
from ...
(gsf_output_write): ... there.
(gsf_output_real_vprintf): In this fallback code, don't call
gsf_output_write, but only dispatch to the Write virual method,
so that gsf_output_inc_cur_offset is not called twice.
* gsf/gsf-output.h (gsf_output_vprintf): New public method.
* gsf/gsf-output-stdio.c (gsf_output_stdio_vprintf): Adapt.
* gsf/gsf-output-transaction.c (gsf_output_trans_vprintf): Likewise.
* gsf/gsf-outfile-msole.c (gsf_output_class): New static variable,
which is set to point to GsfOutput class structure.
(gsf_outfile_msole_vprintf): Adapt. If it's a MSOLE_BIG_FILE,
call vprintf method of the underlaying file, else fall back to
gsf_output_class->Vprintf.
* gsf/gsf-output-memory.c (parent_class): New static variable.
(gsf_output_memory_vprintf): Use it too. Adapt to the new prototype.
2004-07-21 Stepan Kasal <kasal@ucw.cz>
Make the two fseek() wrappers more consistent.
* gsf/gsf-input-stdio.c (gsf_input_stdio_seek): Fix the overflow
checking.
* gsf/gsf-output-stdio.c (gsf_output_stdio_seek): Set errno=0
before calling fseek().
2004-07-21 Stepan Kasal <kasal@ucw.cz>
Gnomish autogen.sh uses ACLOCAL_FLAGS, if some of the macros are
in nonstandard places. If you touch configure.in then, aclocal.m4
is regenerated, but without ACLOCAL_FLAGS. This change ensures
that ACLOCAL_FLAGS is propagated to the Makefile.
* configure.in: AC_SUBST(ACLOCAL_FLAGS)
* Makefile.am: ACLOCAL_AMFLAGS = @ACLOCAL_FLAGS@
2004-07-20 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-output-stdio.c: Check for overflow
2004-07-09 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-infile-zip.c (zip_find_trailer): Remove the
"overflow check"; it can never catch anything.
* gsf/gsf-output-memory.c (MAX_STEP): Parenthesize.
(gsf_output_memory_expand): Fix the overflow checking.
(gsf_output_memory_seek): make use of G_GNUC_UNUSED, instead of void
reference.
2004-07-12 Stepan Kasal <kasal@ucw.cz>
* gsf/gsf-output-iochannel.c (GET_OUTPUT_CLASS): Remove unused macro.
* gsf/gsf-structured-blob.c (GET_CLASS): Likewise.
2004-06-15 Jody Goldberg <jody@gnome.org>
* gsf/gsf-utils.c (gsf_input_dump) : flush the stream when we're just
using stdio.
2004-07-04 J.H.M. Dassen (Ray) <jdassen@debian.org>
* configure.in: recheck all PKG_CHECK_MODULES for libgsf for
libgsf-gnome as well, so as not to trip on unresolved symbols with a
-Wl,-z,defs build.
2004-07-03 Jody Goldberg <jody@gnome.org>
* configure.in : post release bump
2004-07-03 Jody Goldberg <jody@gnome.org>
* Release 1.10.0
2004-07-01 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_vprintf) : premature
optimization is the root of all evil. We can not directly write
small block data because it will be in the wrong place and will miss
the transition to large block. This is not a hugely common case and
does not need such special attention.
2004-06-25 Jody Goldberg <jody@gnome.org>
* gsf/gsf-output-stdio.c (gsf_output_stdio_seek) : conditionalize the
use of fseeko.
* gsf/gsf-input-stdio.c (gsf_input_stdio_seek) : ditto.
* gsf/gsf-outfile-msole.c : Extend Stuart's work to use the internal
block sizes rather than keeping them global.
2004-06-25 Jody Goldberg <jody@gnome.org>
For : Stuart Cunningham <stuartc@rd.bbc.co.uk>
* gsf/gsf-output-stdio.c (gsf_output_stdio_seek) : use fseeko
* gsf/gsf-input-stdio.c (gsf_input_stdio_seek) : ditto.
* gsf/gsf-outfile-msole.c : rework to honor the requested block sizes
2004-06-15 Morten Welinder <terra@gnome.org>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new_uri):
Don't leak info components. Handle lack of get_file_info
supports. Rework make_local_copy case. Work around gnomevfs
get_file_info bogosity.
2004-06-13 Jody Goldberg <jody@gnome.org>
* configure.in : bump to 1.10.0 to handle all the signature changes in
return values.
* *.[ch] : return the interesting base type rather than the derived
type for *_new.
2004-06-11 Morten Welinder <terra@gnome.org>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new): Change
return type to plain GsfInput*.
(gsf_input_gnomevfs_new_uri): Change return type to plain
GsfInput*. If seek is not supported, snarf a local copy.
2004-06-06 Dom Lachowicz <cinamod@hotmail.com>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new): Better
solution for Morten's problem.
2004-05-26 Morten Welinder <terra@gnome.org>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new): Handle
failure to parse URI.
2004-05-20 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-outfile-stdio.c: mkdir() has a different prototype on win32
2004-05-17 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_dirent_new) : work around odd files from
softmaker, seems like they consider dirs to be rootdirs ??
2004-05-17 Morten Welinder <terra@gnome.org>
* gsf/gsf-utils.c (gsf_le_get_double, gsf_le_set_double): Attempt
ARM fix. Fix various #error messages.
2004-05-15 Jody Goldberg <jody@gnome.org>
* configure.in : post release bump
2004-05-15 Jody Goldberg <jody@gnome.org>
* Release 1.9.1
2004-05-11 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_out_set_doc_type) : new.
* doc/gsf-sections.txt : more cleanup, still ugly but at least it's
somewhat better.
* doc/gsf-docs.sgml : drop the useless Gsf section
2004-05-09 Jody Goldberg <jody@gnome.org>
* s/ZipDirent/GsfZipDirent
* s/ZipVDir/GsfZipVDir
2004-05-09 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-infile-zip.c: Don't pollute the global namespace
* gsf/gsf-outfile-zip.c: Ditto
* gsf/gsf-zip-impl.h: Ditto
* gsf/gsf-zip-utils.c: Ditto
2004-05-09 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-infile-stdio.c: Fix non-static definition of 'parent_class'
* gsf/gsf-outfile-stdio.c: Ditto
2004-05-07 James M. Cape <jcape@ignore-your.tv>
* doc/gsf-sections.txt: Hide type macros.
* gsf/gsf-output.c: s/<protected>/<note>/.
2004-05-06 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=141899
* doc/Makefile.am : Apply patch from James Cape
2004-05-05 J.H.M. Dassen (Ray) <jdassen@debian.org>
* doc/Makefile.am: Install docs in the $(DOC_MODULE) subdir of
$(HTML_DIR) rather than in $(HTML_DIR) itself.
2004-05-05 Jody Goldberg <jody@gnome.org>
* configure.in : post release bump
2004-05-04 Jody Goldberg <jody@gnome.org>
* Release 1.9.0
2004-05-04 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_in_start_element) : support merging of
content from a node and some of it's children
(gsf_xml_in_end_element) : ditto.
(gsf_xml_in_characters) : ditto.
(sf_xml_in_doc_new) : kludge to support the old interface but still
allow new semantics.
2004-05-01 Dom Lachowicz <cinamod@hotmail.com>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new_uri) : Don't
require gnome-vfs-method.h
* gsf-gnome/gsf-output-gnomevfs.c (gsf_output_gnomevfs_new_uri): we
require random access.
* gsf-win32/gsf-input-win32.c: fix seek's return value in the win32
IStream input.
2004-04-28 Jody Goldberg <jody@gnome.org>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new_uri) : we
require random access.
2004-04-26 Jody Goldberg <jody@gnome.org>
* doc/Makefile.am : steal a few things from gtk-doc.make to get things
building. A full jump to gtk-doc.make directly is failing, dunno
why
* Makefile.am : Remove the AUTOMAKE_OPTIONS = 1.4 that disabled the
DISTCHECK_CONFIGURE_FLAGS
2004-04-24 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_dirent_new) : placate the bogus
-fstrict-aliasing gods. gcc is being stupid.
* configure.in : call this 1.9.0
2004-04-27 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-output-bzip.c (gsf_output_bzip_write): If the output
buffer turns full on the last deflate, empty the buffer.
2004-04-24 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-gzip.c (gsf_output_gzip_write): If the output
buffer turns full on the last deflate, empty the buffer.
2004-04-05 Jody Goldberg <jody@gnome.org>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_seek) : fix sense
of return. This code is clearly not being used. A year and a half
and no one noticed ???
2004-03-31 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-stdio.c (gsf_output_stdio_new): Plug leak.
2004-03-31 Michael Meeks <michael@ximian.com>
* tests/test-msvba-zip.c (find_match):
size limit the matches to the available bits for
storing the match length (doh). & make debug nicer.
2004-03-16 Morten Welinder <terra@gnome.org>
* gsf/gsf-output.c (gsf_output_finalize): Chain up.
* gsf/gsf-shared-memory.c (gsf_shared_memory_finalize): Chain up.
* gsf-gnome/gsf-shared-bonobo-stream.c
(gsf_shared_bonobo_stream_finalize): Chain up.
2004-03-12 Michael Meeks <michael@ximian.com>
* gsf/gsf-infile-msvba.c (vba_dir_read),
* tests/test-msvba-zip.c (decode_dir):
simplify / treat op 9 as the quirk-meister.
2004-03-11 Michael Meeks <michael@ximian.com>
* tests/test-msvba-zip.c (decode_dir): better
quirk understanding.
(find_match): remove unnecessary hacks.
2004-03-10 Michael Meeks <michael@ximian.com>
* tests/test-msvba-zip.c (decode_dir): impl.
a good run at enterpreting 'dir'.
* tests/test-msvba-zip.c (do_compress): bin nasty
3 byte header store / restore and generate header
on the fly.
2004-03-09 Michael Meeks <michael@ximian.com>
* tests/test-msvba-zip.c (find_match): shrink dodgy
looking matches.
2004-03-08 Michael Meeks <michael@ximian.com>
* tests/test-msvba-zip.c (output_match): add a
small/stupid LZSS compressor.
2004-03-08 Michael Meeks <michael@ximian.com>
* tests/test-msvba-zip.c: add for compressing/decompressing
'dir' (or other pure compressed) streams.
* gsf/gsf-msole-utils.c (gsf_msole_inflate): move from
* gsf/gsf-infile-msvba.c (gsf_vba_inflate): here.
2004-03-01 Jody Goldberg <jody@gnome.org>
* configure.in : drop -Wmissing-format-attribute because it was
irritating me.
2004-03-01 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-stdio.c :
* gsf/gsf-infile-stdio.c : Some utility wrappers to pull or push from
a directory tree.
* tests/test-dump-msole.c :
* tests/test-restore-msole.c : tests for it.
2004-02-24 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Add Win32 stuff
* libgsf-win32-1.pc.in: Ditto
* Makefile.am: Ditto
* gsf-win32/Makefile.am: Win32 build system
2004-02-05 Jon K Hellan <hellan@acm.org>
* configure.in: Fix typo.
2004-02-05 Tomasz Koczko <kloczek@pld.org.pl>
* Makefile.am: Added "DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc"
for force correct pass build documentation during "make dist"
(like in many other GNOME projects).
Added gtk-doc.make to EXTRA_DIST for generate correct tar ball on
"make dist".
* configure.in: Removed old on place defined gtk-doc suport and added use
GTK_DOC_CHECK([1.0]).
2004-01-30 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_in_fatal_error) : Looks like Daniel has
added another field
2004-01-30 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=130596
* configure.in : apply the patch
Wed Jan 28 00:43:36 2004 Matthias Clasen <maclas@gmx.de>
* doc/Makefile.am (EXTRA_HFILES): Add ../gsf-gnome/*.h to give
gtk-doc a chance to pick up declarations from there. (Partial fix
for bug #132661.
2004-01-20 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_in_start_element) : minor portability fix.
2004-01-18 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-msole-utils.c: Country code for Albania is sq_AL not al_AL
* gsf-win32/*.c: Some work on the IStream input and output
2003-12-09 Dom Lachowicz <cinamod@hotmail.com>
* gsf/*.c: Documentation
2003-12-06 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msvba.c : Major work.
We can now extract the compressed source for all of our sample
files. There's still lots of unknowns, but at least the code
is visible now. The next step will be looking at the p-code
2003-11-28 Jody Goldberg <jody@gnome.org>
* gsf/gsf-utils.c (gsf_input_hex_dump) : new.
(gsf_mem_dump_full) : expand the interface a bit.
2003-11-03 Jody Goldberg <jody@gnome.org>
* gsf/Makefile.am (uninstall) : make the impl headers for the base
interfaces public.
2003-10-29 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_parse) : The anal check should
take the prevailing char width also as noted by Xavier Roche.
* gsf/gsf-infile-msole.c (ole_init_info) : Doh! do not double convert
to native endianness. Fixes error reading files > 13.6 Meg on sparc
and alpha as noted by Xavier Roche.
2003-10-21 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c : Make the codepage arguments int to allow
smooth handling of bogus files that encode the codepage as an int
and break the utf-8 page '65001' because it looks like -535
2003-10-09 Jody Goldberg <jody@gnome.org>
* libgsf-gnome-1.spec.in : An old patch from Joseph Frazee
2003-09-29 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (gsf_infile_msole_new) : as noted by Nick
Lamb a failure should not change the file pos of @input.
2003-09-23 Jody Goldberg <jody@gnome.org>
* configure.in : downgrade. No need to force a version bump yet.
* gsf/gsf-libxml.c (gsf_xml_parser_context_full) : use a _full version
internally because that seems cleaner than manually tweaking pointers.
However, its a cosmetic change and not worth a version bump.
2003-09-22 Jody Goldberg <jody@gnome.org>
* configure.in : jump to 1.9.0 for api change.
* gsf/gsf-libxml.c : Initialize sax handler correctly to make sure
they work with libxml2 2.6.0.
(gsf_xml_parser_context) : take a sax handler and user data so taht we
can initialize it on creation.
2003-09-21 Tor Lillqvist <tml@iki.fi>
* libgsf-zip.in: New file.
* configure.in: Expand it.
* Makefile.am (EXTRA_DIST): Distribute it.
2003-09-13 Jody Goldberg <jody@gnome.org>
* configure.in : post release bump to 1.8.3 for now.
If this becomes the basis for the interleaved write support it will
jump to 1.9 without a release.
2003-09-12 Jody Goldberg <jody@gnome.org>
* Release 1.8.2
2003-09-12 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close) : libole2 depends
on all entries having names. Hard code 'Root Entry' for the root.
2003-08-24 Dom Lachowicz <cinamod@hotmail.com>
* win/libgsf.ds*: Add win32 project files, from Jeremy Davis
* gsf/*: Some casts and ifdefs to let this puppy build on win32 using
MSVC. Also from Jeremy Davis, with some touch-up work by myself.
* configure.in: check for <io.h>
2003-08-03 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c : some initial work to define an interface
for using non-default block sizes. We're just managing these values
not using them yet.
2003-08-02 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_make_bat) : weaken the post condition
from error -> warning in the event that a BAT is missing a valid
terminator. We've already loaded a BAT, and we're sure that it is
not too big. Hopefully this will allow some of the data to be
restored.
2003-08-01 Jody Goldberg <jody@gnome.org>
For Stuart Cunningham <stuartc@rd.bbc.co.uk>
* gsf/gsf-infile-msole.c (gsf_infile_msole_read) : another patch to
fix non-default sector size support.
2003-07-17 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-zip.c (zip_dup) : take an error arg.
(zip_child_init) : ditto.
(gsf_infile_zip_dup) : use the error from zip_dup and zip_child_init.
* gsf/gsf-infile-impl.h : Take GError args for child_by_* virtuals.
We can not expose them yet.
* gsf/gsf-structured-blob.c (blob_child_by_index) : fix here.
(blob_child_by_name) : and here.
* gsf/gsf-infile-ar.c : and here.
* gsf/gsf-infile-msvba.c : and here.
* gsf/gsf-infile-msole.c (ole_dup) : catch gsf_input_dup failures
for the underlying source, and take a GError arg.
(gsf_infile_msole_dup) : pass the new err arg to ole_dup and use error
from ole_dup directly. No need to cruft another one up.
(gsf_infile_msole_new_child) : Take a GError arg to pass to ole_dup.
2003-07-15 Jody Goldberg <jody@gnome.org>
For Stuart Cunningham <stuartc@rd.bbc.co.uk>
* gsf/gsf-infile-msole.c (ole_get_block) : fix ole block seeking in
4k-sector files
2003-07-03 Jody Goldberg <jody@gnome.org>
For : Stuart Cunningham <stuartc@rd.bbc.co.uk>
* gsf/gsf-infile-msole.c (ole_dirent_new) : store the directory's CLSID
(gsf_infile_msole_get_class_id) : new.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close) : store the CLSID
(gsf_outfile_msole_set_class_id) : new.
(gsf_outfile_msole_init) : be really anal and ensure the CLSID is 0.
2003-07-02 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (gsf_infile_msole_new_child) : Even if a
directory claims to have a size set it to 0. Thanks to the AAF
people for the test case.
2003-06-28 Jody Goldberg <jody@gnome.org>
* doc/Makefile.am : fix the case when gtk-doc is not available
2003-06-20 Morten Welinder <welinder@rentec.com>
* gsf/gsf-input-gzip.c (gsf_input_gzip_read): Handle premature end
of stream.
2003-06-21 Jody Goldberg <jody@gnome.org>
As per ryang@bway.org :
* README : s/automake/autoconf/ and add automake details.
2003-06-15 Jon K Hellan <hellan@acm.org>
* configure.in: Remove test for obsolete orbit-python module.
2003-06-09 J.H.M. Dassen (Ray) <jdassen@debian.org>
* debian/*: Updated debianisation.
2003-06-07 Jody Goldberg <jody@gnome.org>
* configure.in : post release version bump
2003-06-07 Jody Goldberg <jody@gnome.org>
* Release 1.8.1
2003-06-06 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_out_simple_int_element) : new util.
(gsf_xml_out_simple_float_element) : ditto.
2003-05-14 J.H.M. Dassen (Ray) <jdassen@debian.org>
* gsf/Makefile.am: Added $(LIBGSF_LIBS) to libgsf_1_la_LIBADD to get
complete inter-library dependency information.
2003-05-13 Dom Lachowicz <cinamod@hotmail.com>
* COPYING.LIB: update the the version of the LGPL license we're
actually licensed under
2003-05-13 Dom Lachowicz <cinamod@hotmail.com>
* libgsf-1.spec.in: Updates from Rui
2003-05-12 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-gzip.c (gsf_output_gzip_finalize): Plug
truck-sized leak.
2003-05-12 Jody Goldberg <jody@gnome.org>
* configure.in : post release version bump
2003-05-11 Jody Goldberg <jody@gnome.org>
* Release 1.8.0
2003-04-29 Dom Lachowicz <cinamod@hotmail.com>
* gsf-win32/gsf-input-istream.[ch]: IStream based input. Untested
* gsf-win32/gsf-output-istream.[ch]: IStream based output. Untested
2003-04-29 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c
(gsf_msole_iconv_open_codepage_for_import): Try MACROMAN as alias
for 10000.
2003-04-28 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c
(gsf_msole_iconv_open_codepage_for_import): Remove code
duplication.
2003-04-21 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_dirent_new) : terminate the name before
conversion.
2003-04-15 Morten Welinder <terra@gnome.org>
* gsf/gsf-input-memory.c (gsf_input_mmap_new): FREEBSD have broken
mmap -- we must keep the file descriptor around.
2003-04-09 Jody Goldberg <jody@gnome.org>
From Xavier Roche <roche@exalead.com>
* gsf/gsf-msole-utils.c (msole_prop_parse) : gsize is not always
guinit32. Fixes sparc-64 problem.
* gsf/gsf-infile-msvba.c (vba3_dir_read) : ditto.
2003-04-01 Jody Goldberg <jody@gnome.org>
* gsf/gsf-impl-utils.h : Add utils for objects in plugins
2003-03-20 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Better checks for bz2
2003-03-20 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-bzip.c (gsf_input_memory_new_from_bzip): Warning
killer.
* gsf/gsf-libxml.c (gsf_xml_in_doc_new): Kill warning.
2003-03-09 Jody Goldberg <jody@gnome.org>
* Relicense from GPL -> LGPL
2003-03-05 Dom Lachowicz <cinamod@hotmail.com>
* NEWS: update for correctness and mention AR infile
* README: typo police
2003-03-05 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c : More morten warnings
2003-03-05 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-memory.c (gsf_input_memory_seek): Fix return type.
* gsf/gsf-input.c (gsf_input_seek): Fix failure return.
2003-03-05 Morten Welinder <terra@diku.dk>
* gsf/gsf-infile.c (gsf_infile_num_children): Fix failure return
value.
(gsf_infile_name_by_index): Ditto.
(gsf_infile_child_by_index): Ditto.
(gsf_infile_child_by_name): Ditto.
* gsf/gsf-outfile.c (gsf_outfile_new_child): Ditto.
2003-03-04 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-zip-impl.h: s/off_t/gsf_off_t
* gsf/gsf-infile-ar.[ch]: AR infile. DOES NOT YET WORK
2003-02-23 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-input.c (gsf_input_copy): remove == TRUE for Morten
2003-02-22 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-input.c (gsf_input_uncompress): Support uncompressing BZ2
streams as well, optionally
2003-02-22 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-output-bzip.c: Restructure things so that it's possible to
build without bzip2 support
2003-02-22 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-input-textline.c: Replace g_realloc with g_renew
* gsf/gsf-output-memory.c: Ditto
2003-02-21 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-input-bzip.c: Implement this
* gsf/gsf-input-memory.[ch]: New function: gsf_input_memory_new_clone
* gsf/Makefile.am: Build bz2 importer, distribute header
* tests/test-bzip.c: New test
* tests/Makefile.am: Add new test
2003-02-20 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-input-bzip.[ch]: Stubs for a BZ2 input I'm working on
2003-02-18 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-input.c (gsf_input_class_init): Install GObject properties
(gsf_input_get_property): Ditto
(gsf_input_set_property): Ditto
* gsf/gsf-output.c (gsf_output_class_init): Install GObject properties
(gsf_output_get_property): Ditto
(gsf_output_set_property): Ditto
2003-02-14 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Emit a warning instead of breaking if VFS and Bonobo
aren't found, but --without-gnome wasn't specified. Makes the KDE folk
happy.
2003-02-11 Jody Goldberg <jody@gnome.org>
* configure.in : compartmentalize the bzip config tests, and trust
libtool for the dependent libraries enough to not mention them in
the pkg-config file
* gsf/gsf-output-bzip.c : improve the conditionalization.
* gsf/gsf-input-iochannel.c (gsf_input_memory_new_from_iochannel) :
warning suppression.
2003-02-09 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Changes to (optionally) compile bz2 functionality
* Makefile.am: Ditto
* gsf/Makefile.am: Ditto
* tests/Makefile.am: Ditto
* gsf/gsf-output-bzip2.c: Changes to optionally compile parts of this
2003-02-09 Dom Lachowicz <cinamod@hotmail.com>
* tests/test-out-bzip.c: Tester for new BZip2 output
* gsf/gsf-impl-utils.h: Correct typo
* gsf/gsf-output-gzip.c: Fix memory leak (leaked buffer)
* gsf/gsf-output-bzip.[ch]: New output class, not currently built
2003-02-09 Dom Lachoiwcz <cinamod@hotmail.com>
* gsf/gsf-input-iochannel.[ch]: Rework as per Jody's suggestions. Now
it is a utility constructor.
2003-02-09 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-input-iochannel.c: Fixed iochannel. Unfortunately uses memory
backend because there's no way to query the size of an IOChannel
2003-02-07 Rodrigo Moya <rodrigo@gnome-db.org>
* gsf/gsf-input-iochannel.[ch]: new GIOChannel based input.
2003-02-07 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-doc-meta-data.[ch]: Clean API a bit to include consts, gsize
2003-02-05 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close) : clip long names,
and do not output a name for the root file.
2003-02-04 Dom Lachowicz <cinamod@hotmail.com>
* Changed below commit to use g_new instead of g_malloc + typecast, at
Jody's and Morten's request
2003-02-01 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-infile-msole.c
* gsf/gsf-infile-zip.c
* gsf/gsf-input-gzip.c
* gsf/gsf-input-stdio.c
* gsf/gsf-input-textline.c
* gsf/gsf-outfile-msole.c
* gsf/gsf-output-gzip.c
* gsf/gsf-output-memory.c
* gsf/gsf-utils.c
* gsf-gnome/gsf-input-bonobo.c
* gsf-gnome/gsf-input-gnomevfs.c: More castings needed
2003-02-01 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-infile-msole.c: Some castings to help things build using
MSVC++
* gsf/gsf-msole-utils.c: Ditto
2003-01-31 Dom Lachowicz <cinamod@hotmail.com>
* test/*.c: Correctness fixes in the testcases. No need to unref a null
object
2003-01-29 Dom Lachowicz <cinamod@hotmail.com>
* *: With Jody's permission, change all _new() calls to return the
derived/subclassed type, instead of the mix we had before
* tests/*: Updated to conform with above
2003-01-28 Jody Goldberg <jody@gnome.org>
* configure.in : post release version bump
2003-01-28 Jody Goldberg <jody@gnome.org>
* Release 1.7.2
2003-01-24 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_in_start_element) : be a touch more anal.
2003-01-24 Jody Goldberg <jody@gnome.org>
* configure.in : remove -Wunreachable-code it was damn irritating and
mostly wrong.
* gsf/gsf-msole-utils.c : warning suppression.
* gsf/gsf-libxml.c (gsf_xml_in_start_element) : support default
namespaces.
(gsf_xml_in_end_element) : ditto.
(gsf_xml_in_start_document) : ditto.
2003-01-23 J.H.M. Dassen (Ray) <jdassen@debian.org>
* configure.in: Calculate MAJOR_VERSION_PLUS_MINOR_VERSION.
2003-01-22 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c : Rename everything (again) and add namespace
support for the import wrappers.
* configure.in : bump version to 1.7.1 to reflect the major changes in
the xml import/export api.
2003-01-22 J.H.M. Dassen (Ray) <jdassen@debian.org>
* gsf/gsf-utils.h, gsf/gsf-utils.c (gsf_base64_encode_close,
gsf_base64_encode_step), gsf/gsf-input.c (gsf_input_copy,
gsf_input_uncompress),
gsf-input-textline.c (gsf_input_textline_utf8_gets): Fixed signedness.
2003-01-21 J.H.M. Dassen (Ray) <jdassen@debian.org>
* gsf/gsf-msole-utils.c: Mark the 11644473600 constant as ULL.
2003-01-21 J.H.M. Dassen (Ray) <jdassen@debian.org>
* gsf/gsf-input.c: The gzip signature consists of unsigned chars.
2003-01-21 J.H.M. Dassen (Ray) <jdassen@debian.org>
* gsf/gsf-libxml.c, gsf/gsf-output-memory.c, gsf/gsf-output.c,
gsf/gsf-structured-blob.c, gsf/gsf-zip-utils.c: #include <string.h> for
strcmp(), strlen() and memcpy().
2003-01-21 J.H.M. Dassen (Ray) <jdassen@debian.org>
* configure.in: Redirect grep output to /dev/null instead of using -q
which Morten pointed out doesn't work on Solaris.
2003-01-20 J.H.M. Dassen (Ray) <jdassen@debian.org>
* configure.in: Check if -D_POSIX_SOURCE is needed for the fdopen()
prototype in a cleaner fashion; might fix problems on Mac OS X.
2003-01-09 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-stdio.c (gsf_input_stdio_read): Handle eof.
2003-01-08 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-output-iochannel.c (gsf_output_iochannel_write): ensure
large writes happen
* gsf-gnome/gsf-output-gnomevfs.c (gsf_output_gnomevfs_write):
Ditto
* gsf/gsf-input-stdio.c (gsf_input_stdio_read): Ensure that large
reads happen
* gsf-gnome/gsf-output-gnomevfs.c (gsf_input_gnomevfs_read) :
Ditto
2003-01-08 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close) : fix off by 1 in
calculation of how many meta bats are required. Store correct
position of initial xbat, the original code did not take small
blocks into account.
* gsf/gsf-infile-msole.c (ole_make_bat) : add protection against
cycles.
2003-01-07 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_output_xml_add_attr_cstr_safe) : clone over
logic for escaping strings from libxml and revamp it to be more
libgsf-ish.
* gsf/gsf-utils.c : rename the base64 utilities and clean up the types
and const to match gsf conventions.
2003-01-06 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-output-transaction.c : New capability - transacted
outputs. Not thoroughly tested.
* tests/test-trans.c : Transaction testsuite for above
* gsf/gsf-output-stdio.c (gsf_output_stdio_write) : Put write
inside of a loop to ensure that large writes are carried out
properly and feof is properly detected
* TODO: remove the "try to support canceling a write" item since
such functionality is supported via transactions
2003-01-05 Tor Lillqvist <tml@iki.fi>
* configure.in: Check for lstat() and readlink(). Check for
native Win32 and for Win32 in general (including Cygwin). Set
automake conditionals OS_WIN32 and PLATFORM_WIN32 accordingly.
Add AC_LIBTOOL_WIN32_DLL.
* gsf/Makefile.am: On Win32, use -no-undefined, and install (and
uninstall) import libraries.
* gsf/gsf-output-stdio.c: Add workaround #defines for various Unix
stuff on Win32. Bypass follow_symlinks() unless HAVE_READLINK.
2003-01-05 Jody Goldberg <jody@gnome.org>
* gsf/gsf-utils.c : Pull in the bas64 utilites from evolution. Unused
for now.
2003-01-05 Jody Goldberg <jody@gnome.org>
* gsf/gsf-output.c (cb_output_unwrap) : renamed from
cb_output_wrap_screwup and weaken restrictions. The weak ref
handler is called before the wrappers finalize, so we can not always
unwrap in such a way as to avoid a warning. Just handle it silently
now.
(gsf_output_wrap) : ditto. Weaken the requirement of the wrapper to
be a GObject, no need for a full fledged GsfOutput.
(gsf_output_unwrap) : ditto.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close) : fix reversal of
arguments for the wrapping.
(gsf_outfile_msole_write) : ditto.
* gsf/gsf-outfile-zip.c (zip_init_write) : ditto.
(zip_close_stream) : ditto.
* gsf/gsf-libxml.c : rename xml_sax -> GsfInputXML
(GsfOutputXML) : new
2003-01-03 Jody Goldberg <jody@gnome.org>
* gsf/gsf-impl-utils.h : add hooks for interfaces
2002-12-24 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (gsf_msole_metadata_read) : patch some warnings.
2003-01-01 J.H.M. Dassen (Ray) <jdassen@debian.org>
* debian/changelog, debian/control, debian/libgsf-1-dev.dirs,
debian/libgsf-1-dev.files, debian/rules: Updated.
2002-12-30 Jon K Hellan <hellan@acm.org>
* gsf/gsf-msole-utils.c (msole_prop_parse): Check if res is a GValue.
(gsf_msole_metadata_read): Check if v is a GValue and holds an int
before reading codepage. Check if v is a GValue before unsetting.
2002-12-23 Morten Welinder <terra@diku.dk>
* gsf/gsf-libxml.c (gsf_xml_output_buffer_new): Fix comment and
ref output to match gsf_libxml_close.
2002-12-20 Morten Welinder <terra@diku.dk>
* gsf/gsf-libxml.c (gsf_libxml_close): Plug leak.
2002-12-19 Dom Lachowicz <cinamod@hotmail.com>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new_uri) : Able to
open URI objects as well as strings
* gsf-gnome/gsf-output-gnomevfs.c (gsf_output_gnomevfs_new_uri) : ditto
2002-12-11 Jody Goldberg <jody@gnome.org>
* configure.in : post release version bump.
2002-12-11 Jody Goldberg <jody@gnome.org>
* Release 1.6.0
2002-12-10 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (gsf_msole_lid_for_language) : Suggestion from
Nicolas Peninguy <peninguy.nicolas@wanadoo.fr>
2002-12-10 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (gsf_infile_msole_finalize) : do not unref
the info for the magic internal small block file it was already
removed.
(ole_info_get_sb_file) : do not create a reference loop from the info
to the small block file and back. Remove the default reference from
the magic internal small block file to the info.
2002-12-10 Morten Welinder <terra@diku.dk>
* gsf/gsf-structured-blob.c (blob_finalize): Link to the right
parent type.
* gsf/gsf-outfile-zip.c (zip_dirent_new_out): Don't allocate and
throw away memory.
2002-12-09 Jon K Hellan <hellan@acm.org>
* gsf/gsf-msole-utils.c (msole_prop_parse): Fix typo.
2002-12-09 Morten Welinder <terra@diku.dk>
* gsf/gsf-outfile-zip.c (disconnect_children): Factor out from
zip_close_root.
(gsf_outfile_zip_finalize): Use here too. (This closes a leak if
closing fails.)
* gsf/gsf-msole-utils.c (msole_prop_parse): Free the property
values until we figure out what to do with them.
* gsf/gsf-infile-msole.c (gsf_infile_msole_finalize): Plug leak.
* gsf/gsf-timestamp.c (gsf_timestamp_as_string): 64-bit fix.
2002-12-04 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-input.c (gsf_input_copy): Copies a GsfInput to a GsfOutput.
Will probably be useful for some abiword stuff I'll be doing
* tests/test-cp.c: New test program exercising gsf_input_copy
2002-12-04 Morten Welinder <terra@diku.dk>
* gsf/gsf-output-stdio.c (follow_symlinks): Fix error return
conventions.
(gsf_output_stdio_new): Clean up error messages.
2002-12-03 Morten Welinder <terra@diku.dk>
* gsf/gsf-output-stdio.c (gsf_output_stdio_close): Try much harder
restoring owner and permissions. Still not good.
(gsf_output_stdio_new): Simplify using g_path_get_dirname.
Respect non-writable files!
(follow_symlinks): Simplify using g_path_is_absolute and
g_path_get_dirname. Eliminate some race conditions.
2002-11-29 Jon K Hellan <hellan@acm.org>
* gsf/gsf-output-gzip.c (init_gzip): Return set error if
deflateInit2 fails.
(gzip_output_header): Add missing argument to time().
2002-11-27 Jon K Hellan <hellan@acm.org>
* gsf/gsf-libxml.c (gsf_libxml_close): Change to do nothing. We
expect higher layers to close.
(gsf_xmlDocFormatDump): Use encoding argument. Don't call
xmlOutputBufferClose - libxml calls it for us via the callback we
supply.
* gsf/gsf-libxml.[ch] (gsf_xmlDocFormatDump: Add encoding parameter.
2002-11-27 Jon K Hellan <hellan@acm.org>
* tests/Makefile.am (check_PROGRAMS): Add test-out-gzip.c
* gsf/gsf-output-gzip.[ch]: New files. Gzip output.
* gsf/Makefile.am (libgsf_1_la_SOURCES): Add gsf-output-gzip.c.
(libgsf_1_include_HEADERS): Add gsf-output-gzip.h.
2002-11-25 Jon K Hellan <hellan@acm.org>
* tests/test-outmem-printf.c (test): Adjust to new
gsf_output_memory_get_bytes API.
* gsf/gsf-outfile-zip.c (root_register_child): Don't ref children
which are directories.
* tests/test-zip-out-subdirs.c (test): Make close/unref strategy
the same as in test-cp-zip/test-cp-ole (with change above, this
works!). Test closing subdirs at different times in the lifecycle.
2002-11-25 Jon K Hellan <hellan@acm.org>
* gsf/gsf-outfile-zip.c (zip_init_write): Fail if already writing
to another stream in archive. Set "writing" flag in zip root to
indicate that we're writing to a stream.
(zip_close_stream): Unset "writing" flag in zip root to indicate
that we're now free to write to a new stream.
(zip_close_root): s/g_message/g_warning/.
* tests/test-zip-out-subdirs.c (test): Close each substream before
starting to write to the next.
2002-11-24 Jon K Hellan <hellan@acm.org>
* gsf/gsf-outfile-zip.c (stream_name_len,
stream_name_write_to_buf): Stop recursing at root of zip archive,
i.e. don't append name of archive file to stream names. Take zip
rather than outfile argument.
(stream_name_build): Take zip rather than outfile argument.
(zip_dirent_new_out): Call stream_name_build with new signature.
2002-11-24 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-ouput-iochannel.c (): New output sink. No IOChannel
input sink possible due to API limitations
* gsf/gsf-input-stdio.c (_new): Open files with "rb" status
2002-11-24 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-output-memory.c (gsf_output_memory_get_bytes): WARNING:
changed prototype
(gsf_output_memory_seek): Re-implement seek() in a saner fashion
(gsf_output_memory_write): ditto
(gsf_output_memory_vprintf): ditto
(gsf_output_memory_init): ditto
2002-11-24 Dom Lachowicz <cinamod@hotmail.com>
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_seek): Code
cleanup
2002-11-24 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-output-memory.c (gsf_output_memory_seek): Implement
seek() by implementing a cursor as well as the existing nwritten
and capacity fields
(gsf_output_memory_write): ditto
(gsf_output_memory_vprintf): ditto
(gsf_output_memory_init): ditto
2002-11-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_vprintf) : rename from
gsf_output_msole_vprintf to conform to naming convention.
(gsf_outfile_msole_class_init) : hook up the vprintf method and fix
some old cut-n-paste errors.
* gsf/gsf-output.c (gsf_output_finalize) : free the new printf buf.
(gsf_output_init) : init the new printf buf.
(gsf_output_vprintf) : use a stream local buffer and handle older
version of glibc that did not return the required number of
characters.
2002-11-23 Jon K Hellan <hellan@acm.org>
* tests/test-zip-out-subdirs.c: New test program. Add.
* tests/Makefile.am (check_PROGRAMS): Add test-zip-out-subdirs.
2002-11-23 Jon K Hellan <hellan@acm.org>
* tests/test-zip-out.c: New test program. Add.
* tests/Makefile.am (check_PROGRAMS): Add test-zip-out.
* gsf/gsf-outfile-zip.c (gsf_outfile_zip_finalize): Only free
vdirs from the root down.
(zip_trailer_write): Take no. of entries as a parameter, so that
the root_order array doesn't have to be live when we call this
function.
(zip_close_root): Slight tweak of Dom's fix.
2002-11-23 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-outfile-zip.c (zip_close_root): Free the root_array and
unref the child outputs when closing the root directory
2002-11-22 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-output-stdio.c (gsf_output_stdio_new): Disable creating
backup copies of files, open files with "wb" status instead of
just "w"
2002-11-22 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-output.c (gsf_output_puts): Check for null input
(gsf_output_vprintf): Don't use static internal buffer, will lead
to nasty race conditions and a memory-leak on shutdown
2002-11-22 Jon K Hellan <hellan@acm.org>
* tests/test-outmem-printf.c: New test program. Add.
* tests/Makefile.am (check_PROGRAMS): Add test-outmem-printf.
* gsf/gsf-output-memory.c (gsf_output_memory_vprintf):
New. vprintf implementation which uses g_vsnprintf directly
into buffer if there is space.
(gsf_output_memory_class_init): Initialize vprintf virtual.
2002-11-22 Jody Goldberg <jody@gnome.org>
* doc/Makefile.am : pull in newer magic from gtk.
* configure.in : ditto.
2002-11-22 Jon K Hellan <hellan@acm.org>
* gsf/gsf-outfile-msole.c (gsf_output_msole_vprintf): New. vprintf
implementation which falls through to the sink's implementation if
possible.
(gsf_outfile_msole_class_init): Initialize vprintf virtual.
* gsf/gsf-output-stdio.c (gsf_output_stdio_vprintf): New. vprintf
implementation which just falls through to vfprintf.
(gsf_output_stdio_class_init): Initialize vprintf virtual.
2002-11-22 Jon K Hellan <hellan@acm.org>
* tests/test-msole-printf.c: New test program. Add.
* tests/Makefile.am (check_PROGRAMS): Add test-msole-printf.
2002-11-21 Jon K Hellan <hellan@acm.org>
* gsf/gsf-output.c (gsf_output_puts): Remove unused variable.
2002-11-21 Jon K Hellan <hellan@acm.org>
* gsf/gsf-libxml.c (gsf_libxml_write): Fix inverted
success/failure test.
* gsf/gsf-output-stdio.c (gsf_output_stdio_new): Set name
2002-11-21 Jon K Hellan <hellan@acm.org>
* gsf/gsf-output.[ch] (gsf_output_printf): New function. printf
for GsfOutput.
(gsf_output_puts): New function. fputs for GsfOutput.
* gsf/gsf-output-impl.h (struct GsfOutputClass): Add Vprintf virtual.
* gsf/gsf-output.c (gsf_output_class_init): Initialize to default
vprintf method.
(gsf_output_vprintf): New function: Default vprintf method.
* tests/test-out-printf.c: New test program. Add.
* tests/Makefile.am (check_PROGRAMS): Add test-out-printf.
2002-10-28 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_dirent_new) : be more careful about
invalid stream names.
2002-10-30 J.H.M. Dassen (Ray) <jdassen@debian.org>
* debian/changelog, debian/control, debian/rules: updated.
* debian/shlibs.local: dropped.
2002-10-26 Jody Goldberg <jody@gnome.org>
* configure.in : post release version bump
2002-10-26 Jody Goldberg <jody@gnome.org>
* Release 1.5.0
2002-10-26 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (gsf_msole_lid_to_codepage) : remove warning.
2002-10-14 Jody Goldberg <jody@gnome.org>
* gsf/gsf-output-memory.c (gsf_output_memory_finalize) : close != exit.
Chain to the parent, and keep the content around until detruction.
2002-10-22 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-msole-utils.c
(gsf_msole_iconv_open_codepage_for_export): Fix bug where we used
UTF-8 regardless of the 'from' codepage
2002-10-21 Dom Lachowicz <cinamod@hotmail.com>
* gsf/gsf-msole-utils.c (*): Large rewrite of the codepage handling
code. More functions, more complete, more flexible, etc...
2002-10-18 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-textline.c (gsf_input_textline_ascii_gets): Handle
end-of-buffer case without asserting.
2002-10-08 Morten Welinder <terra@diku.dk>
* gsf/gsf-utils.c (gsf_filename_to_utf8): New function.
* gsf/gsf-input-stdio.c (gsf_input_stdio_new): Ensure sane
filenames before putting them into error messages.
* gsf/gsf-output-stdio.c (follow_symlinks): Ditto.
(gsf_output_stdio_new): Ditto.
(gsf_output_stdio_close): Ditto.
* gsf/gsf-input-memory.c (gsf_input_mmap_new): Ditto.
2002-10-01 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xmlSAX_prep_dtd) : support recursive
structures.
2002-09-30 Jody Goldberg <jody@gnome.org>
* configure.in : post release bump
2002-09-30 Jody Goldberg <jody@gnome.org>
* Release 1.4.0
2002-09-27 Jody Goldberg <jody@gnome.org>
* gsf/gsf-structured-blob.c (gsf_structured_blob_read) : fix.
(gsf_structured_blob_write) : fix.
2002-09-26 Jon K Hellan <hellan@acm.org>
* gsf/gsf-output-memory.c: Remove debug printouts.
2002-09-26 Jon K Hellan <hellan@acm.org>
* gsf/gsf-output-memory.[ch] (gsf_output_memory_get_bytes): Take
1st argument GsfOutputMemory instead of GsfOutput.
* gsf/gsf-output-memory.c (struct _GsfOutputMemory): Add
'capacity' member.
(gsf_output_memory_new): Don't duplicate work done in
gsf_output_memory_init.
(gsf_output_memory_expand): Encapsulate expansion and make it more
intelligent.
(gsf_output_memory_write): Use gsf_output_memory_expand.
(gsf_output_memory_init): Initialize capacity.
2002-09-25 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_read) : remove some debug spew
that snuck in.
2002-09-24 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c : support unicode property names and values,
including some ugly heuristics to add the documented padding only
when using unicode (? what where they smoking ?)
2002-09-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xmlSAX_prep_dtd) : typo
and make the errors more verbose.
2002-09-20 Jody Goldberg <jody@gnome.org>
* gsf/gsf-structured-blob.c (gsf_structured_blob_read) : handle out of
memory.
2002-09-20 Jody Goldberg <jody@gnome.org>
* gsf/gsf-libxml.c (gsf_xmlSAX_parse) : some initial work on utility
structures and routines to make building a sax parser easy.
* gsf/gsf-structured-blob.c : new utility to read/write trees of
unparsed data.
2002-09-19 Jon K Hellan <hellan@acm.org>
* gsf/gsf-outfile-zip.h (enum GsfZipCompressionMethod): Define.
* gsf/gsf-outfile-zip.[ch]
(gsf_outfile_zip_set_compression_method): New function. Set
compression method.
* gsf/gsf-outfile-zip.c (struct _GsfOutfileZip): Add
compression_mehod member.
(zip_dirent_new_out): Set compression method.
(zip_header_write): Write current compression method.
(zip_init_write, zip_close_stream, gsf_outfile_zip_write): Handle
noncompressed streams.
(zip_header_write_sizes): New function. Write crc and sizes to
local file header.
(gsf_outfile_zip_init): Initialize compression method to deflated.
(gsf_outfile_zip_set_compression_method): New function. Set
compression method.
* gsf/gsf-output-stdio.c (gsf_output_stdio_seek): Fix typo.
2002-09-19 Jon K Hellan <hellan@acm.org>
* gsf/gsf-infile-zip.c (zip_read_dirents): Don't expect a file
header at the start of the archive. It's not required by the
specification, and e.g. self-extracting zips do not have one.
With this change, we can read self-extracting zips.
2002-09-16 Jody Goldberg <jody@gnome.org>
* gsf/gsf-output.c (gsf_output_close) : always close even if the
implementation failed.
(gsf_output_finalize) : free the error.
(gsf_output_init) : init the error.
(gsf_output_seek) : inver the return flag to be consistent with write.
(gsf_output_error) : new.
(gsf_output_set_error) : new.
* gsf/gsf-output-stdio.c : borrow the temp file handling from gedit so
that we can handle setgid directories correctly.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_seek) :
invert the return type.
* gsf/gsf-outfile-zip.c (gsf_outfile_zip_seek) : ditto.
* gsf/gsf-output-memory.c (gsf_output_memory_seek) : ditto.
* gsf/gsf-msole-utils.c (gsf_msole_metadata_write) : add some error
checking.
2002-09-15 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (gsf_msole_iconv_win_codepage) : fix warning.
* configure.in : reorder the _BSD_SOURCE and _POSIX_SOURCE tests
because POSIX changes things under linux.
Add an lstat test
2002-09-15 Jon K Hellan <hellan@acm.org>
* tests/test-zip2.c: Add.
2002-09-14 Rodrigo Moya <rodrigo@gnome-db.org>
* gsf/gsf-command-context.[ch]: added support for warnings.
(gsf_command_context_has_warnings, gsf_command_context_push_warning,
gsf_command_context_pop_warning): new functions.
2002-09-14 Rodrigo Moya <rodrigo@gnome-db.org>
* gsf/gsf-command-context.[ch]: new class for command contexts,
stealing some implementation from GsfIOContext.
* gsf/gsf-io-context.[ch]: base this class on GsfCommandContext.
2002-09-14 Jon K Hellan <hellan@acm.org>
* gsf/gsf-infile-zip.c (gsf_infile_zip_read): Fix reading
non compressed streams.
2002-09-13 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_read) : tweak boundary case
to match reality
2002-09-14 Jon K Hellan <hellan@acm.org>
* gsf/gsf-outfile-zip.[ch]: Really add this time.
* gsf/gsf-infile-zip.c: gsf-zip-utils.h doesn't exist - don't
include it!
* gsf/gsf-zip-utils.c: Ditto.
2002-09-14 Jon K Hellan <hellan@acm.org>
* tests/Makefile.am: Add test-cp-zip.c
2002-09-13 Jon K Hellan <hellan@acm.org>
* tests/test-cp-zip.c: Add a test program for zip export.
2002-09-13 Jon K Hellan <hellan@acm.org>
* gsf/gsf-zip-util.c: Add.
* gsf/gsf-infile-zip.c (enum ZipCompressionMethod, struct
ZipDirent, struct ZipDir): Move to gsf-zip-impl.h.
(vdir_new, vdir_free, vdir_compare, vdir_add_child,
zip_dirent_free): Move to gsf-zip-utils.c.
(zip_dirent_new): Rename to zip_dirent_new_in.
(vdir_free, zip_info_unref): Add free_dirent parameter to
vdir_free.
(zip_child_init): Move before first use.
(gsf_infile_zip_finalize): Free zlib stream.
* gsf/Makefile.am: Add gsf-zip-utils.c, gsf-outfile-zip.[ch]
2002-09-12 Dom Lachowicz <cinamod@hotmail.com>
* gsf/Makefile.am: add gsf-output-memory
* gsf/gsf-output-memory.c (_seek): fix seek type, compiles
* gsf-gnome/Makefile.am: add gsf-output-bonobo
* gsf-gnome/gsf-output-bonobo.c (): make compile
2002-09-06 Jon K Hellan <hellan@acm.org>
* gsf/gsf-input-gzip.c (init_zip): Factored out of gsf_input_gzip_new.
(gsf_input_gzip_new): See init_zip.
(gsf_input_gzip_dup): Dup source instead of sharing it, and
initialize zip context.
* gsf/gsf-infile-zip.c (gsf_infile_zip_dup): Call zip_child_init.
2002-09-04 Jon K Hellan <hellan@acm.org>
* gsf/gsf-infile-zip.c (struct ZipDirent, struct _GsfInfileZip,
zip_dirent_new, zip_dirent_free, zip_update_stream_in,
gsf_infile_zip_read, zip_child_init, gsf_infile_zip_seek,
gsf_infile_zip_init): Move zlib context to GsfInfile object. It is
per opened stream, not per subfile.
(gsf_infile_zip_init, gsf_infile_zip_new): Initialize all fields
in gsf_infile_zip_init.
2002-09-03 Jon K Hellan <hellan@acm.org>
* gsf/gsf-input-gzip.c (check_header): Fix typo.
2002-09-03 Jon K Hellan <hellan@acm.org>
* gsf/gsf-libxml.c (gsf_libxml_read): Don't signal error when
reading len = 0.
* gsf/gsf-input-gzip.c (check_header): Check signature before
seeking to end. Seeking to end is *expensive* if seek is slow in
underlying stream.
Add check that there's room for payload.
2002-09-02 Jon K Hellan <hellan@acm.org>
* gsf/gsf-infile-zip.c (struct _GsfInfileZip): Add seek_skipped.
(gsf_infile_zip_seek): Implement. As slow as gzip.
(zip_child_init): Initialize dirent->restlen,
dirent->crestlen. Don't call zip_update_stream_in.
(gsf_infile_zip_new): Initialize seek_skipped.
2002-09-01 Jody Goldberg <jody@gnome.org>
* tests/test-cat-zip.c : replace the old test with test-msole2.c
with s/msole/zip/ so that we get the end of file right.
2002-08-31 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-zip.c (gsf_infile_zip_num_children) : return -1 for
non directories.
2002-08-31 Jody Goldberg <jody@gnome.org>
* gsf/gsf-timestamp.c : dummy up a quick implementation.
* gsf/gsf-msole-utils.c (msole_prop_parse) : support FILETIME.
2002-08-30 Jody Goldberg <jody@gnome.org>
* configure.in : remove -Wconversion because it was pissing me off.
2002-08-30 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_parse) : add some basic
implementation.
(msole_prop_id_to_gsf) : new.
2002-08-29 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (gsf_msole_prop_read) : conditionalize the
debug spew.
2002-08-29 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-utils.c (gsf_msole_prop_parse) : new.
(gsf_msole_prop_read) : new.
(gsf_msole_metadata_read) : prepare to parse the actual properties.
2002-08-28 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input-gzip.c (gsf_input_gzip_new) : restore the current file
position when sniffing for gzip fails.
2002-08-28 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-metadata.c (gsf_msole_iconv_open_for_export) : moved
from gnumeric.
(gsf_msole_iconv_open_for_import) : ditto.
(gsf_msole_iconv_win_codepage) : ditto.
* gsf/gsf-utils.c (gsf_iconv_close) : ditto.
(gsf_extension_pointer) : moved from gnumeric, originally from libgnome.
2002-08-26 Jon K Hellan <hellan@acm.org>
* gsf-gnome/gsf-input-bonobo.[ch],
gsf-gnome/gsf-output-bonobo.[ch],
gsf-gnome/gsf-input-gnomevfs.[ch],
gsf-gnome/gsf-output-gnomevfs.c, gsf/gsf-infile-msvba.c,
gsf/gsf-input-gzip.h, gsf/gsf-input-impl.h,
gsf/gsf-input-memory.h, gsf/gsf-msole-impl.h,
gsf/gsf-output-impl.h, gsf/gsf-output-memory.h,
gsf/gsf-output-stdio.h, gsf/gsf-output.c, gsf/gsf-shared-memory.h,
gsf/gsf-zip-impl.h, gsf/gsf.h: Fix file headers - file name was
wrong.
2002-08-26 Jon K Hellan <hellan@acm.org>
* gsf/gsf-infile-zip.c (struct ZipVDir): Define struct to
represent a directory entry in a tree of contained files.
(struct ZipInfo): Add vdir. Move dirent_list here from
_GsfInfileZip.
(struct _GsfInfileZip): Add vdir. Remove dirent_list and dirent.
(vdir_new, vdir_free, vdir_child_by_name, vdir_child_by_index,
vdir_compare, vdir_add_child, vdir_insert): New
functions. Operations on file tree directories.
(zip_info_unref): Free dirent_list and vdir.
(zip_read_dirents): Renamed from zip_init_info. dirent_list now in
ZipInfo.
(zip_build_vdirs): New function. Build directory tree of contained
files.
(zip_init_info): New function, old name. Wraps zip_read_dirents
and zip_build_vdirs.
(gsf_infile_zip_dup): Copy vdir, not dirent.
(zip_update_stream_in,
(gsf_infile_zip_read): dirent now in vdir.
(zip_child_init): New function. Contains the parts of
gsf_infile_zip_new_child which operated on the zip file.
(gsf_infile_zip_new_child): Simplify and call zip_child_init.
(gsf_infile_zip_child_by_index, gsf_infile_zip_name_by_index): Use
vdir_child_by_index.
(gsf_infile_zip_child_by_name): Use vdir_child_by_name
(gsf_infile_zip_num_children): Count children in vdir.
(gsf_infile_zip_finalize): dirent_list is no longer freed here.
(gsf_infile_zip_init, gsf_infile_zip_new): Initialize vdir.
* gsf/gsf-zip-impl.h (ZIP_NAME_SEPARATOR): Define path name
component separator for zip archives.
2002-08-26 Morten Welinder <terra@diku.dk>
* gsf/gsf.h: Don't include <glib-object.h> here.
* gsf/gsf-input.h: Do it here.
* gsf/gsf-output.h: And here.
* configure.in: Take out -Wcast-align until someone fixes the
hundreds of things that violates it.
2002-08-25 Jody Goldberg <jody@gnome.org>
* configure.in : post release version bump
2002-08-25 Jody Goldberg <jody@gnome.org>
* Release 1.3.0
2002-08-22 Jon K Hellan <hellan@acm.org>
* gsf/gsf-infile-zip.c (zip_find_trailer): Fix case when no match
is found first time round.
2002-08-21 Jon K Hellan <hellan@acm.org>
* gsf/gsf-infile-zip.c (zip_find_trailer): Don't try to read
beyond EOF.
2002-08-21 Jon K Hellan <hellan@acm.org>
* gsf/gsf-infile-zip.c (struct _GsfInfileZip): Add buf and
buf_size for inflating.
(zip_init_info, gsf_infile_zip_dup): Use g_error_new rather than
g_set_error.
(gsf_infile_zip_read): Fix segfaulting bug. Make inflate buffer a
private member of the class rather than a static.
(gsf_infile_zip_finalize): Free inflate buffer.
(gsf_infile_zip_new): Initialize inflate buffer.
* tests/test-cp-msole.c: Revert 2nd arg to
gsf_input_read/write from gsf_off_t to size_t.
2002-08-21 Mikael Hallendal <micke@codefactory.se>
* tests/test-textline.c (test): output argv[0] when printing
Usage.
2002-08-20 Jody Goldberg <jody@gnome.org>
* gsf-gnome/Makefile.am : depend on libgsf
2002-08-20 Jon K Hellan <hellan@acm.org>
* gsf-gnome/.cvsignore: Add.
2002-08-19 Jon K Hellan <hellan@acm.org>
* tests/test-cp-msole.c (clone): Cast 2nd arg to
gsf_input_read/write to gsf_off_t.
2002-08-19 Jon K Hellan <hellan@acm.org>
* gsf/gsf.h: Remove GsfSeekType.
* gsf/gsf-input.[ch]: s/GsfSeekType/GSeekType/ in gsf_input_seek
signature.
* gsf/gsf-output.[ch]: s/GsfSeekType/GSeekType/ in gsf_output_seek
signature.
* gsf/gsf-input-impl.h (GsfInputClass) s/GsfSeekType/GSeekType/ in
Seek method.
* gsf/gsf-output-impl.h (GsfOutputClass) Ditto.
* gsf/gsf-infile-msole.c (gsf_infile_msole_seek):
s/GsfSeekType/GSeekType/ in signature.
* gsf/gsf-infile-msvba.c (gsf_infile_msvba_seek): Ditto.
* gsf/gsf-infile-zip.c (gsf_infile_zip_seek): Ditto.
* gsf/gsf-input-gzip.c (gsf_input_gzip_seek): Ditto.
* gsf/gsf-input-memory.c (gsf_input_memory_seek): Ditto.
* gsf/gsf-input-stdio.c (gsf_input_stdio_seek): Ditto.
* gsf/gsf-input-textline.c (gsf_input_textline_seek): Ditto.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_seek): Ditto.
* gsf/gsf-output-stdio.c (gsf_output_stdio_seek): Ditto.
* gsf-gnome/gsf-input-bonobo.c (gsf_input_bonobo_seek): Ditto.
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_seek): Ditto.
* gsf-gnome/gsf-output-bonobo.c (gsf_output_bonobo_seek): Ditto.
* gsf-gnome/gsf-output-gnomevfs.c (gsf_output_gnomevfs_seek): Ditto.
* gsf/gsf-input.c (gsf_input_seek): Replace GSF_SEEK_SET, CUR, END
with G_SEEK_SET, CUR, END.
* gsf/gsf-input-gzip.c (gsf_input_gzip_seek): Ditto.
* gsf/gsf-input-stdio.c (gsf_input_stdio_seek): Ditto.
* gsf/gsf-output.c (gsf_output_seek): Ditto.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_seek): Ditto.
* gsf/gsf-output-stdio.c (gsf_output_stdio_seek): Ditto.
* gsf-gnome/gsf-input-bonobo.c (gsf_input_bonobo_seek): Ditto.
* gsf-gnome/gsf-input-gnomevfs.c (gsf_input_gnomevfs_seek): Ditto.
* gsf-gnome/gsf-output-bonobo.c (gsf_output_bonobo_seek): Ditto.
* gsf-gnome/gsf-output-gnomevfs.c (gsf_output_gnomevfs_seek): Ditto.
* gsf/gsf-infile-msole.c (ole_get_block, ole_init_info,
gsf_infile_msole_read, gsf_infile_msole_new_child):
s/GSF_SEEK_SET/G_SEEK_SET/.
* gsf/gsf-infile-msvba.c (vba_inflate, vba56_dir_read,
gsf_infile_msvba_seek, gsf_infile_msvba_seek): Ditto.
* gsf/gsf-infile-zip.c (zip_find_trailer, zip_dirent_new)
(zip_init_info, zip_init_info, zip_update_stream_in)
(gsf_infile_zip_new_child): Ditto.
* gsf/gsf-input-gzip.c (check_header, check_header): Ditto.
* gsf/gsf-input.c (gsf_input_dup, gsf_input_uncompress): Ditto.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_seek,
gsf_outfile_msole_close): Ditto.
2002-08-18 Jon K Hellan <hellan@acm.org>
* configure.in: Revert today's first change to the file, but keep
the second.
2002-08-18 Jon K Hellan <hellan@acm.org>
* configure.in: See below. Hope it's true this time.
2002-08-18 Jon K Hellan <hellan@acm.org>
* configure.in: Make --without-gnome work.
2002-08-18 Jon K Hellan <hellan@acm.org>
* acinclude.m4: Change it to just a comment referring to
python/README-python.
* acinclude.m4.am15: Added. A copy of the previous version, but no
longer commented out. See python/README-python.
2002-08-17 Jody Goldberg <jody@gnome.org>
* gsf/Makefile.am : install the xml header
2002-08-17 Jon K Hellan <hellan@acm.org>
* libgsf-gnome-1.pc.in (Cflags): Fix Libs line.
2002-08-17 Jon K Hellan <hellan@acm.org>
* Makefile.am (pkgconfig_DATA): Add libgsf-gnome-1.pc when
--with-gnome is selected.
(EXTRA_DIST): Add libgsf-gnome-1.spec, libgsf-gnome-1.spec.in and
libgsf-gnome-1.pc.in
2002-08-16 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close) : pad the last bat
and sbat block with unused rather than 0.
(ole_pad_bat_unused) : New.
2002-08-16 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close) : clean up the
iteration to calculate the number of bat blocks required to hold the
bat and metabat. Fill in the bat flags for the metabat.
2002-08-16 Jody Goldberg <jody@gnome.org>
* configure.in : move bonobo and gnome-vfs into a standalone library.
* gsf/gsf-infile-msole.c (ole_init_info) : add a warning about invalid
state.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_new) : Fill with 0xff
instead of 0 to be more compatible with MS.
(gsf_outfile_msole_close) : If there is no small block data don't
pretend there is an allocation chain for it. Write BAT entries for
the bat itself. TODO : BAT entries for the metabat.
2002-08-16 Morten Welinder <terra@diku.dk>
* gsf/gsf-io-context.c (gsf_io_context_update_progress): Don't
zero out memory only to overwrite it.
2002-08-16 Jon K Hellan <hellan@acm.org>
* configure.in: Require autoconf 2.52
2002-08-16 Morten Welinder <terra@diku.dk>
* gsf/gsf-metadata-bag.c (gsf_metadata_bag_new): Fix prototype.
* gsf/gsf-output-memory.c (gsf_output_memory_new): Ditto.
(gsf_output_memory_write): Fix brown-bag.
2002-08-15 Jon K Hellan <hellan@acm.org>
* configure.in: Test for orbit-python.
2002-08-15 Jon K Hellan <hellan@acm.org>
* gsf/gsf-input-memory.c (gsf_input_mmap_new): Stop warnings on
Solaris.
2002-08-15 Jon K Hellan <hellan@acm.org>
* gsf/gsf-shared-memory.c (gsf_shared_memory_finalize): Cast to
gsf_off_t when checing for overflow.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close,
gsf_outfile_msole_write): Ditto.
* gsf/gsf-input-bonobo.c (gsf_input_bonobo_seek): Ditto.
* gsf/gsf-infile-zip.c (zip_find_trailer): Ditto.
* gsf/gsf-output-stdio.c (gsf_output_stdio_seek): Use long, not
off_t for offset arg. to fseek.
* gsf/gsf-input-stdio.c (gsf_input_stdio_seek): Ditto.
* gsf/gsf-input-memory.c (gsf_input_mmap_new): Add forgotten
argument to g_error_new.
2002-08-15 Jon K Hellan <hellan@acm.org>
* configure.in: Bump minor verision to 1.3. Add AC_SYS_LARGEFILE.
* gsf/gsf.h: Rename GsfOff_t enum to GsfSeekType. Define gsf_off_t
type to use instead of off_t. We have to do this because we do not
know what idea the application has of the size of off_t, this can
be defined with #define _FILE_OFFS_BITS xx.
* gsf/gsf-shared-memory.h (struct _GsfSharedMemory): Change type
of size to gsf_off_t.
* gsf/gsf-output-stdio.c (gsf_output_stdio_seek): Change type of
offset parameter to gsf_off_t, type of 'whence' parameter to
GsfSeekType. Check for overflow copying from gsf_off_t to off_t.
* gsf/gsf-output-impl.h (struct _GsfOutput): Change type of
cur_size, cur_offset to gsf_off_t.
(GsfOutputClass): Change type of offset parameter of Seek method
to gsf_off_t, type of 'whence' parameter to GsfSeekType.
* gsf/gsf-output-gnomevfs.c (gsf_output_gnomevfs_new): Various
fixes.
(gsf_output_gnomevfs_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType. Cast
'whence' argument to gnome_vfs_seek to GnomeVFSFileOffset to shut
up warning.
(gsf_output_gnomevfs_write): Cast 'bytes' argument to
gnome_vfs_write to GnomeVFSFileSize to shut up warning.
* gsf/gsf-output-bonobo.c (gsf_output_bonobo_seek): Change type of
offset parameter to gsf_off_t, type of 'whence' parameter to
GsfSeekType.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_seek): Change type of
offset parameter to gsf_off_t, type of 'whence' parameter to
GsfSeekType. Type of offset argument to gsf_input_seek has changed
to gsf_off_t. Use.
(gsf_outfile_msole_close): Return type of gsf_output_tell is
changed to gsf_off_t. Introduce gsf_off_t typed variable data_size
to detect overflow. Type of size argument to gsf_output_set_size
has changed to gsf_off_t. Use. Type of offset argument to
gsf_output_seek has changed to gsf_off_t. Use.
(gsf_outfile_msole_write): Return type of gsf_output_tell is
changed to gsf_off_t. Introduce gsf_off_t typed variables wsize
and start_offset to detect overflow.
* gsf/gsf-libxml.c (gsf_libxml_read): Return type of
gsf_input_remaining has changed to gsf_off_t. Use.
* gsf/gsf-io-context.c (GSF_CLASS): G_TYPE_GLIB is the parent
class, not the io-context class itself.
* gsf/gsf-input.h: (gsf_input_size, gsf_input_remaining,
gsf_input_tell): Change return type to gsf_off_t.
(gsf_input_seek): Change type of offset parameter to gsf_off_t,
type of 'whence' parameter to GsfSeekType.
* gsf/gsf-input.c (gsf_input_dup): Type of offset argument to
gsf_input_seek has changed to gsf_off_t. Use.
(gsf_input_size, gsf_input_remaining, gsf_input_tell): Change
return type to gsf_off_t.
(gsf_input_seek): Change type of offset parameter to gsf_off_t,
type of 'whence' parameter to GsfSeekType.
(gsf_input_set_size): Change type of size parameter to gsf_off_t.
(gsf_input_seek_emulate): Change type of pos parameter to
gsf_off_t.
(gsf_input_uncompress): Change type of cur_offset variable to
gsf_off_t. Type of offset argument to gsf_input_seek has changed
to gsf_off_t. Use.
* gsf/gsf-input-textline.c (gsf_input_textline_new): Remove cast
of size argument to gsf_input_set_size.
(gsf_input_textline_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType.
(gsf_input_textline_ascii_gets, gsf_input_textline_utf8_gets ):
Add 'remain' variable, and make sure that overflows don't occur.
* gsf/gsf-input-stdio.c (gsf_input_stdio_new): Change type of size
variable to gsf_off_t.
(gsf_input_stdio_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType. Check for
overflow copying from gsf_off_t to off_t.
* gsf/gsf-input-memory.h: Change type of length parameter to
gsf_off_t.
* gsf/gsf-input-memory.c (gsf_input_memory_new): Change type of
length parameter to gsf_off_t.
(gsf_input_memory_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType.
(gsf_input_mmap_new): Check for overflow copying from st.st_size
to ssize_t. Type of size argument to gsf_shared_memory_mmapped_new
and gsf_input_set_size has changed to gsf_off_t. Use.
* gsf/gsf-input-impl.h (struct _GsfInput): Change type of size,
cur_offset to gsf_off_t.
(GsfInputClass): Change type of offset parameter of Seek method to
gsf_off_t, type of 'whence' parameter to GsfSeekType.
(gsf_input_set_size): Change type of size parameter to gsf_off_t.
(gsf_input_seek_emulate): Change type of pos parameter to
gsf_off_t.
* gsf/gsf-input-gzip.c (struct _GsfInputGZip): Change type of
seek_skipped to gsf_off_t.
(check_header): Type of offset argument to gsf_input_seek is
changed to gsf_off_t. Use. Type of size argument to
gsf_input_set_size has changed to gsf_off_t. Use.
(gsf_input_gzip_read): Return type of gsf_input_remaing has
changed to gsf_off_t. Use.
(gsf_input_gzip_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType.
* gsf/gsf-input-gnomevfs.c (gsf_input_gnomevfs_new): Change type
of size variable to gsf_off_t. Cast 'code' argument to g_set_error
to gint to shut up warning.
(gsf_input_gnomevfs_read): Cast 'bytes' argument to gnome_vfs_read
to GnomeVFSFileSize to shut up warning.
(gsf_input_gnomevfs_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType. Cast
'whence' argument to gnome_vfs_seek to GnomeVFSFileOffset to shut
up warning.
* gsf/gsf-input-bonobo.c (struct _GsfInputBonobo): Change type of
'pos' to gsf_off_t.
(gib_synch_shared_ptr): Cast to gsf_off_t when assigning pos.
(gsf_input_bonobo_new): Change type of size variable to
CORBA_long. Type of size argument to gsf_input_set_size is
changed to gsf_off_t. Use.
(gsf_input_bonobo_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType. Check for
overflow copying from gsf_off_t to CORBA_long.
* gsf/gsf-infile-zip.c (zip_find_trailer): Change return type to
gsf_off_t. Check for overflow copying from gsf_off_t to size_t.
(zip_dirent_new, gsf_infile_zip_new_child): Change type of offset
parameter to gsf_off_t. Type of size argument to
gsf_input_set_size has changed to gsf_off_t. Use.
(gsf_infile_zip_new): Type of size argument to gsf_input_set_size
has changed to gsf_off_t. Use.
* gsf/gsf-infile-msvba.c (vba_inflate): Change type of offset
parameter to gsf_off_t.
(vba3_dir_read): Cast 2nd argument to vba_inflate to gsf_off_t.
(gsf_infile_msvba_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType.
(gsf_infile_msvba_new): Type of size argument to
gsf_input_set_size has changed to gsf_off_t. Use.
* gsf/gsf-infile-msole.c (ole_get_block, ole_init_info,
gsf_infile_msole_read, gsf_infile_msole_new_child): Type of offset
argument to gsf_input_seek has changed to gsf_off_t. Use.
(gsf_infile_msole_seek): Change type of offset parameter to
gsf_off_t, type of 'whence' parameter to GsfSeekType.
(gsf_infile_msole_new_child, gsf_infile_msole_new): Type of size
argument to gsf_input_set_size has changed to gsf_off_t. Use.
2002-08-12 Jody Goldberg <jody@gnome.org>
* Release 1.2.0
2002-08-06 Morten Welinder <terra@diku.dk>
* gsf/gsf-utils.c (gsf_le_get_double, gsf_le_set_double): New
functions (from gnumeric).
* gsf/gsf-utils.h: Add macros for signed types.
2002-08-05 Jody Goldberg <jody@gnome.org>
* tests/test-msole1.c (test) : why did I add that limitation ?
2002-08-05 Jody Goldberg <jody@gnome.org>
* gsf/gsf-output.c (gsf_output_is_closed) : forgot to implement.
2002-08-02 Jody Goldberg <jody@gnome.org>
* configure.in : bump version
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_finalize) : add a safety
to close the file before finalizing.
* gsf/gsf-output.c (gsf_output_finalize) : add a warning when
finalizing an unclosed stream.
(gsf_output_init) : init the new is_closed flag.
2002-08-02 Rodrigo Moya <rodrigo@gnome-db.org>
* gsf/gsf-io-context.c: removed progress_min and progress_max, since
they don't seem too useful right now (ie, let's keep it simple).
(gsf_io_context_clear): free progress_ranges list and initialize
progress-related internal values.
(gsf_io_context_update_progress): implemented.
(gsf_io_context_class_init): added "progress" signal to class.
2002-08-01 J.H.M. Dassen (Ray) <jdassen@debian.org>
* doc/Makefile.am (HTML_DIR) : conditionally define.
* doc/gsf-docs.sgml : tidy up.
2002-07-27 Dom Lachowicz <cinamod@hotmail.com>
* MAINTAINERS : add myself
* gsf-metadata-bag.[ch] : add cardinatliy (size) method
2002-07-26 Dom Lachowicz <cinamod@hotmail.com>
* gsf-output-bonobo.[ch]: implement output stream (untested)
2002-07-26 Dom Lachowicz <cinamod@hotmail.com>
* gsf-meta-keys.h: list of default/builtin keys that we will want
to support
* gsf-metadata-bag.[ch]: add key creation and manipulation
functions, update TODO list
2002-07-26 Dom Lachowicz <cinamod@hotmail.com>
* gsf-metadata-bag.c: implement (untested)
2002-07-25 Dom Lachowicz <cinamod@hotmail.com>
* gsf-input-gnomevfs.[ch]: implement (untested)
* gsf-output-gnomevfs.[ch]: implement (untested)
* gsf-output-memory.[ch]: implement (untested)
2002-07-22 Zbigniew Chyla <cyba@gnome.pl>
* gsf-input-gnomevfs.c (struct _GsfInputGnomeVFS):
Added missing semicolon at the end of struct.
2002-07-21 Jody Goldberg <jody@gnome.org>
* Release 1.1.0
2002-07-17 Jody Goldberg <jody@gnome.org>
* gsf/gsf-utils.c (gsf_mem_dump) : tweak.
2002-07-15 Morten Welinder <terra@diku.dk>
* gsf/gsf-infile-msole.c (gsf_infile_msole_dup): Don't ignore err
-- that will crash the caller.
* gsf/gsf-input-memory.c (gsf_input_mmap_new): Plug file
descriptor leaks.
2002-07-09 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input.c (gsf_input_dup) : avoid leak if derived dup has
already assigned a name.
2002-07-08 Jody Goldberg <jody@gnome.org>
* tests/test-cp-msole.c (test) : simplify.
2002-07-08 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_new) : doh!
fix the header to include the correct small block shift.
2002-07-08 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c (ole_name_cmp) : new.
(gsf_outfile_msole_new_child) : order the names correctly.
(gsf_outfile_msole_close) : write meta bats.
* gsf/gsf-msole-impl.h : add OLE_HEADER_METABAT_SIZE.
* gsf/gsf-infile-msole.c (ole_init_info) : use it here.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close) : and here.
2002-07-07 Jody Goldberg <jody@gnome.org>
* gsf/Makefile.am : Make gsf-impl-utils.h public
2002-07-06 Jody Goldberg <jody@gnome.org>
* gsf/gsf-msole-impl.h : pull in more information. We may not need it
but it makes for better documentation than 'unknown'
2002-07-06 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c : initial implementation.
* gsf/gsf-outfile.c : initial implementation.
* gsf/gsf-output.c : initial implementation.
2002-07-05 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_dirent_new) : be more anal in case the
input file has a cycle.
2002-07-03 Jody Goldberg <jody@gnome.org>
* tests/test-textline.c (test) : make the compiler shut up.
2002-06-27 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-gzip.c (check_header): Set header_size here.
(gsf_input_gzip_read): When allocating a buffer, allocate at least
256 bytes so we don't have to realloc all the time.
(gsf_input_gzip_read): Handle truncated streams.
* gsf/gsf-input.c (gsf_input_seek): Handle seeks that go to same
position here.
(gsf_input_uncompress): Reorganise a bit.
* gsf/gsf-infile-msole.c (ole_dirent_free): Actually free the
dirent. And the list of children.
2002-06-27 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-gzip.c (gsf_input_gzip_read): Exit on error.
* gsf/gsf-infile-msole.c (ole_init_info): Always set error info.
* configure.in (LIBGSF_LIBS): Include the Bonobo libs.
* tests/test-msole2.c (test): Plug leak. Uncompress source.
* gsf/gsf-input.c (gsf_input_uncompress): New function.
* gsf/gsf-input-gzip.c (gsf_input_gzip_finalize): Plug leak.
2002-06-27 Jon K Hellan <hellan@acm.org>
* gsf/gsf-input-bonobo.c: Actually check in the stuff mentioned
yesterday.
2002-06-27 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-gzip.c (gsf_input_gzip_seek): Attempt
implementation.
* gsf/gsf-input.c (gsf_input_seek): Make pos an off_t.
2002-06-26 Jon K Hellan <hellan@acm.org>
* gsf/gsf-input-bonobo.c (struct _GsfInputBonobo): Replace stream
attribute with GsfSharedBonoboStream * 'shared'. Add 'pos'
attribute.
(gib_synch_shared_ptr): New helper function. Seek the shared
stream if necessary.
(gsf_input_bonobo_new): Probably better to free the exceptions
*after* retrieving the exception texts. Initialize 'shared'.
(gsf_input_bonobo_finalize): unref 'shared'.
(gsf_input_bonobo_dup): Implement.
(gsf_input_bonobo_read): Use shared stream. Use
gib_synch_shared_ptr to seek first if necessary.
(gsf_input_bonobo_seek): Ditto.
(gsf_input_bonobo_init): Initialize 'shared'.
* gsf/gsf-shared-bonobo-stream.[ch]: new helper class for bonobo
stream IO. Lets us dup the streams.
* gsf/Makefile.am: added new files.
2002-06-26 Morten Welinder <terra@diku.dk>
* configure.in: If needed, define __EXTENSIONS__.
2002-06-26 Jon K Hellan <hellan@acm.org>
* gsf/gsf-input-bonobo.c: Include bonobo-persist-stream.h
(gsf_input_bonobo_read): Silence warning.
2002-06-25 Jon K Hellan <hellan@acm.org>
* configure.in: New flag --with-bonobo
* gsf/Makefile.am (INCLUDES): added new files.
* gsf/gsf-input-bonobo.[ch]: new class for bonobo stream IO.
2002-06-25 Rodrigo Moya <rodrigo@gnome-db.org>
* gsf/gsf-io-context.[ch]: new class for managing IO contexts.
* gsf/Makefile.am: added new files.
2002-06-24 Jody Goldberg <jody@gnome.org>
* python/Makefile.am : pyexec is not available in automake-1.4.
nor is nodist_.
* acinclude.m4 : something was still interpretting the AC_REQUIRE even
though ti was commented out. change case and comment for now to
avoid problems.
2002-06-23 Jon K Hellan <hellan@acm.org>
* acinclude.m4: Comment out everything.
2002-06-21 Jody Goldberg <jody@gnome.org>
* configure.in : uncomment the AM_CONDITIONAL for WITH_PYTHON
2002-06-21 Jon K Hellan <hellan@acm.org>
* acinclude.m4: Add it. It provides AM_CHECK_PYTHON_HEADERS.
2002-06-20 Morten Welinder <terra@diku.dk>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_new_child): Add
missing arg.
2002-06-20 Jon K Hellan <hellan@acm.org>
* configure.in: Add support for building Python bindings, but
comment it out because it requires automake1.5.
* Makefile.am: Build python subdir if WITH_PYTHON is set.
2002-06-18 Rui M. Seabra <rms@1407.org>
* libgsf-1.spec.in : set permission correctly
fix common mistake of Copyright flag into License flag.
2002-06-18 Jody Goldberg <jody@gnome.org>
* configure.in : lower the libxml version req
2002-06-17 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile.c (gsf_outfile_new_child) : adjust signature to
include 'is_dir'
2002-06-15 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input.c (gsf_input_eof) : fix docs.
* gsf/gsf-utils.c (gsf_mem_dump) : use size_t.
2002-06-13 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input-textline.c (gsf_input_textline_ascii_gets) : implement.
(gsf_input_textline_utf8_gets) : pretend to implement.
2002-06-13 Jody Goldberg <jody@gnome.org>
* Makefile.am : move the tests into a standalone dir because they are
getting irritating to build for every single library rebuild.
2002-06-13 Morten Welinder <terra@diku.dk>
* gsf/gsf-infile-msvba.c (vba_inflate): Make offset an off_t.
2002-06-13 Jody Goldberg <jody@gnome.org>
* gsf/gsf-outfile-msole.c : initial stub implementation.
* gsf/gsf-outfile.c : initial stub implementation.
* gsf/gsf-output-stdio.c : initial stub implementation.
* gsf/gsf-output.c : initial stub implementation.
2002-06-13 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msvba.c (vba_inflate) : cleanup.
2002-06-13 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.h (GSF_OLE_GET_GUINT{8,16,32}) : move to
gsf-utils and rename.
* gsf/gsf-input-memory.c (gsf_input_memory_dup) : silence warning.
(gsf_input_mmap_new) : fix the no mmap case.
2002-06-12 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msvba.c (vba_inflate) : store the uncompressed
result.
(vba_dirent_read) : new. We can now lookup the correct offsets for
the compressed source. The question remaining is how to fin the
start of the dir table ...
2002-06-12 Rodrigo Moya <rodrigo@gnome-db.org>
* gsf/*: s/IS_GSF/GSF_IS.
2002-06-12 Jon K Hellan <hellan@acm.org>
* libgsf-1.pc.in (Requires): Add libxml-2.0
2002-06-11 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (gsf_infile_msole_read) : fix reading into an
assigned buffer for small block files.
2002-06-10 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile.c (gsf_infile_child_by_name) : typo.
2002-06-09 J.H.M. Dassen (Ray) <jdassen@debian.org>
* gsf/test-msole1.c (read_types): Casts to suppress signedness
warnings.
* gsf/gsf-input-memory.c (gsf_input_memory_read): Changed src type to
guchar.
* gsf/gsf-input-textline.c (gsf_input_textline_ascii_gets): Cast
return value.
* gsf/gsf-infile-msole.c (ole_dirent_new): Signedness fixes.
* debian/*: updated; include pkgconfig file.
2002-06-09 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msvba.c : new.
* gsf/test-msvba.c : new.
* gsf/gsf-infile.c (gsf_infile_child_by_vname) : new utility routine.
2002-06-07 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input.c (gsf_input_dup) : Add an err parameter.
2002-06-07 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-stdio.c (gsf_input_stdio_new): Plug FILE* leak.
(gsf_input_stdio_dup): Go via filename.
2002-06-07 Jody Goldberg <jody@gnome.org>
* doc/Makefile.am : fix the type init function for gtk-doc.
* gsf/* : fix docs a bit.
2002-06-07 Jody Goldberg <jody@gnome.org>
* gsf/gsf-utils.c (gsf_input_dump) : new utility split out of.
* gsf/test-gzip1.c (test) : here.
* gsf/test-msole2.c (test) : spruce this up a might so that it can be
used as a general utility to dump streams and storages.
* gsf/gsf-input-stdio.c (gsf_input_stdio_dup) : dup the descriptor
before creating a new file handle.
2002-06-06 Jody Goldberg <jody@gnome.org>
* configure.in : remove -Wmissing-noreturn
* gsf/test-msole1.c (test) : remove the --use-memory bit. Just use
mmap. We can test the other input types in another program.
* gsf/*.c : change the convention for wrappers. They all add their
own references to the source rather than absorbing the ref that
was passed in.
2002-06-06 Jody Goldberg <jody@gnome.org>
* configure.in : add zlib.
* libgsf-1.pc.in (Cflags) : ditto.
* gsf/gsf-input-gzip.c : wrapper to uncompress things.
* gsf/gsf-libxml.c : some convenience routines for dealing with libxml.
* gsf/test-gzip1.c : add some tests for gzip.
2002-06-05 Morten Welinder <terra@diku.dk>
* gsf/*.[ch]: switch to using system types.
2002-06-05 Jon K Hellan <hellan@acm.org>
* gsf/Makefile.am: Fix typo - libgsf_1_includedir didn't get defined.
2002-06-05 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input-memory.c (gsf_input_mmap_new) : set the filename.
2002-06-04 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input.c (gsf_input_eof) : do this internally.
* gsf/gsf-input* : remove the _eof methods.
2002-06-04 Morten Welinder <terra@diku.dk>
* gsf/gsf-input-impl.h (GsfInputClass): Change structure members
from "read" to "Read", etc. This avoids names reserved by the
system libraries.
2002-06-04 Morten Welinder <terra@diku.dk>
* gsf/test-msole1.c (test): Add --memory option.
* gsf/gsf-shared-memory.c: New class.
* gsf/gsf-input-memory.c (gsf_input_memory_new): Use new
GsfSharedMemory class.
(gsf_input_memory_read): Add missing parameter.
2002-06-01 Jody Goldberg <jody@gnome.org>
* gsf/Makefile.am : Add gsf-input-textline.[ch]
Add gsf-libxml.[ch]
2002-05-30 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input-stdio.h : fix the name mismatch.
2002-05-28 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input.c (gsf_input_seek) : doh!
2002-05-28 Morten Welinder <terra@diku.dk>
* gsf/gsf-infile-msole.c (ole_make_bat): Cast via gconstpointer to
please gcc.
* gsf/gsf-infile-msole.h (GSF_OLE_GET_GUINT8, GSF_OLE_GET_GUINT16,
GSF_OLE_GET_GUINT32): fix alignment problems.
* gsf/test-msole1.c (read_types): Fix isspace usage.
2002-05-27 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c : add some prepoc constants to prep for
export support.
2002-05-25 Jody Goldberg <jody@gnome.org>
* README : add more details
2002-05-25 Jody Goldberg <jody@gnome.org>
* gsf/test-msole1.c (get_biff_opcode_name) : suppress warning.
* gsf/gsf-input-memory.c (gsf_input_mmap_new) : ensure it is a regular
file.
* configure.in : remove -Wundef to shut it up about glib.
remove -Wcast-qual because we sometimes need to explicitly cast away
const. C does not have const_cast<>().
2002-05-25 Jody Goldberg <jody@gnome.org>
* gsf/gsf-impl-utils.h (GSF_CLASS_FULL) : suppress warning.
* gsf/gsf-infile-msole.c (ole_dirent_new) : disable debug spew.
(ole_init_info) : suppress bogus compile warning.
Use gsf_ole_get_guint32s to convert the data to normal endianness.
(gsf_ole_get_guint32s) : new.
(ole_info_read_metabat) : assume the metabat is already uses native
byte ordering.
* gsf/gsf-input.c (gsf_input_seek) : suppress warning.
(gsf_input_dup) : ditto.
(gsf_input_init) : ditto.
2002-05-25 J.H.M. Dassen (Ray) <jdassen@debian.org>
* configure.in:
Actually use warning flags from GNOME_COMPILE_WARNINGS, so
"--enable-warnings=maximum" and "--with-iso-c" are honoured.
Test whether defining _BSD_SOURCE is needed for caddr_t.
(e.g. on Debian with -ansi for gcc3.0 and 3.1)
Test whether defining _POSIX_SOURCE is needed for fdopen().
Enable a lot more warnings.
* debian/rules: minor tweaks.
2002-05-25 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input.c (gsf_input_seek) : more error checking.
2002-05-25 Jody Goldberg <jody@gnome.org>
* gsf/test-msole1.c (test) : dump head of odd records.
* gsf/gsf-input.c (gsf_input_seek) : do more of the work up here.
* gsf/gsf-infile-msole.c (gsf_infile_msole_seek) : adjust here.
* gsf/gsf-input-stdio.c (gsf_input_stdio_seek) : and here.
* gsf/gsf-input-memory.c (gsf_input_memory_seek) : and here.
2002-05-25 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_dirent_new) : fix off by 1 error in
handling broken ascii stream names.
2002-05-25 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_init_info) : libole2 knew about a smidge
more of the ole header, use the sbat counter.
* gsf/test-msole1.c (test) : even more sanity checking.
2002-05-25 Jody Goldberg <jody@gnome.org>
* gsf/test-msole1.c (test) : add more safety checks to automate
validation of imported biff records.
* gsf/gsf-infile-msole.c (ole_dirent_new) : Based on char-width2.xls
it looks like directory sizes are periodically screwed.
2002-05-25 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c : fix small block support.
Handle the bogus use of ascii stream names in some case.
2002-05-24 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input-stdio.c (gsf_input_stdio_new) : merge the size
checking in here and do more error reporting.
(gsf_input_stdio_class_init) : delete gsf_input_stdio_size
(gsf_input_stdio_size) : delete.
* gsf/gsf-input.c (gsf_input_read) : put the bound check here.
2002-05-24 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input-stdio.c (gsf_input_stdio_new) : make buf_size unsigned.
(gsf_input_stdio_finalize) : and here.
(gsf_input_stdio_read) : and here.
* gsf/gsf-input.c (gsf_input_seek) : As morten suggested this is
better as > size rather than >= size.
2002-05-24 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (gsf_infile_msole_read) : only seek if we
need to.
2002-05-24 Jody Goldberg <jody@gnome.org>
* gsf/test-msole1.c (test) : more debug info, and less content spew.
2002-05-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-input-stdio.c (gsf_input_stdio_size) : be more careful about
people who open devices.
2002-05-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_dirent_new) : more error handling.
(ole_info_get_sb_file) : make things more readable and split this out.
(gsf_infile_msole_new_child) : fix reading small blocks.
2002-05-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.h (GSF_OLE_GET_GUINT8) : move here.
(GSF_OLE_GET_GUINT16) : ditto.
(GSF_OLE_GET_GUINT32) : ditto.
2002-05-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-utils.h : Use the glib type macros instead of defining our
own.
2002-05-23 J.H.M. Dassen (Ray) <jdassen@debian.org>
* doc/Makefile.am: Introduced DOC_DIR so the location can be easily
overridden when building packages.
* debian/*: Preliminary Debian packaging.
2002-05-23 Jody Goldberg <jody@gnome.org>
* gsf/gsf-infile-msole.c (ole_info_read_xbat) : DOH!
We need to check endianness when reading the bat elements.
(gsf_infile_msole_read) : slow but effective work around for
breaking at block boundaries. I'll work up something faster this
evening.
2002-05-19 Jody Goldberg <jody@gnome.org>
* Start making this into a real package.
|