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 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128
|
2025-07-01 Bruno Haible <bruno@clisp.org>
Prepare for 0.23.2 release.
* gettext-tools/misc/autopoint.in: Accept version 0.23.2.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.23.2.
* NEWS: Update.
2025-07-01 Bruno Haible <bruno@clisp.org>
autopoint: Update copyright year.
* gettext-tools/misc/autopoint.in: Update copyright year.
2025-07-01 Bruno Haible <bruno@clisp.org>
autopoint: Don't fail if no gettext version is specified, part 2.
* gettext-tools/misc/autopoint.in (func_trace_sed): Recognize also macro calls
without arguments.
* gettext-tools/tests/autopoint-1: Update for new autopoint behaviour.
2025-07-01 Bruno Haible <bruno@clisp.org>
autopoint: Don't fail if no gettext version is specified.
Rationale: https://lists.gnu.org/archive/html/bug-gettext/2025-06/msg00009.html
* gettext-tools/misc/autopoint.in: Instead of failing with "Missing version",
use version 0.23.1. Set omitintl=yes if there is no AM_GNU_GETTEXT invocation.
2025-06-06 Bruno Haible <bruno@clisp.org>
build: Fix build error on MSVC with --enable-shared.
* autogen.sh: Avoid the float-h-tests, since they reference the variables
gl_FLT_SNAN, gl_DBL_SNAN, gl_LDBL_SNAN.
2025-06-06 Bruno Haible <bruno@clisp.org>
build: Fix build failure on Cygwin and mingw without preinstalled libunistring.
* gettext-tools/configure.ac: Define DLL_VARIABLE and LIBGETTEXTSRC_DLL_VARIABLE
on Cygwin and mingw like on MSVC.
2025-06-06 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix build failure on Cygwin < 3.4.6.
* libtextstyle/lib/Makefile.am (config.h): Don't rename the _imp_ variable
associated with the gl_get_setlocale_null_lock function.
2025-06-05 Bruno Haible <bruno@clisp.org>
build: Fix MSVC builds with --enable-shared, part 2.
* gettext-tools/configure.ac (DLL_VARIABLE): On MSVC with --enable-shared, when
compiling the static .o files inside libgettextlib, define to empty, not to
'__declspec(dllimport)'.
(LIBGETTEXTSRC_DLL_VARIABLE): On MSVC with --enable-shared, when compiling the
static .o files inside libgettextsrc), define to empty, not to
'__declspec(dllimport)'.
2025-06-05 Bruno Haible <bruno@clisp.org>
build: Fix "make install" in MSVC builds with --enable-shared.
The problem was that intl-8.dll was not installed with execute permissions.
* gettext-runtime/intl/Makefile.am (install-exec-libintl): Use $(INSTALL),
not $(INSTALL_DATA), with libtool --mode=install.
* INSTALL.windows: Remove constraint to use --disable-shared on MSVC.
2025-06-05 Bruno Haible <bruno@clisp.org>
build: Fix MSVC builds with --enable-shared.
This was a regression in commit 8e914861708ed459a2ae8157eb60d89375ab46cd
from 2023-09-06.
Thanks to Kirill Makurin <maiddaisuki@outlook.com> for fruitful discussions.
* gettext-tools/configure.ac (WOE32DLL): New C macro.
(DLL_VARIABLE): On MSVC with --enable-shared, define to '__declspec(dllexport)'
when compiling libgettextlib, and define to '__declspec(dllimport)' when
compiling the programs in src/.
(LIBGETTEXTSRC_DLL_VARIABLE): New C macro.
* gettext-tools/gnulib-lib/Makefile.am (AM_CPPFLAGS): Define the C macro
IN_LIBGETTEXTLIB.
* gettext-tools/src/Makefile.am (libgettextsrc_la_CPPFLAGS): Define the C macro
IN_LIBGETTEXTSRC.
* gettext-tools/src/format.h: Use LIBGETTEXTSRC_DLL_VARIABLE instead of
DLL_VARIABLE.
* gettext-tools/src/message.h: Likewise.
* gettext-tools/src/msgl-cat.h: Likewise.
* gettext-tools/src/plural-table.h: Likewise.
* gettext-tools/src/po-charset.h: Likewise.
* gettext-tools/src/po-error.h: Likewise.
* gettext-tools/src/read-catalog.h: Likewise.
* gettext-tools/src/read-po.h: Likewise.
* gettext-tools/src/read-properties.h: Likewise.
* gettext-tools/src/read-stringtable.h: Likewise.
* gettext-tools/src/sentence.h: Likewise.
* gettext-tools/src/write-po.h: Likewise.
* gettext-tools/src/write-properties.h: Likewise.
* gettext-tools/src/write-stringtable.h: Likewise.
* gettext-tools/src/xerror-handler.h: Likewise.
* gettext-tools/libgettextpo/Makefile.am (config.h): Override the value of
LIBGETTEXTSRC_DLL_VARIABLE.
* gettext-runtime/configure.ac (WOE32DLL): New C macro.
(DLL_VARIABLE): Define to empty always.
2025-06-05 Bruno Haible <bruno@clisp.org>
Fix compilation error on MSVC due to conflict of different stdlib.h files.
Reported by Kirill Makurin <maiddaisuki@outlook.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2025-05/msg00071.html>.
* autogen.sh: Change gnulib-tool invocation for libgrep.
* gettext-tools/configure.ac (AC_CONFIG_FILES): Add libgrep/gnulib-lib/Makefile.
* gettext-tools/libgrep/Makefile.am: Don't include Makefile.gnulib.
(SUBDIRS): New variable.
(noinst_LIBRARIES): Add libgrep.a.
(AM_CPPFLAGS): Add -I options for gnulib-lib subdirectory.
(libgrep_a_DEPENDENCIES): New variable.
* gettext-tools/libgrep/gnulib-lib/Makefile.am: New file.
* gettext-tools/src/Makefile.am (LIBGREP): Add ../libgrep/gnulib-lib/libgnu.a.
2024-12-31 Bruno Haible <bruno@clisp.org>
Update translations from TP.
2024-12-31 Bruno Haible <bruno@clisp.org>
Prepare for 0.23.1 release.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:2:4.
* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:3:2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:12:5.
* gettext-tools/misc/autopoint.in: Likewise. Accept version 0.23.1.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.23.1.
* NEWS: Update.
2024-12-31 Bruno Haible <bruno@clisp.org>
doc: Update list of dependencies.
2024-12-31 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC,
GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES, GNULIB_MODULES_TOOLS_OTHER,
GNULIB_MODULES_LIBGETTEXTPO): Use the new names of renamed gnulib modules.
* gnulib-local/modules/backupfile (Depends-on): Likewise.
* gnulib-local/modules/closeout (Depends-on): Likewise.
* gnulib-local/modules/libtextstyle-dummy (Depends-on): Likewise.
* gnulib-local/modules/libxml (Depends-on): Likewise.
* libtextstyle/gnulib-local/modules/fd-ostream (Depends-on): Likewise.
* libtextstyle/gnulib-local/modules/html-styled-ostream (Depends-on): Likewise.
* libtextstyle/gnulib-local/modules/iconv-ostream (Depends-on): Likewise.
* libtextstyle/gnulib-local/modules/memory-ostream (Depends-on): Likewise.
* libtextstyle/gnulib-local/modules/noop-styled-ostream (Depends-on): Likewise.
* libtextstyle/gnulib-local/modules/term-ostream (Depends-on): Likewise.
2024-12-31 Bruno Haible <bruno@clisp.org>
lang-python-*: Fix test failures on mingw with UCRT.
* gettext-tools/tests/lang-python-1: Disable ISO8859_LOCALE_UNSUPPORTED for
Python 3. Set PYTHONIOENCODING environment variable.
* gettext-tools/tests/lang-python-2: Likewise.
2024-12-31 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix a test failure on MSYS2.
* libtextstyle/gnulib-local/tests/test-term-ostream-xterm-msys2.out: New file.
* libtextstyle/gnulib-local/tests/test-term-ostream-xterm.sh: Use it as an
expected test result.
* libtextstyle/gnulib-local/modules/term-ostream-tests (Files): Add it.
* libtextstyle/Makefile.am (EXTRA_DIST): Likewise.
2024-12-31 Bruno Haible <bruno@clisp.org>
examples: Don't fail configuration of hello-objc if no Objective-C compiler is found, part 2.
* gettext-tools/examples/po/xsmallpot.sh: Don't remove the m4_pushdef, m4_popdef
lines from hello-objc*/configure.ac.
2024-12-31 Bruno Haible <bruno@clisp.org>
examples: Don't fail configuration of hello-objc if no Objective-C compiler is found.
* gettext-tools/examples/hello-objc/configure.ac: Map AC_MSG_FAILURE to
AC_MSG_WARN.
2024-12-31 Bruno Haible <bruno@clisp.org>
hello-c-gnome3: Document build dependencies.
* HACKING: Mention Gtk3 dependency.
2024-12-31 Bruno Haible <bruno@clisp.org>
hello-c-gnome3: Fix "make distcheck".
* gettext-tools/examples/hello-c-gnome3/Makefile.am (BUILT_SOURCES): Add
hello.desktop.
(gschemas.compiled): Make it work in VPATH builds.
(CLEANFILES): Remove resources.c. Don't mention hello.desktop twice.
(MAINTAINERCLEANFILES): Add resources.c.
* gettext-tools/examples/hello-c-gnome3/autoclean.sh: Remove also resources.c,
hello.desktop.in.
2024-12-31 Bruno Haible <bruno@clisp.org>
hello-c-gnome3: Fix an error "Settings schema 'org.gnu.gettext.examples.hello' is not installed".
* gettext-tools/examples/hello-c-gnome3/configure.ac: Invoke
gl_BUILD_TO_HOST_LOCALEDIR, gl_BUILD_TO_HOST_PKGDATADIR.
* gettext-tools/examples/hello-c-gnome3/Makefile.am (DEFS): Define also
PKGDATADIR.
(pkgdata_DATA): New variable.
* gettext-tools/examples/hello-c-gnome3/hello.c (main): Add PKGDATADIR to the
GSETTINGS_SCHEMA_DIR value.
2024-12-31 Bruno Haible <bruno@clisp.org>
hello-c-gnome3: Exit when the window's close button is clicked.
* gettext-tools/examples/hello-c-gnome3/hello.c
(hello_application_window_dispose): Remove function.
(hello_application_window_class_init): Don't overwrite the 'dispose' field.
2024-12-31 Bruno Haible <bruno@clisp.org>
doc: Update list of dependencies.
* gettext-tools/doc/lang-csharp.texi: Mention dotnet8 as alternative.
* gettext-tools/tests/lang-csharp: Likewise.
* gettext-tools/doc/lang-pascal.texi: Replace fpk with fpc.
* gettext-tools/tests/lang-pascal: Likewise.
* gettext-tools/doc/lang-wxwidgets.texi: Mention libwxgtk3.2-dev as alternative.
* gettext-tools/tests/lang-objc: Mention the gobjc package.
* gettext-tools/tests/lang-rst: Mention the fp-utils package.
* gettext-tools/tests/lang-vala: Mention valac as alternative.
2024-12-31 Bruno Haible <bruno@clisp.org>
doc: Update reference to lua-gettext package.
* gettext-tools/doc/lang-lua.texi: Update lua-gettext installation instructions.
* HACKING: Update lua version requirements and lua-gettext installation
instructions.
2024-12-31 Bruno Haible <bruno@clisp.org>
libxml: Fix a gcc 13 -Wformat-truncation warning.
* gnulib-local/lib/libxml/uri.c (xmlURIEscape): Use a buffer of size 12, not 10.
2024-12-31 Bruno Haible <bruno@clisp.org>
doc: Update list of dependencies.
* DEPENDENCIES: Add libattr.
* HACKING: Stop mentioning XEmacs. Add note regarding GNU Smalltalk.
Mention dotnet as alternative to Mono. Mention wxgtk version 3.2.
2024-12-31 Bruno Haible <bruno@clisp.org>
Use new approach for gnulib localizations.
* gettext-runtime/po/POTFILES.in: Remove files that come from gnulib.
* gettext-tools/po/POTFILES.in: Likewise.
* gettext-runtime/src/envsubst.c (main): Invoke bindtextdomain for the domain
'gnulib'.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main): Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
2024-12-31 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/src/Makefile.am (DEFS): Remove definition of BISON_LOCALEDIR,
now present in config.h.
2024-12-31 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-12-31 Bruno Haible <bruno@clisp.org>
examples: hello-python: Make it work with Python 3.
* gettext-tools/examples/hello-python/hello.py.in: Add parenthese around print's
arguments.
2024-12-31 Bruno Haible <bruno@clisp.org>
Update packaging instructions.
* PACKAGING: Update file list. Update C# explanations.
2024-12-31 Bruno Haible <bruno@clisp.org>
tests: Fix lang-c++20 failure with g++ >= 14 or clang++ >= 19.
* gettext-tools/tests/lang-c++20: Support newer C++ versions. Try option
-std=gnu++26, necessary for newer C++ versions.
2024-12-31 Bruno Haible <bruno@clisp.org>
examples: Update hello-c++20 to work with g++ >= 14 and clang++ >= 19.
* gettext-tools/examples/hello-c++20/configure.ac: Support newer C++ versions.
Try option -std=gnu++26, necessary for newer C++ versions.
* gettext-tools/examples/hello-c++20/hello.cc (main): Use different code in
newer C++.
2024-12-31 Bruno Haible <bruno@clisp.org>
Fix compilation error with libxml2 >= 2.12.0 and gcc >= 14.
Reported by Sam James <sam@gentoo.org>
at <https://savannah.gnu.org/bugs/?66506>.
* gettext-tools/src/its.c: Include <libxml/xmlversion.h>.
(structured_error): Adapt to API change.
2024-12-01 Bruno Haible <bruno@clisp.org>
Update NEWS.
* NEWS: Move an entry.
2024-12-01 Bruno Haible <bruno@clisp.org>
examples: Use infrastructure from gettext version 0.23.
* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
version 0.23.
* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
* gettext-tools/examples/hello-*/m4/Makefile.am: Update .m4 file list.
2024-12-01 Bruno Haible <bruno@clisp.org>
Update translations from TP.
* gettext-runtime/po/*.po: Update from TP.
* gettext-tools/po/*.po: Update from TP.
* gettext-tools/po/LINGUAS: Add ka.
* gettext-tools/examples/po/*.po: Update from TP.
2024-12-01 Bruno Haible <bruno@clisp.org>
Prepare for 0.23 release.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/po/Makefile.in.in: Bump Origin version and
GETTEXT_MACRO_VERSION.
* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Bump GETTEXT_MACRO_VERSION
accordingly.
* gettext-runtime/m4/gettext.m4: Update comments.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:1:4.
* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:2:2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:11:5.
* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
output.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/gettext.sh.in (func_version): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main): Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* gettext-tools/misc/convert-archive.in (func_version): Likewise.
* gettext-tools/misc/gettextize.in (func_version): Likewise.
* gettext-tools/misc/autopoint.in: Likewise. Accept version 0.23.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.23.
* NEWS, gettext-runtime/NEWS: Update.
2024-12-01 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2024-12-01 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-12-01 Bruno Haible <bruno@clisp.org>
xgettext: C: Revisit "hexadecimal escape sequence out of range" warnings.
Reported by Vaclav Slavik <vaclav@slavik.io>
at <https://savannah.gnu.org/bugs/?65053>.
* gettext-tools/src/x-c.c (get_string_element): Add context argument. Don't warn
for character literals. For wide strings, use a different warning and complain
about "out of range" only for values >= 0x110000.
(phase5_get): Distinguish normal string literals and wide string literals.
2024-11-30 Bruno Haible <bruno@clisp.org>
intl: Fix lang-c++ failure on MSVC, caused by last commit.
* gettext-runtime/intl/libgnuintl.in.h (_INTL_HAS_FORCE_INLINE,
_INTL_FORCE_INLINE): New macros.
(_INTL_REDIRECT_INLINE): Don't define in C++ mode when _INTL_HAS_FORCE_INLINE
is not set.
2024-11-28 Bruno Haible <bruno@clisp.org>
intl: Avoid conflict between libintl.h and some C++ header files.
Reported Pierre Ossman <ossman@cendio.se>
at <https://savannah.gnu.org/bugs/?64006>.
* gettext-runtime/intl/libgnuintl.in.h (*printf, newlocale, duplocale,
freelocale, setlocale): Use _INTL_REDIRECT_INLINE or _INTL_ASM as alternatives
to _INTL_REDIRECT_MACROS, avoiding conflicts with inline functions in mingw
and MSVC <stdio.h>.
2024-11-28 Bruno Haible <bruno@clisp.org>
intl: Avoid possible error from libintl.h in C++ mode.
* gettext-runtime/intl/libgnuintl.in.h (gettext, dgettext, dcgettext, ngettext,
dngettext, dcngettext, textdomain, bindtextdomain, wbindtextdomain,
bind_textdomain_codeset): In the _INTL_REDIRECT_INLINE redirects, in C++ mode,
avoid a compilation error if the function is globally declared in some .h file.
2024-11-27 Bruno Haible <bruno@clisp.org>
doc: Avoid @table, as it cannot be used to produce decent-looking output.
2024-11-27 Bruno Haible <bruno@clisp.org>
doc: Mention C.UTF-8 locale.
Reported by nl6720 at <https://savannah.gnu.org/bugs/?62815>.
* gettext-tools/doc/gettext.texi (Locale Names): Mention the C.UTF-8 locale.
2024-11-27 Bruno Haible <bruno@clisp.org>
Add installation information for the tarball users and from a git checkout.
We want to have an INSTALL file that contains installation instructions for
the tarball users. These instructions are necessarily package specific,
because they need to list the prerequisites or reference the DEPENDENCIES
file.
Additionally, many people who are not aware that tarballs are the primary
means for source code distribution of GNU packages check out the git repository
and then expect to see instructions for installing from that git checkout
in the INSTALL file. See e.g. <https://savannah.gnu.org/bugs/?62196>.
Unfortunately, both Automake (with strictness option = 'gnu') and 'bootstrap'
both contain code to copy the generic (not package specific) installation
instructions to the file 'INSTALL'. This is not what we want, so we disable
it. (Other packages handle this issue by putting part of the installation
instructions into the README file. This is suboptimal, because this is not
what the README file is for.)
* autogen.sh: Import INSTALL.generic from gnulib.
* INSTALL: Entirely rewritten, based on poke/INSTALL.
* Makefile.am (EXTRA_DIST): Add INSTALL.generic.
* libtextstyle/autogen.sh: Import INSTALL.generic from gnulib.
* libtextstyle/INSTALL: Entirely rewritten, based on poke/INSTALL.
* libtextstyle/Makefile.am (EXTRA_DIST): Add INSTALL.generic.
2024-11-27 Bruno Haible <bruno@clisp.org>
lang-perl-*: Avoid FAIL on macOS.
Reported by Hanspeter Niederstrasser <nieder@users.sourceforge.net>
at <https://savannah.gnu.org/bugs/?66461>.
* gettext-tools/tests/lang-perl-1: On macOS, don't test the ISO-8859-1 locale.
* gettext-tools/tests/lang-perl-2: Likewise.
2024-11-24 Bruno Haible <bruno@clisp.org>
Fix compilation error when pgettext is used.
Reported by Friedrich Beckmann <friedrich.beckmann@posteo.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00189.html>.
* gnulib-local/lib/gettext.h: Include <locale.h>.
2024-11-22 Bruno Haible <bruno@clisp.org>
Upgrade to libtool 2.5.4.
* m4/libtool.m4: Update from libtool-2.5.4.
* m4/ltversion.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
2024-11-19 Bruno Haible <bruno@clisp.org>
po: Fix build failure with parallel make.
Reported by Lubomir Rintel <lkundrak@v3.sk> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-06/msg00022.html>.
* gettext-runtime/po/Makefile.in.in (.NOTPARALLEL): Add this special target.
2024-11-19 Bruno Haible <bruno@clisp.org>
doc: Improve typography in man pages.
Patch by наб <nabijaczleweli@nabijaczleweli.xyz> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-01/msg00019.html>.
* gettext-runtime/man/bind_textdomain_codeset.3.in: After "e.g." or "i.e.",
use \&.
2024-11-19 Bruno Haible <bruno@clisp.org>
doc: Use GNU coding style in man pages.
Reported by наб <nabijaczleweli@nabijaczleweli.xyz> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-01/msg00019.html>.
* gettext-runtime/man/gettext.3.in: In C code snippets, put a space before '('
and after ','.
* gettext-runtime/man/bind_textdomain_codeset.3.in: Likewise.
2024-11-19 Bruno Haible <bruno@clisp.org>
xgettext: PHP: Stop recognizing ASP tags <% and %> (removed in PHP 7.0).
Reported by David Robinson <dave@netterra.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2021-10/msg00000.html>.
* gettext-tools/src/x-php.c (skip_html): Don't recognize '<%' and '<%='
any more.
(phase2_getc, phase3_getc, phase4_get): In comments, don't treat '%>' like '?>'
any more.
2024-11-19 Bruno Haible <bruno@clisp.org>
libgettextpo: Extend the function po_message_set_format.
Reported by Alexander Potashev <aspotashev@gmail.com>
at <https://savannah.gnu.org/bugs/?61160>.
* gettext-tools/libgettextpo/gettext-po.c (po_message_set_format): Support a
negative value.
* gettext-tools/libgettextpo/gettext-po.in.h (po_message_set_format): Mention
effects of po_message_set_format (..., -1).
* gettext-tools/doc/gettext.texi (po_message_t API): Likewise.
* NEWS: Mention the change.
2024-11-19 Bruno Haible <bruno@clisp.org>
Improve comments.
* gettext-tools/src/locating-rules.h (locating_rule_list_locate): Improve
specification.
* gettext-tools/src/sentence.h (sentence_end): Likewise.
2024-11-19 Bruno Haible <bruno@clisp.org>
Avoid undefined behaviour.
* gettext-tools/src/quote.h (scan_quoted): Add comment. Avoid undefined
behaviour if length==0.
2024-11-16 Bruno Haible <bruno@clisp.org>
Fix "gcc -Wzero-as-null-pointer-constant" warnings.
* libtextstyle/gnulib-local/lib/libcroco/cr-enc-handler.c (gv_default_aliases):
Use NULL, not 0, to denote a null pointer.
* libtextstyle/gnulib-local/lib/libcroco/cr-om-parser.c
(cr_om_parser_parse_paths_to_cascade): Likewise.
* gettext-tools/libgrep/kwset.c (kwsalloc, kwsincr, kwsprep, cwexec, kwsexec):
Likewise.
2024-11-08 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/cldr-plural-exp.c: Don't include <unistd.h>, unistr.h.
* gettext-tools/src/cldr-plural.y: Don't include <unistd.h>.
2024-11-08 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/cldr-plural.y: Untabify.
(struct cldr_plural_parse_args): New type, moved here from
gettext-tools/src/cldr-plural-exp.h.
(cldr_plural_parse): New function, moved here from
gettext-tools/src/cldr-plural-exp.c.
* gettext-tools/src/cldr-plural-exp.h: Reorder declarations.
(struct cldr_plural_parse_args): Remove declaration.
* gettext-tools/src/cldr-plural-exp.c: Don't include cldr-plural.h. Reorder
functions.
(cldr_plural_parse): Remove function.
2024-11-07 Bruno Haible <bruno@clisp.org>
Update the GFDL text.
* libtextstyle/doc/fdl.texi: Update from gnulib/doc/fdl-1.3.texi.
2024-11-07 Bruno Haible <bruno@clisp.org>
Upgrade from GFDL 1.2 to GFDL 1.3.
* gettext-runtime/libasprintf/fdl.texi: Update from gnulib/doc/fdl-1.3.texi.
* gettext-tools/doc/fdl.texi: Likewise.
* gettext-runtime/libasprintf/autosprintf.texi: Update reference.
* gettext-tools/doc/gettext.texi: Likewise.
2024-11-07 Bruno Haible <bruno@clisp.org>
Update the GPL and LGPL text.
* gettext-runtime/intl/COPYING.LIB: Update from
<https://ftp.gnu.org/gnu/Licenses/lgpl-2.1.txt>.
* gettext-runtime/libasprintf/COPYING.LIB: Likewise.
* gettext-runtime/libasprintf/gpl.texi: Update from gnulib/doc/gpl-2.0.texi.
* gettext-runtime/libasprintf/lgpl.texi: Update from gnulib/doc/lgpl-2.1.texi.
* gettext-tools/doc/gpl.texi: Update from gnulib/doc/gpl-2.0.texi.
* gettext-tools/doc/lgpl.texi: Update from gnulib/doc/lgpl-2.1.texi.
2024-11-06 Bruno Haible <bruno@clisp.org>
build: Fix "make distcheck" after the line-breaking algorithm changed, part 2.
* gettext-tools/configure.ac (MSGMERGE): Test $cross_compiling, since
$CROSS_COMPILING is not set at this point.
2024-10-28 Bruno Haible <bruno@clisp.org>
Update legally relevant info.
* AUTHORS: Incorporate records from gnu.org:/gd/gnuorg/copyright.list.
2024-10-28 Bruno Haible <bruno@clisp.org>
doc: Improve usability of generated PDF.
* gettext-tools/doc/gettext.texi: Use a brown colour for interactive links.
2024-10-25 Bruno Haible <bruno@clisp.org>
build: Fix "make distcheck" failure (regression 2024-10-23).
* check-copyright-headers (func_check_file): Update after DISCLAIM was renamed.
2024-10-24 Bruno Haible <bruno@clisp.org>
doc: Add some words about dialects.
Reported by John Cowan <cowan@ccil.org>
at <https://savannah.gnu.org/bugs/?47838>.
* gettext-tools/doc/gettext.texi (The LANGUAGE variable): Add a paragraph
about Chinese.
(Dialects): New section.
2024-10-23 Bruno Haible <bruno@clisp.org>
doc: Tweaks.
* gettext-tools/doc/gettext.texi (Responsibilities): Tweaks, from
Benno Schulenberg.
2024-10-23 Bruno Haible <bruno@clisp.org>
doc: Revise "Translators" chapter.
* gettext-tools/doc/gettext.texi (Trans Intro 0, Trans Intro 1, Discussions,
Organization, Information Flow): Remove sections.
(Organization, Responsibilities): New sections.
2024-10-23 Bruno Haible <bruno@clisp.org>
Rename and distribute the disclaimer file.
* gettext-tools/misc/disclaim-translations.txt: Renamed from
gettext-tools/misc/DISCLAIM.
* gettext-tools/Makefile.am (EXTRA_DIST): Update.
(pkgdata_DATA): New variable.
2024-10-23 Bruno Haible <bruno@clisp.org>
build: Simplify.
* gettext-tools/Makefile.am (gettextsrcdir): Remove variable.
(pkgdata_SCRIPTS): Renamed from gettextsrc_SCRIPTS.
2024-10-23 Bruno Haible <bruno@clisp.org>
Fix test failure of autopoint-3 on Cygwin.
It was broken since commit "tests: Use libtool in autopoint-3 test" (2014-09-05):
The Makefile specified to link the 'hello' program without libtool
(and thus Automake generated a direct link command without libtool),
but the LDADD variable used @LTLIBINTL@. On Cygwin, this led to a use of
the -R option, which the compiler does not understand:
x86_64-pc-cygwin-gcc: error: unrecognized command line option ‘-R’; did you mean ‘-R’?
* gettext-tools/tests/autopoint-3: Don't invoke LT_INIT. Use @LIBINTL@,
not @LTLIBINTL@. Don't touch ltmain.sh.
2024-10-23 Bruno Haible <bruno@clisp.org>
Improve handling of Windows DLL directories when executing programs.
Reported by Michele Locati <mlocati@gmail.com>
at <https://savannah.gnu.org/bugs/?66356>.
Revert commit e2839b591c from 2019-05-01. Instead, use gnulib's new feature.
* gettext-tools/src/Makefile.am (DEFS): Define BINDIR.
* gettext-tools/src/msginit.c: Don't include configmake.h.
(main): Don't add BINDIR to PATH globally.
(get_user_email, language_team_address, plural_forms): Pass a dll_dirs argument
to create_pipe_in.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove configmake.
2024-10-22 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/src/msgexec.c (process_string): Update create_pipe_out
invocation.
* gettext-tools/src/write-resources.c (execute_writing_input): Likewise.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address, plural_forms): Update create_pipe_in invocations.
* gettext-tools/src/read-csharp.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-java.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-resources.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Likewise.
* gettext-tools/src/x-ruby.c (extract_ruby): Likewise.
* gettext-tools/src/urlget.c (execute_it, fetch): Update execute invocations.
2024-10-22 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-10-22 Bruno Haible <bruno@clisp.org>
Update the translation disclaimer.
From Craig Topham <copyright-clerk@fsf.org>.
* gettext-tools/misc/DISCLAIM: Update.
2024-10-21 Bruno Haible <bruno@clisp.org>
doc: Update after Automake changed.
* gettext-tools/doc/gettextize.texi: Update now that Automake with option 'gnu'
no longer requires ABOUT-NLS. Cf.
<https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=a2def8cdef>.
2024-10-18 Bruno Haible <bruno@clisp.org>
doc: Add an example regarding xgettext.
Reported by Andrea G. Monaco <andrea.monaco@autistici.org> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-12/msg00036.html>.
* gettext-tools/doc/xgettext.texi: Add an example.
2024-10-18 Bruno Haible <bruno@clisp.org>
xgettext: Python: Add test for warning that was broken in 0.21.x and 0.22.x.
Reported by Max Smolens <msmolens@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-10/msg00001.html>.
* gettext-tools/tests/xgettext-python-9: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2024-10-17 Bruno Haible <bruno@clisp.org>
doc: Clarify locale names and language names.
Reported by Arfrever <arfrever.fta@gmail.com>
at <https://savannah.gnu.org/bugs/?59062>.
* gettext-runtime/doc/nls.texi (INSTALL Matters, Using This Package): Mention
ll_CC as alterntive to ll, and that ll can be a 3-letter code.
* gettext-tools/doc/gettext.texi (Locale Names, Header Entry, Installers):
Likewise.
2024-10-15 Bruno Haible <bruno@clisp.org>
intl: Fix a memory leak.
* gettext-runtime/intl/finddomain.c (_nl_find_domain): If there was an alias and
_nl_explode_name or _nl_make_l10nflist fails, free the allocated memory. Avoid
'goto'.
2024-10-15 Bruno Haible <bruno@clisp.org>
gettext.h: Avoid "warning: ISO C++ forbids variable length array" with -pedantic.
Both "g++ -pedantic" and "clang++ -pedantic" warn about use of VLAs.
Since we cannot distinguish "g++" from "g++ -pedantic" through a preprocessor
macro, it's best to not use a VLA in C++.
Reported by Jens Seidel <jensseidel@users.sf.net>
via <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547798>
at <https://savannah.gnu.org/bugs/index.php?55149>.
* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define
to 0 in C++ mode.
2024-10-15 Bruno Haible <bruno@clisp.org>
msgen: Convert charset=CHARSET to charset=ASCII.
Reported at <https://savannah.gnu.org/bugs/index.php?20923>.
* gettext-tools/src/msgen.c: Include msgl-ascii.h, c-strstr.h, xalloc.h.
(fill_header): New function, based on fill_header in msginit.c.
(main): Invoke it.
* gettext-tools/tests/msgen-1: Provide as input a POT file with charset=CHARSET,
and verify that the output has charset=ASCII.
2024-10-15 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/msgl-header.h (header_set_charset): New declaration.
* gettext-tools/src/msgl-header.c (header_set_charset): New function.
* gettext-tools/src/msgl-iconv.c: Include msgl-header.h.
(iconv_message_list_internal): Use header_set_charset.
* gettext-tools/src/x-po.c: Include msgl-header.h.
(extract): Use header_set_charset.
* gettext-tools/src/FILES: Update.
2024-10-15 Bruno Haible <bruno@clisp.org>
its: Add ability to check *.its and *.loc files with XML Schema 1.1.
* gettext-tools/src/its.xsd10: Renamed from gettext-tools/src/its.xsd.
(RulesType): Enumerate all possible rules in the ITS namespace, instead of using
a wildcard.
(OtherRuleType): New element.
* gettext-tools/src/its.xsd11: Copied from gettext-tools/src/its.xsd.
(LocNoteRuleType): Enable assertion.
* gettext-tools/src/locating-rules.xsd10: Renamed from
gettext-tools/src/locating-rules.xsd.
* gettext-tools/src/locating-rules.xsd11: Copied from
gettext-tools/src/locating-rules.xsd.
(LocatingRuleType): Enable assertion.
* gettext-tools/src/Makefile.am (schema_DATA): Add its.xsd10, its.xsd11,
locating-rules.xsd10, locating-rules.xsd11. Remove its.xsd, locating-rules.xsd.
* gettext-tools/build-aux/xml-validate-10.in: New file.
* gettext-tools/build-aux/xml-validate-11.in: New file.
* gettext-tools/configure.ac: Substitute HAVE_JAVAEXEC.
(AC_CONFIG_FILES): Create build-aux/xml-validate-10, build-aux/xml-validate-11.
* gettext-tools/Makefile.am (DISTCLEANFILES): Add build-aux/xml-validate-10,
build-aux/xml-validate-11.
* gettext-tools/its/Makefile.am: Revert last commit.
(check-local): Check each file both using the XML Schema 1.0 and the XML Schema
1.1.
* gettext-tools/doc/gettext.texi (ITS Rules): Mention the two versions of
its.xsd.
(Location Rules): Mention the two versions of locating-rules.xsd.
* HACKING: Mention Xerces2-J.
2024-10-14 Bruno Haible <bruno@clisp.org>
its: Work around xmllint bug.
* gettext-tools/its/Makefile.am (check-local): Skip the ITS_FILES checks if
xmllint cannot grok the its.xsd schema.
2024-10-14 Bruno Haible <bruno@clisp.org>
po: Add a copyright and license notice to the Rules-quot auxiliary files.
Reported by Joël Krähemann <jkraehemann@gmail.com>
at <https://savannah.gnu.org/bugs/?57973>.
* gettext-runtime/po/quot.sed: Add a copyright and all-permissive license
notice.
* gettext-runtime/po/boldquot.sed: Likewise.
* gettext-runtime/po/en@quot.header: Likewise.
* gettext-runtime/po/en@boldquot.header: Likewise.
* gettext-runtime/po/insert-header.sed: Use an all-permissive license notice.
* gettext-runtime/po/Rules-quot: Likewise.
(.insert-header.po-update-en): After running the *.insert-header script,
eliminate lines that start with %%.
2024-10-14 Bruno Haible <bruno@clisp.org>
po: Assume a 'sed' that supports '#' for introducing comments.
This is standardized in POSIX since POSIX:2001 (= SUSv3).
It is supported on all platforms that I could test:
GNU, macOS 10.5, FreeBSD 5, NetBSD 7, OpenBSD 6, AIX 7, Solaris 10 and 11,
busybox (2019).
* gettext-runtime/po/remove-potcdate.sed: Renamed from
gettext-runtime/po/remove-potcdate.sin.
* gettext-runtime/po/Makefile.in.in (DISTFILES.common): Update.
(.SUFFIXES): Remove .sin.
(.sin.sed): Remove rule.
($(DOMAIN).pot-update): Use remove-potcdate.sed in $(srcdir).
(mostlyclean): Don't remove remove-potcdate.sed.
* autogen.sh: Update.
* Makefile.am (distcheck-hook): Update.
* gettext-tools/examples/po/remove-potcdate.sed: Renamed from
gettext-tools/examples/po/remove-potcdate.sin.
* gettext-tools/examples/po/Makefile.am ($(DOMAIN).pot-update): Use
remove-potcdate.sed in $(srcdir).
(MOSTLYCLEANFILES): Don't add remove-potcdate.sed.
(EXTRA_DIST): Update.
* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update): Use
remove-potcdate.sed in $(srcdir).
(MOSTLYCLEANFILES): Don't add remove-potcdate.sed.
(EXTRA_DIST): Update.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
($(DOMAIN).pot-update): Remove dependency on remove-potcdate.sed.
(internal-clean): Remove rule.
* gettext-tools/examples/hello-*/autogen.sh: Update.
* gettext-tools/examples/hello-*/autoclean.sh: Update.
2024-10-14 Bruno Haible <bruno@clisp.org>
po: Assume a 'sed' that supports '#' for introducing comments.
This is standardized in POSIX since POSIX:2001 (= SUSv3).
It is supported on all platforms that I could test:
GNU, macOS 10.5, FreeBSD 5, NetBSD 7, OpenBSD 6, AIX 7, Solaris 10 and 11,
busybox (2019).
* gettext-runtime/po/insert-header.sed: Renamed from
gettext-runtime/po/insert-header.sin.
* gettext-runtime/po/Rules-quot (DISTFILES.common.extra1): Update.
(en@quot.insert-header, en@boldquot.insert-header): Use insert-header.sed
instead of insert-header.sin.
* autogen.sh: Update.
* Makefile.am (distcheck-hook): Update.
* gettext-tools/examples/hello-*/autogen.sh: Update.
* gettext-tools/doc/gettext.texi (po/LINGUAS): Update.
2024-10-14 Bruno Haible <bruno@clisp.org>
its: Extend schema so that docbook4.its and docbook5.its pass.
* gettext-tools/src/its.xsd: Add an <any> element that catches other rules.
2024-10-13 Bruno Haible <bruno@clisp.org>
tests: Add more unit tests regarding Desktop files.
Reported by Felix Riemann at <https://savannah.gnu.org/bugs/?51177>
and by Daniel <daniel.rf710@gmail.com>
at <https://savannah.gnu.org/bugs/?63455>.
* gettext-tools/tests/xgettext-desktop-3: New file.
* gettext-tools/tests/msgfmt-desktop-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2024-10-13 Bruno Haible <bruno@clisp.org>
xgettext: Desktop: Correct the line numbers in the output and in error messages.
* gettext-tools/src/read-desktop.c (struct token_ty): Add a 'lineno' field.
(desktop_lex): Correct the line numbers in error messages. For a token of type
token_type_pair, store the line number.
(desktop_parse): Pass the line number from the token to
desktop_reader_handle_pair.
* gettext-tools/tests/xgettext-desktop-1: Update expected output.
* gettext-tools/tests/xgettext-desktop-2: Likewise.
* NEWS: Mention the change.
2024-10-13 Bruno Haible <bruno@clisp.org>
tests: Make it easier to single-step the msgfmt-* tests.
* gettext-tools/tests/msgfmt-desktop-1: Assign a default to MSGFMT.
* gettext-tools/tests/msgfmt-desktop-2: Likewise.
* gettext-tools/tests/msgfmt-desktop-3: Likewise.
* gettext-tools/tests/msgfmt-xml-1: Likewise.
* gettext-tools/tests/msgfmt-xml-2: Likewise.
* gettext-tools/tests/msgfmt-xml-3: Likewise.
* gettext-tools/tests/msgfmt-xml-4: Likewise.
* gettext-tools/tests/msgfmt-xml-5: Likewise.
2024-10-13 Bruno Haible <bruno@clisp.org>
msgmerge, msginit: Reject POT files with non-ASCII character, except in UTF-8, part 2.
* gettext-tools/src/msgl-charset.c (check_pot_charset): Tweak the new code.
2024-10-13 Bruno Haible <bruno@clisp.org>
msgmerge, msginit: Reject POT files with non-ASCII characters, except in UTF-8.
Reported by Martin Quinson <mquinson@debian.org>
at <https://savannah.gnu.org/bugs/?65104>.
* gettext-tools/src/msgl-charset.h (check_pot_charset): New declaration.
* gettext-tools/src/msgl-charset.c: Include msgl-ascii.h.
(check_pot_charset): New function.
* gettext-tools/src/msginit.c: Include msgl-charset.h.
(main): Invoke check_pot_charset.
* gettext-tools/src/msgmerge.c: Include msgl-charset.h.
(merge): Invoke check_pot_charset.
* gettext-tools/src/FILES: Update.
* gettext-tools/tests/testdata/nonascii.pot: New file.
* gettext-tools/tests/msginit-5: New file.
* gettext-tools/tests/msgmerge-charset-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
(EXTRA_DIST): Add testdata/nonascii.pot.
2024-10-13 Bruno Haible <bruno@clisp.org>
tests: Reorganize msgmerge tests.
* gettext-tools/tests/msgmerge-9: Renamed from gettext-tools/tests/msgmerge-18.
* gettext-tools/tests/msgmerge-10: Renamed from gettext-tools/tests/msgmerge-19.
* gettext-tools/tests/msgmerge-11: Renamed from gettext-tools/tests/msgmerge-20.
* gettext-tools/tests/msgmerge-12: Renamed from gettext-tools/tests/msgmerge-25.
* gettext-tools/tests/msgmerge-13: Renamed from gettext-tools/tests/msgmerge-26.
* gettext-tools/tests/msgmerge-14: Renamed from gettext-tools/tests/msgmerge-27.
* gettext-tools/tests/msgmerge-15: Renamed from gettext-tools/tests/msgmerge-29.
* gettext-tools/tests/Makefile.am (TESTS): Update.
2024-10-13 Bruno Haible <bruno@clisp.org>
tests: Reorganize msgmerge tests.
* gettext-tools/tests/msgmerge-6: Renamed from gettext-tools/tests/msgmerge-9.
* gettext-tools/tests/msgmerge-7: Renamed from gettext-tools/tests/msgmerge-15.
* gettext-tools/tests/msgmerge-8: Renamed from gettext-tools/tests/msgmerge-17.
* gettext-tools/tests/Makefile.am (TESTS): Update.
2024-10-13 Bruno Haible <bruno@clisp.org>
tests: Reorganize msgmerge tests.
* gettext-tools/tests/msgmerge-domain-1: Renamed from gettext-tools/tests/msgmerge-7.
* gettext-tools/tests/msgmerge-domain-2: Renamed from gettext-tools/tests/msgmerge-8.
* gettext-tools/tests/msgmerge-charset-1: Renamed from gettext-tools/tests/msgmerge-6.
* gettext-tools/tests/msgmerge-charset-2: Renamed from gettext-tools/tests/msgmerge-14.
* gettext-tools/tests/msgmerge-charset-3: Renamed from gettext-tools/tests/msgmerge-16.
* gettext-tools/tests/msgmerge-format-1: Renamed from gettext-tools/tests/msgmerge-13.
* gettext-tools/tests/msgmerge-format-2: Renamed from gettext-tools/tests/msgmerge-21.
* gettext-tools/tests/msgmerge-format-3: Renamed from gettext-tools/tests/msgmerge-28.
* gettext-tools/tests/msgmerge-plural-1: Renamed from gettext-tools/tests/msgmerge-10.
* gettext-tools/tests/msgmerge-plural-2: Renamed from gettext-tools/tests/msgmerge-11.
* gettext-tools/tests/msgmerge-plural-3: Renamed from gettext-tools/tests/msgmerge-12.
* gettext-tools/tests/msgmerge-plural-4: Renamed from gettext-tools/tests/msgmerge-22.
* gettext-tools/tests/msgmerge-plural-5: Renamed from gettext-tools/tests/msgmerge-23.
* gettext-tools/tests/msgmerge-plural-6: Renamed from gettext-tools/tests/msgmerge-24.
* gettext-tools/tests/Makefile.am (TESTS): Update.
2024-10-13 Bruno Haible <bruno@clisp.org>
its: Support DocBook XML, part 2.
Reported by Guillem Jover <guillem@hadrons.org>
at <https://savannah.gnu.org/bugs/?52415>.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add xstring-desc.
* gettext-tools/src/its.c: Include xstring-desc.h, c-ctype.h, unistr.h.
(SIZEOF): New macro.
(its_extension_escape_rule_constructor, its_extension_escape_rule_eval): Handle
the 'unescape-if' attribute.
(starts_with_character_reference): Add an ucs_p parameter.
(_its_encode_special_chars_for_merge): Update.
(set_doc_encoding_utf8, _its_is_valid_simple_gen_xml, _its_is_valid_simple_xml,
is_valid_xhtml_element, _its_is_valid_simple_xhtml, is_valid_html_element,
is_no_end_html_element, _its_is_valid_simple_html, _its_set_simple_xml_content,
_its_set_simple_html_content): New functions.
(its_merge_context_merge_node): Implement the 'unescape-if' attribute.
* gettext-tools/src/its-extensions.xsd (EscapeRuleType): Add 'unescape-if'
attribute.
* gettext-tools/its/docbook4.its: Add an <escapeRule>.
* gettext-tools/its/docbook5.its: Likewise.
* gettext-tools/tests/xgettext-docbook-1: New file.
* gettext-tools/tests/msgfmt-xml-5: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/doc/gettext.texi (ITS Rules): Document the 'unescape-if'
attribute of the escapeRule.
* NEWS: Mention the change.
2024-10-13 Bruno Haible <bruno@clisp.org>
its: Support DocBook XML, part 1.
Reported by Guillem Jover <guillem@hadrons.org>
at <https://savannah.gnu.org/bugs/?52415>.
* gettext-tools/its/docbook4.its: New file, copied from
https://github.com/itstool/itstool file its/docbook.its.
* gettext-tools/its/docbook5.its: New file, copied from
https://github.com/itstool/itstool file its/docbook5.its.
* gettext-tools/its/docbook.loc: New file.
* gettext-tools/its/Makefile.am (ITS_FILES): Add docbook4.its, docbook5.its.
(LOC_FILES): Add docbook.loc.
2024-10-13 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-10-13 Bruno Haible <bruno@clisp.org>
its: Improve error handling.
* gettext-tools/src/its.c: Include libxml/xmlerror.h.
(structured_error): New function.
(its_rule_list_add_from_file, its_rule_list_add_from_string,
its_rule_list_extract, its_merge_context_alloc): Exit upon fatal error.
Set the structured_error for the rest of the function.
(its_merge_context_merge, its_merge_context_write): Set the structured_error.
2024-10-12 Bruno Haible <bruno@clisp.org>
its: Simplify escape handling change from 2024-10-01.
* gettext-tools/src/its.c: Add comments about evaluation rules.
(its_extension_escape_rule_eval): Handle local attribute "escape" here...
(its_rule_list_extract_text, its_merge_context_merge_node): ... not here.
2024-10-11 Bruno Haible <bruno@clisp.org>
its: Fix NULL dereference (regression 2024-10-01).
* gettext-tools/src/its.c (_its_copy_node_with_attributes): Handle attributes
without namespace correctly.
2024-10-11 Bruno Haible <bruno@clisp.org>
build: Add support for --enable-relocatable in mingw builds on Cygwin hosts, part 2.
Reported by Michele Locati <michele@locati.it> in
<https://savannah.gnu.org/bugs/?66319>.
* gettext-tools/configure.ac: Invoke gl_CONFIGMAKE_PREP and fix up the values of
pkgdatadir, pkgincludedir, pkglibdir, pkglibexecdir.
Invoke gl_BUILD_TO_HOST_LIBDIR, gl_BUILD_TO_HOST_LIBEXECDIR,
gl_BUILD_TO_HOST_PKGDATADIR, gl_BUILD_TO_HOST_PKGLIBDIR.
* gettext-tools/src/Makefile.am (pkgdatadir, pkglibdir, pkglibexecdir): Remove
variables.
(jardir): Simplify.
(jardir_c_make, projectsdir_c_make): New variables.
(*_CPPFLAGS): Fix value of BISON_LOCALEDIR, GETTEXTJAR, LIBDIR, LIBEXECDIR,
GETTEXTDATADIR, PROJECTSDIR.
2024-10-11 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-10-11 Bruno Haible <bruno@clisp.org>
its: Allow a specific XML namespace for .metainfo.xml / .appdata.xml files.
Reported by Claude Paroz <claude@2xlibre.net>
at <https://savannah.gnu.org/bugs/?54472>.
* gettext-tools/its/metainfo.its: Duplicate the rules for XML instances that
use the metainfo namespace.
* gettext-tools/tests/xgettext-appdata-3: New file, based on
gettext-tools/tests/xgettext-appdata-2.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2024-10-10 Bruno Haible <bruno@clisp.org>
build: Remove left-over files from the C# compiler of 'dotnet'.
* gettext-tools/src/Makefile.am (CLEANFILES): Add msgfmt.net.pdb,
msgunfmt.net.pdb.
2024-10-09 Bruno Haible <bruno@clisp.org>
build: Avoid "warning: stray \ before -" from GNU grep ≥ 3.8.
* build-aux/jar-cf: Remove an unnecessary backslash.
2024-10-09 Bruno Haible <bruno@clisp.org>
build: Revert the revert, and use Sergey Poznyakoff's fix instead.
Sergey's fix is at
<https://debbugs.gnu.org/cgi/bugreport.cgi?msg=17;bug=73620> =
<https://lists.gnu.org/archive/html/bug-libtool/2024-10/msg00008.html>.
2024-10-09 Bruno Haible <bruno@clisp.org>
build: Revert build failure on CentOS and Alma Linux (regression 2024-09-26).
build-aux/ltmain.sh: Revert libtool commit
0e1b33332429cd578367bd0ad420c065d5caf0ac.
2024-10-09 Bruno Haible <bruno@clisp.org>
C#: Add support for dotnet.
Reported by Michele Locati <mlocati@gmail.com>
at <https://savannah.gnu.org/bugs/index.php?66292>.
* DEPENDENCIES: Mention dotnet as an alternative to Mono.
* NEWS: Mention the change.
* PACKAGING: Mention the new file $prefix/lib/gettext/GNU.Gettext.dll.
* gettext-runtime/intl-csharp/Makefile.am (pkglibdir): New variable.
(CLEANFILES): Add GNU.Gettext.pdb.
(install-dll-no, install-dll-yes): Install also into $(pkglibdir).
(installdirs-dll, uninstall-dll): Update accordingly.
* gettext-runtime/intl-csharp/intl.cs (GettextResourceSet): Add field Table.
Override GetEnumerator, GetObject to handle it. Change the Keys method to handle
it as well.
* gettext-tools/tests/lang-csharp: In the program, on Windows, produce UTF-8
output with Unix end-of-lines and set the culture manually.
2024-10-09 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-10-07 Bruno Haible <bruno@clisp.org>
Improve C# support on Cygwin.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add cygpath.
* gettext-tools/src/read-csharp.c: Include cygpath.h.
(msgdomain_read_csharp): Convert the directory passed to msgunfmt.net.exe from
Cygwin to Windows syntax.
* gettext-tools/src/read-resources.c: Include cygpath.h.
(read_resources_file): Convert the file name passed to msgunfmt.net.exe from
Cygwin to Windows syntax.
* gettext-tools/src/write-resources.c: Include cygpath.h.
(msgdomain_write_csharp_resources): Convert the file name passed to
msgfmt.net.exe from Cygwin to Windows syntax.
2024-10-07 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-10-06 Bruno Haible <bruno@clisp.org>
msgfmt: New option --replace-text.
Reported by Asterix <asterix@lagaule.org>
at <https://savannah.gnu.org/bugs/?52159>.
* gettext-tools/src/its.h (its_merge_context_merge): Add parameter replace_text.
* gettext-tools/src/its.c (its_merge_context_merge_node): Add parameter
replace_text.
(its_merge_context_merge): Likewise.
* gettext-tools/src/write-xml.h (msgdomain_write_xml, msgdomain_write_xml_bulk):
Add parameter replace_text.
* gettext-tools/src/write-xml.c (msgdomain_write_xml_bulk): Add parameter
replace_text.
(msgdomain_write_xml): Likewise.
* gettext-tools/src/msgfmt.c (xml_replace_text): New variable.
(long_options): Add --replace-text.
(main): Handle --replace-text.
(usage): Document option --replace-text.
* gettext-tools/tests/msgfmt-xml-4: New file, based on
gettext-tools/tests/msgfmt-xml-1.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/msgfmt.texi: Document option --replace-text.
* NEWS: Mention the change.
2024-10-06 Bruno Haible <bruno@clisp.org>
its: Improve comments in *.its files.
* gettext-tools/its/glade2.its: Improve comments.
* gettext-tools/its/gtkbuilder.its: Likewise.
* gettext-tools/its/gsettings.its: Likewise.
* gettext-tools/its/metainfo.its: Likewise.
2024-10-05 Bruno Haible <bruno@clisp.org>
doc: Update copyright year.
2024-10-05 Bruno Haible <bruno@clisp.org>
doc: Document how to use custom *.its files.
Reported by Stefan Brüns <stefan.bruens@rwth-aachen.de>
at <https://savannah.gnu.org/bugs/?64026>.
* gettext-tools/src/search-path.c (get_search_path): Improve comments.
* gettext-tools/doc/xgettext.texi: New subsection "Options for XML input files".
Move the description of --its out of subsection "Output details".
* gettext-tools/doc/msgfmt.texi: Document GETTEXTDATADIRS.
* gettext-tools/doc/gettext.texi (Installers): Document the
PREFIX/share/gettext/its/ directory.
2024-10-05 Bruno Haible <bruno@clisp.org>
doc: Mention some related packages.
* gettext-tools/doc/gettext.texi (OmegaT, Virtaal, Vim): New sections.
(Other tools): Mention the Translate Toolkit.
* gettext-tools/doc/lang-python.texi: Mention Babel.
2024-10-03 Bruno Haible <bruno@clisp.org>
its: Fix the value of the xml:lang attribute inserted by msgfmt.
Reported by Matthias Klumpp <matthias@tenstral.net>
at <https://savannah.gnu.org/bugs/?64025>.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add bcp47.
* gettext-tools/src/its.c: Include "bcp47.h".
(its_merge_context_merge_node): Convert the language / locale name to BCP 47
syntax before storing it in the xml:lang attribute.
* gettext-tools/tests/msgfmt-xml-3: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* NEWS: Mention the change.
2024-10-03 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-10-03 Bruno Haible <bruno@clisp.org>
its: Fix permissions of newly added test.
2024-10-01 Bruno Haible <bruno@clisp.org>
Update the file list.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/write-desktop.h: Fix comment.
* gettext-tools/src/write-xml.h: Likewise.
2024-10-01 Bruno Haible <bruno@clisp.org>
its: During merge, copy also the XML node's attributes.
Rationale: In XHTML, attributes like 'style' are used for rendering.
* gettext-tools/src/its.c (_its_copy_node_with_attributes): New function.
(its_merge_context_merge_node): Use it.
* gettext-tools/tests/msgfmt-xml-1: Update expected results.
* gettext-tools/tests/msgfmt-xml-2: Likewise.
2024-10-01 Bruno Haible <bruno@clisp.org>
its: Do escape handling during msgfmt merge, not during xgettext. Off by default.
Reported by Samy Mahmoudi <samy.mahmoudi@gmail.com>
at <https://savannah.gnu.org/bugs/?58643>.
* gettext-tools/src/its.c (its_localization_note_rule_constructor): Don't do
escaping while extracting a localization note.
(its_rule_list_extract_text): New local variable do_escape_during_extract. Don't
do escaping while extracting.
(starts_with_character_reference, _its_encode_special_chars_for_merge): New
functions.
(its_merge_context_merge_node): New local variables do_escape_during_extract,
do_escape_during_merge. Don't do escaping while extracting. Conditionally do
escaping while merging.
* gettext-tools/src/its-extensions.xsd: Mention that escape="no" is now the
default.
* gettext-tools/its/glade1.its: Add a comment.
* gettext-tools/its/glade2.its: Likewise.
* gettext-tools/its/gsettings.its: Likewise.
* gettext-tools/its/gtkbuilder.its: Likewise.
* gettext-tools/its/metainfo.its: Add a <gt:escapeRule>.
* gettext-tools/tests/xgettext-appdata-1: Add comment.
* gettext-tools/tests/xgettext-appdata-2: New file, based on
gettext-tools/tests/msgfmt-xml-1.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/tests/xgettext-its-1: Update expected results.
* gettext-tools/tests/msgfmt-xml-1: Test also character references and entity
references.
* gettext-tools/tests/msgfmt-xml-2: Likewise.
* gettext-tools/doc/gettext.texi (ITS Rules): Under "Escape Special Characters",
explain that it is no longer necessary to write a rule with escape="no".
Rewrite section "Two Use-cases of Translated Strings in XML".
* NEWS: Mention the changes.
2024-10-01 Bruno Haible <bruno@clisp.org>
its: Refactor.
* gettext-tools/src/its.c (its_rule_list_extract_text): Simplify code
duplication.
(its_merge_context_merge_node): Update accordingly.
2024-09-30 Bruno Haible <bruno@clisp.org>
its: Refactor.
* gettext-tools/src/its.c (_its_collect_text_content, _its_get_content): Replace
the no_escape parameter with a do_escape parameter.
(its_localization_note_rule_constructor, its_rule_list_extract_text,
its_merge_context_merge_node): All callers changed.
2024-09-30 Bruno Haible <bruno@clisp.org>
its: Refine the XML schema.
* gettext-tools/src/its.xsd: Add comments about the default.
* gettext-tools/src/its-extensions.xsd: Likewise.
2024-09-30 Bruno Haible <bruno@clisp.org>
its: Refine the XML schema.
* gettext-tools/src/its.xsd: Add string constraints.
* gettext-tools/src/its-extensions.xsd: Likewise.
2024-09-30 Bruno Haible <bruno@clisp.org>
its: Refactor.
* gettext-tools/src/its.h: Structure this file.
* gettext-tools/src/its.c: Likewise.
2024-09-30 Bruno Haible <bruno@clisp.org>
its: Simplify.
* gettext-tools/src/its.h: Don't include xg-arglist-context.h.
(its_rule_list_extract): Remove flag_table parameter.
* gettext-tools/src/its.c (its_rule_list_extract_text, its_rule_list_extract):
Remove flag_table parameter.
* gettext-tools/src/xgettext.c (extract_from_xml_file): Update.
2024-09-30 Bruno Haible <bruno@clisp.org>
build: Add Windows-format metainfo also to libgettextlib and libgettextsrc.
Reported by Michele Locati <mlocati@gmail.com>
at <https://savannah.gnu.org/bugs/index.php?66267>.
* gettext-tools/gnulib-lib/libgettextlib.rc: New file.
* gettext-tools/gnulib-lib/Makefile.am (EXTRA_DIST): Add it.
(WOE32_LIBADD): New macro.
(libgettextlib.res.lo): New rule.
(libgettextlib_la_LIBADD, libgettextlib_la_DEPENDENCIES): Add the .res.lo file.
* gettext-tools/src/libgettextsrc.rc: New file.
* gettext-tools/src/Makefile.am (EXTRA_DIST): Add it.
(WOE32_LIBADD): New macro.
(libgettextsrc.res.lo): New rule.
(libgettextsrc_la_LIBADD, libgettextsrc_la_DEPENDENCIES): New macros.
* gettext-runtime/intl/libintl.rc: Update copyright year.
* gettext-runtime/libasprintf/libasprintf.rc: Likewise.
* gettext-tools/libgettextpo/libgettextpo.rc: Likewise.
* libtextstyle/lib/libtextstyle.rc: Likewise.
* windows/gettext.rc: Likewise.
2024-09-30 Bruno Haible <bruno@clisp.org>
build: Improve customizations.
* cfg.mk (_autoreconf): Define, to avoid running autoreconf.
(update-copyright-env): Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH to 999, not 79.
2024-09-30 Bruno Haible <bruno@clisp.org>
build: Fix compilation error on mingw (regression 2024-09-26).
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add mixin/printf-posix.
2024-09-29 Bruno Haible <bruno@clisp.org>
Provide XML schemas for .its and .loc files.
Suggested by Martin Blanchard <tchaik@gmx.com>
at <https://savannah.gnu.org/bugs/?56519>.
* gettext-tools/src/its.xsd: New file, reverse-engineered from its.c.
* gettext-tools/src/its-extensions.xsd: New file, reverse-engineered from its.c.
* gettext-tools/src/locating-rules.xsd: New file, reverse-engineered from
locating-rules.c.
* gettext-tools/src/Makefile.am (schemadir): New variable.
(schema_DATA): New variable.
(EXTRA_DIST): Distribute all of schema_DATA.
* gettext-tools/configure.ac: Check for xmllint, and set XMLLINT.
* gettext-tools/its/Makefile.am (ITS_FILES, LOC_FILES): New variables.
(dist_its_DATA): Rewrite.
(check-local): New rule.
* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Split into two
subsections. Mention which schema the files have to obey.
* HACKING: Mention xmllint as maintainer prerequisite.
* PACKAGING: Mention the $prefix/share/gettext/schema/ directory.
* NEWS: Mention the change.
2024-09-29 Bruno Haible <bruno@clisp.org>
Refactor: Rename locating-rule.[hc].
* gettext-tools/src/locating-rules.h: Renamed from gettext-tools/src/locating-rule.h.
* gettext-tools/src/locating-rules.c: Renamed from gettext-tools/src/locating-rule.c.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/Makefile.am (noinst_HEADERS, libgettextsrc_la_SOURCES): Update.
* gettext-tools/src/msgfmt.c: Update.
* gettext-tools/src/xgettext.c: Update.
* gettext-tools/po/POTFILES.in: Update.
2024-09-28 Bruno Haible <bruno@clisp.org>
xgettext: JavaScript: Support customized handling of tagged template literals.
Reported by Evan Welsh <contact@evanwelsh.com>
and Philip Chimento <philip.chimento@gmail.com>
at <https://savannah.gnu.org/bugs/index.php?60027>.
* gettext-tools/src/str-list.h (string_list_append_move): New declaration.
* gettext-tools/src/str-list.c (string_list_append_move): New function.
* gettext-tools/src/x-javascript.h (x_javascript_tag): New declaration.
* gettext-tools/src/x-javascript.c: Include str-list.h.
(tag_step1_fn): New type.
(gnome_step1, get_tag_step1_fn): New functions.
(struct tag_definition): New type.
(tags): New variable.
(x_javascript_tag): New function.
(struct token_ty): Add fields template_tag, template_parts.
(free_token): Update.
(struct level_info): New type.
(levels): Change element type to 'struct level_info'.
(new_level, level_type): Update.
(phase5_get, x_javascript_lex): Arrange to collect the parts of a template
literal in the last token's template_parts field.
(extract_balanced): Handle tagged template literals.
* gettext-tools/src/xgettext.c (long_options): Add option --tag.
(main): Handle option --tag.
(usage): Document ption --tag.
* gettext-tools/tests/xgettext-javascript-13: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/gettext.texi (No string concatenation): Mention the tagged
template literals as alternative.
* gettext-tools/doc/xgettext.texi: Document the --tag option.
* gettext-tools/doc/lang-javascript.texi (JavaScript): Mention the tagged
template literals syntax.
* NEWS: Mention the change.
2024-09-27 Bruno Haible <bruno@clisp.org>
xgettext: JavaScript: Recognize template literals inside JSX.
* NEWS: Mention the change in the last commit.
2024-09-27 Bruno Haible <bruno@clisp.org>
xgettext: JavaScript: Recognize template literals inside JSX.
Reported by whiteinge <gnu-savannah@eseth.com>
at <https://savannah.gnu.org/bugs/?58407>
and by tuberry and Gianni Lerro <glerro@pm.me>
at <https://savannah.gnu.org/bugs/?62203>.
* gettext-tools/src/x-javascript.c (enum level_ty): New enum.
(levels, levels_alloc, level): New variables.
(new_level): New function.
(level_type): New macro.
(template_literal_depth, brace_depths, brace_depths_alloc): Remove variables.
(new_brace_depth_level): Remove function.
(xml_element_depth, inside_embedded_js_in_xml): Remove variables.
(phase5_get): Use the levels stack instead of the separate stack for braces and
XML.
(extract_javascript): Update.
* gettext-tools/tests/xgettext-javascript-6: Add test cases that mix JSX with
template literals.
2024-09-26 Bruno Haible <bruno@clisp.org>
Upgrade to libtool 2.5.3.
* m4/libtool.m4: Update from libtool-2.5.3.
* m4/ltoptions.m4: Likewise.
* m4/ltsugar.m4: Likewise.
* m4/ltversion.m4: Likewise.
* m4/lt~obsolete.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
2024-09-26 Bruno Haible <bruno@clisp.org>
xgettext: PHP: Optimize.
* gettext-tools/src/x-php.c (process_heredoc): Remove function.
(phase4_get): Inline it here.
2024-09-26 Bruno Haible <bruno@clisp.org>
xgettext: PHP: Revert recently introduced code duplication.
* gettext-tools/src/x-php.c (process_dquote_or_heredoc): New function, extracted
from process_heredoc.
(process_heredoc): Allocate a php_extractor on the stack. Invoke
process_dquote_or_heredoc.
(phase4_get): Invoke process_dquote_or_heredoc.
2024-09-26 Bruno Haible <bruno@clisp.org>
Modernize: Use gnulib's string-buffer module for accumulating strings.
* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC): Add
xstring-buffer.
* gettext-runtime/src/envsubst.c: Include string-buffer.h.
(subst_from_stdin): Use a stack-allocated string_buffer instead of 3 local
variables and micro-optimized ad-hoc code.
* gettext-tools/src/cldr-plural.y: Include string-buffer.h.
(yylex): Use a stack-allocated string_buffer instead of 3 local variables and
micro-optimized ad-hoc code.
* gettext-tools/src/cldr-plurals.c: Include string-buffer.h instead of xalloc.h.
(extract_rules): Use a stack-allocated string_buffer instead of 3 local
variables and micro-optimized ad-hoc code.
* gettext-tools/src/its.c: Include string-buffer.h.
(_its_collect_text_content): Use a stack-allocated string_buffer instead of 3
local variables and micro-optimized ad-hoc code.
* gettext-tools/src/read-desktop.c: Include string-buffer.h.
(desktop_lex): Use a stack-allocated string_buffer instead of 3 local variables
and micro-optimized ad-hoc code.
* gettext-tools/src/read-properties.c: Include string-buffer.h.
(properties_parse): Use a stack-allocated string_buffer instead of 3 local
variables and micro-optimized ad-hoc code.
* gettext-tools/src/x-awk.c: Include string-buffer.h.
(phase2_getc, phase3_get): Use a stack-allocated string_buffer instead of 3
local variables and micro-optimized ad-hoc code.
* gettext-tools/src/x-c.c: Include string-buffer.h.
(phase5_get): Use a stack-allocated string_buffer instead of 3 local variables
and micro-optimized ad-hoc code.
* gettext-tools/src/x-java.c: Include string-buffer.h.
(phase5_get): Use a stack-allocated string_buffer instead of 3 local variables
and micro-optimized ad-hoc code.
* gettext-tools/src/x-javascript.c: Include string-buffer.h.
(phase5_get): Use a stack-allocated string_buffer instead of 3 local variables
and micro-optimized ad-hoc code.
* gettext-tools/src/x-lua.c: Include string-buffer.h.
(string_buf_length, string_buf_alloc, string_buf): Remove variables.
(string_start, string_add, string_end): Remove functions.
(phase3_get): Use a stack-allocated string_buffer instead of 3 local variables
and micro-optimized ad-hoc code.
* gettext-tools/src/x-perl.c: Include string-buffer.h.
(get_here_document, phase2_getc, extract_quotelike_pass1,
extract_quotelike_pass3, extract_variable, interpolate_keywords, x_perl_prelex):
Use a stack-allocated string_buffer instead of 3 local variables and
micro-optimized ad-hoc code.
* gettext-tools/src/x-php.c: Include string-buffer.h.
(process_heredoc, phase4_get): Use a stack-allocated string_buffer instead of 3
local variables and micro-optimized ad-hoc code.
* gettext-tools/src/x-python.c: Include string-buffer.h.
(phase5_get): Use a stack-allocated string_buffer instead of 3 local variables
and micro-optimized ad-hoc code.
* gettext-tools/src/x-rst.c: Include string-buffer.h.
(buffer, bufmax): Remove variables.
(buffer): New variable.
(extract_rst, parse_integer): Use a stack-allocated string_buffer instead of 3
local variables and micro-optimized ad-hoc code.
(extract_rsj): Update.
* gettext-tools/src/x-smalltalk.c: Include string-buffer.h.
(phase2_get): Use a stack-allocated string_buffer instead of 3 local variables
and micro-optimized ad-hoc code.
* gettext-tools/src/x-vala.c: Include string-buffer.h.
(phase3_get): Use a stack-allocated string_buffer instead of 3 local variables
and micro-optimized ad-hoc code.
* gettext-tools/src/x-ycp.c: Include string-buffer.h.
(phase2_getc, phase5_get): Use a stack-allocated string_buffer instead of 3
local variables and micro-optimized ad-hoc code.
2024-09-26 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Fix a bug when reading here documents in a non-UTF-8 encoding.
* gettext-tools/src/xgettext.c (get_here_document): Update read_bytes when
switching from the original encoding to the UTF-8 encoding.
2024-09-26 Bruno Haible <bruno@clisp.org>
xgettext: Use sf-istream from Gnulib.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add sf-istream.
* gettext-tools/src/x-perl.c: Include sf-istream.h.
(struct perl_extractor): Replace fp, input, input_end fields with a single
sf_istream_t.
(phase1_getc, get_here_document, skip_pod, interpolate_keywords, extract_perl):
Update.
* gettext-tools/src/x-php.c: Include sf-istream.h.
(struct php_extractor): Replace fp, input, input_end fields with a single
sf_istream_t.
(phase1_getc): Simplify.
(process_heredoc, phase4_get, extract_php): Update.
2024-09-26 Bruno Haible <bruno@clisp.org>
Update after gnulib changed: Fix deprecation warning.
* gettext-tools/src/msgmerge.c (main): Call xcopy_file_preserving instead of
copy_file_preserving.
2024-09-26 Bruno Haible <bruno@clisp.org>
build: Add support for --enable-relocatable in mingw builds on Cygwin hosts.
Reported by Michele Locati <michele@locati.it> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-09/msg00033.html>.
* gettext-runtime/configure.ac: Invoke gl_BUILD_TO_HOST_BINDIR.
* gettext-runtime/src/Makefile.am (*_CFLAGS): Fix value of INSTALLDIR.
* gettext-tools/configure.ac: Invoke gl_BUILD_TO_HOST_BINDIR,
gl_BUILD_TO_HOST_PKGLIBEXECDIR.
* gettext-tools/src/Makefile.am (*_CPPFLAGS): Fix value of INSTALLDIR.
2024-09-26 Bruno Haible <bruno@clisp.org>
gettext.m4: Simplify after gnulib changed.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Invoke
gl_BUILD_TO_HOST_LOCALEDIR.
2024-09-26 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-09-24 Bruno Haible <bruno@clisp.org>
build: Update after gnulib changed.
* gettext-runtime/libasprintf/configure.ac: Remove gt_TYPE_WCHAR_T invocation.
2024-09-21 Bruno Haible <bruno@clisp.org>
doc: Explain how to add advice for translators in the source code.
Reported at <https://savannah.gnu.org/bugs/?48747>.
* gettext-tools/doc/gettext.texi (Translator advice): New node.
2024-09-21 Bruno Haible <bruno@clisp.org>
PHP: Update doc.
* gettext-tools/doc/lang-php.texi: Update.
2024-09-21 Bruno Haible <bruno@clisp.org>
PHP: Support newer format string directives.
Reported by José Luis Jiménez Fernández <jjimenez@interhost.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2023-05/msg00037.html>.
* gettext-tools/src/format-php.c (format_parse): Treat E, F, g, G, h, H like
e, f.
* gettext-tools/tests/format-php-1: Test the %E, %F, %g, %G, %h, %H directives.
* gettext-tools/tests/format-php-2: Update type compatibility tests.
* NEWS: Mention the change.
2024-09-21 Bruno Haible <bruno@clisp.org>
xgettext: PHP: Support heredoc and nowdoc strings.
Reported:
by Bodo Graumann <mail@bodograumann.de> at <https://savannah.gnu.org/bugs/?27740>,
at <https://savannah.gnu.org/bugs/?35944>,
by Cédric Anne <canne@teclib.com> at <https://savannah.gnu.org/bugs/?62158>.
* gettext-tools/src/x-php.c (TAB_WIDTH): New macro.
(process_heredoc): New function.
(phase4_get): Process the heredoc or nowdoc string, instead of blindly skipping
it.
* gettext-tools/tests/xgettext-php-1: Add tests of heredoc strings with embedded
expressions.
* gettext-tools/tests/xgettext-php-2: Expect spaces before a heredoc end label
to be eaten. Add tests of heredoc strings and nowdoc strings.
* NEWS: Mention the improvement.
2024-09-19 Bruno Haible <bruno@clisp.org>
doc: Expand section about preparing strings.
* gettext-tools/doc/gettext.texi (Triggering): Mention a few more Gnulib
modules.
(Preparing Strings): Turn subheadings into subsections.
(No string concatenation): Mention string concatenation operators and
strings with embedded expressions in various programming languages.
* NEWS: Mention it.
2024-09-19 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Recognize strings with embedded expressions.
* gettext-tools/src/x-perl.c (enum token_type_ty, token_ty,
struct token_stack_ty): Moved.
(struct perl_extractor): New type.
(fp, linebuf, linebuf_size, linesize, linepos, eaten_here, end_of_file,
last_comment_line, last_non_comment_line, nesting_depth, last_token_type,
token_stack): Remove variables.
(perl_extractor_init_rest): New function.
(phase1_getc): Add a 'struct perl_extractor *' parameter. Read from a string
if fp == NULL.
(phase1_ungetc, get_here_document, skip_pod, phase2_getc, phase2_ungetc,
extract_quotelike_pass1, extract_quotelike_pass1_utf8): Add a
'struct perl_extractor *' parameter.
(extract_perl_input): New declaration.
(extract_quotelike): Add a 'struct perl_extractor *' parameter.
(extract_triple_quotelike): Add a 'struct perl_extractor *' parameter. Remove
mlp parameter.
(extract_quotelike_pass3): Add a 'struct perl_extractor *' parameter.
(extract_variable): Add a 'struct perl_extractor *' parameter. Remove mlp
parameter.
(interpolate_keywords): Likewise. Rename states wait_quote → seen_lbrace,
dquote → lbrace_dquote, squote → lbrace_squote, barekey → lbrace_barekey. Add
handling of bracket-enclosed expressions in strings.
(x_perl_prelex, x_perl_lex): Add a 'struct perl_extractor *' parameter. Remove
mlp parameter.
(x_perl_unlex): Add a 'struct perl_extractor *' parameter.
(collect_message, extract_balanced): Add a 'struct perl_extractor *' parameter.
Remove mlp parameter.
(extract_perl_input): New function, extracted from extract_perl.
(extract_perl): Use it. Create a 'struct perl_extractor'.
* gettext-tools/tests/xgettext-perl-5: Add tests of strings with embedded
expressions.
* NEWS: Mention the change.
2024-09-19 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Report warnings instead of fatal errors.
* gettext-tools/doc/lang-perl.texi (Interpolation I, Interpolation II): Say
"unsupported" instead of "invalid". Say "warning" instead of "fatal error".
* gettext-tools/doc/gettext.texi: Update menu.
* gettext-tools/src/x-perl.c (token_type_string_interpol): New enum item.
(token2string): Handle token_type_string_interpol.
(extract_quotelike_pass3): Remove error_level parameter; use IF_SEVERITY_WARNING
instead. Say "unsupported" instead of "invalid". When encountering an
unsupported variable interpolation, change the token's type to
token_type_string_interpol.
(interpolate_keywords): After calling extract_quotelike_pass3, test the token's
type.
(prefer_regexp_over_division): Handle token_type_string_interpol.
(collect_message): Remove error_level parameter; use IF_SEVERITY_WARNING
instead. After calling extract_quotelike_pass3, test the token's type. Possibly
return NULL.
(extract_balanced): Handle token_type_string_interpol. Test the return value of
collect_message.
* NEWS: Mention the change.
2024-09-18 Bruno Haible <bruno@clisp.org>
xgettext: PHP: Code style.
* gettext-tools/src/x-php.c (phase4_get): Trivial changes.
2024-09-18 Bruno Haible <bruno@clisp.org>
xgettext: PHP: Recognize strings with embedded expressions.
* gettext-tools/src/x-php.c (enum token_type_ty, struct token_ty): Moved.
(struct php_extractor): New type.
(fp, phase1_pushback, phase1_pushback_length, phase2_pushback,
phase2_pushback_length, buffer, bufmax, buflen, last_comment_line,
last_non_comment_line, phase3_pushback, phase3_pushback_length,
phase4_pushback, phase4_pushback_length, phase5_last, paren_nesting_depth,
bracket_nesting_depth): Remove variables.
(php_extractor_init_rest): New function.
(extract_php_input): New declaration.
(phase1_getc): Add a 'struct php_extractor *' parameter. Read from a string
if fp == NULL.
(phase1_ungetc, skip_html, comment_start, comment_add, comment_line_end,
phase3_getc, phase3_ungetc): Add a 'struct php_extractor *' parameter.
(phase4_get): Likewise. Add handling of embedded expressions in strings.
(phase4_unget, x_php_lex): Add a 'struct php_extractor *' parameter.
(extract_balanced): Add a 'struct php_extractor *' parameter. Remove mlp
parameter.
(extract_php_input): New function, extracted from extract_php.
(extract_php): Use it. Create a 'struct php_extractor'.
* gettext-tools/tests/xgettext-php-1: Add tests of strings with embedded
expressions.
* NEWS: Mention the change.
2024-09-18 Bruno Haible <bruno@clisp.org>
xgettext: PHP: Disallow character \x7f in identifiers.
* gettext-tools/src/x-php.c (phase4_get): Don't allow character \x7f in symbol
tokens.
2024-09-18 Bruno Haible <bruno@clisp.org>
xgettext: C#: Recognize strings with embedded expressions.
* gettext-tools/src/x-csharp.c (token_type_template, token_type_ltemplate,
token_type_mtemplate, token_type_rtemplate): New enum items.
(free_token): Treat token_type_template like token_type_string_literal.
(accumulate_escaped): Accept a second delimiter argument. Return the delimiter.
(template_literal_depth, brace_depths, brace_depths_alloc): New variables,
copied from x-javascript.c.
(new_brace_depth_level): New function, copied from x-javascript.c.
(phase6_get): Recognize strings with embedded expressions. Handle braces in a
nested manner.
(extract_parenthesized): Handle the token types token_type_template,
token_type_ltemplate, token_type_mtemplate, token_type_rtemplate.
(extract_csharp): Initialize template_literal_depth and call
new_brace_depth_level.
* gettext-tools/tests/xgettext-csharp-5: Add tests of strings with embedded
expressions.
* NEWS: Mention the change.
2024-09-18 Bruno Haible <bruno@clisp.org>
tests: Add xgettext tests regarding strings with embedded expressions.
* gettext-tools/tests/xgettext-sh-1: Add tests of strings with embedded
expressions.
* gettext-tools/tests/xgettext-python-1: Likewise.
* gettext-tools/tests/xgettext-tcl-2: Likewise.
* gettext-tools/tests/xgettext-ruby-2: Likewise.
* gettext-tools/tests/xgettext-javascript-3: Likewise.
2024-09-16 Bruno Haible <bruno@clisp.org>
Update copyright year.
2024-09-16 Bruno Haible <bruno@clisp.org>
build: Fix "make distcheck" after the line-breaking algorithm changed.
* gettext-runtime/po/Makefile.in.in (.po.gmo, $(POFILES)): In the gettext-tools
package, when not cross-compiling, use the locally built msg* programs.
* gettext-tools/configure.ac: When not cross-compiling, set MSGMERGE and
MSGMERGE_FOR_MSGFMT_OPTION to point to locally built msgmerge program.
2024-09-16 Bruno Haible <bruno@clisp.org>
tests: Fix a test failure.
* gettext-tools/tests/xgettext-ruby-2: Skip the test if 'rxgettext' is not
found.
2024-09-16 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/tests/msgmerge-28: Update expected test result.
* gettext-tools/tests/mm-viet.out: Likewise.
2024-09-15 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-09-11 Bruno Haible <bruno@clisp.org>
tests: Add xgettext tests regarding string concatenation.
* gettext-tools/tests/xgettext-sh-1: Add string concatenation tests.
* gettext-tools/tests/xgettext-lua-1: Add a string concatenation test.
* gettext-tools/tests/xgettext-vala-1: Likewise.
* gettext-tools/tests/xgettext-javascript-3: Enhance the string concatenation
test.
* gettext-tools/tests/xgettext-csharp-5: Update comment.
* gettext-tools/tests/xgettext-csharp-6: Likewise.
* gettext-tools/tests/xgettext-java-5: Likewise.
* gettext-tools/tests/xgettext-java-6: Likewise.
* gettext-tools/tests/xgettext-lua-2: Likewise.
* gettext-tools/tests/xgettext-perl-7: Likewise.
* gettext-tools/tests/xgettext-php-3: Likewise.
* gettext-tools/tests/xgettext-python-1: Likewise.
* gettext-tools/tests/xgettext-python-2: Likewise.
* gettext-tools/tests/xgettext-python-4: Likewise.
* gettext-tools/tests/xgettext-ruby-1: Likewise.
* gettext-tools/tests/xgettext-sh-5: Likewise.
* gettext-tools/tests/xgettext-ruby-2: New file, based on
gettext-tools/tests/xgettext-csharp-6.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2024-09-11 Bruno Haible <bruno@clisp.org>
xgettext: awk: Recognize string concatenation.
* gettext-tools/src/x-awk.c (SIZEOF): New macro.
(phase3_pushback, phase3_pushback_length): New variables.
(phase3_get): Renamed from x_awk_lex. Return pushed-back token if present.
(phase3_unget): New function.
(string_concat_free1): New function.
(phase4_get): New function.
(extract_parenthesized): Invoke phase4_get instead of x_awk_lex.
(extract_awk): Initialize phase3_pushback_length.
* gettext-tools/tests/xgettext-awk-1: Add test cases for string concatenation.
* NEWS: Mention the improvement.
2024-09-11 Bruno Haible <bruno@clisp.org>
xgettext: Smalltalk: Recognize string concatenation.
* gettext-tools/src/x-smalltalk.c (struct token_ty): Add field 'comment'.
(free_token): New function.
(phase2_get): Fill in tp->comment.
(phase3_pushback): Increase size.
(phase3_get): Fill in tp->comment. Do reference counting.
(string_concat_free1): New function.
(phase4_pushback, phase4_pushback_length): New variables.
(phase4_get, phase4_unget): New functions.
(extract_smalltalk): Initialize phase4_pushback_length. Call phase4_get instead
of phase3_get, phase4_unget instead of phase3_unget. Use the comment stored in
the token. Call free_token.
* gettext-tools/tests/xgettext-smalltalk-1: Add a test case of string
concatenation.
* NEWS: Mention the improvement.
2024-09-11 Bruno Haible <bruno@clisp.org>
xgettext: Ruby: Make the --omit-header option work.
* gettext-tools/src/x-ruby.c (is_not_header): New function.
(extract_ruby): If --omit-header is specified, remove the header entry at the
end.
2024-09-11 Bruno Haible <bruno@clisp.org>
xgettext: Refactor.
* gettext-tools/src/x-awk.c (SE_QUOTES): Renamed from P7_QUOTES.
(get_string_element): Renamed from phase7_getc.
(x_awk_lex): Update.
* gettext-tools/src/x-c.c (SE_EOF): Renamed from P7_EOF.
(SE_QUOTES): Renamed from P7_QUOTES.
(SE_QUOTE): Renamed from P7_QUOTE.
(SE_NEWLINE): Renamed from P7_NEWLINE.
(get_string_element): Renamed from phase7_getc.
(unget_string_element): Renamed from phase7_ungetc.
(phase5_get): Update.
* gettext-tools/src/x-vala.c (SE_EOF): Renamed from P7_EOF.
(SE_QUOTES): Renamed from P7_QUOTES.
(SE_QUOTE): Renamed from P7_QUOTE.
(SE_NEWLINE): Renamed from P7_NEWLINE.
(get_string_element): Renamed from phase7_getc.
(unget_string_element): Renamed from phase7_ungetc.
(phase3_get): Update.
* gettext-tools/src/x-ycp.c (SE_QUOTES): Renamed from P7_QUOTES.
(get_string_element): Renamed from phase7_getc.
(phase5_get): Update.
2024-09-10 Bruno Haible <bruno@clisp.org>
doc: Document the <inttypes.h> macros for translators.
Reported by Mingye Wang <arthur200126@gmail.com>
at <https://savannah.gnu.org/bugs/?66195>.
* gettext-tools/doc/gettext.texi (c-format, objc-format): Mention the
<inttypes.h> macro placeholders.
2024-09-10 Bruno Haible <bruno@clisp.org>
build: Fix build failure when people set DESTDIR already during 'make'.
Reported by Henrik Holst <henrik.holst@outlook.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-09/msg00005.html>.
* gettext-tools/src/Makefile.am (textstyle.h): Pass an empty DESTDIR to
libtextstyle/lib/Makefile.
2024-09-10 Bruno Haible <bruno@clisp.org>
doc: Discourage --omit-header.
* gettext-tools/doc/msgcomm.texi: Document the effects of --omit-header.
* gettext-tools/doc/xgettext.texi: Likewise.
2024-09-10 Bruno Haible <bruno@clisp.org>
xgettext: Deprecate --trigraphs.
* gettext-tools/src/xgettext.c (usage): Mark option --trigraphs as deprecated.
* gettext-tools/doc/xgettext.texi: Likewise.
2024-09-10 Bruno Haible <bruno@clisp.org>
xgettext: C: Fix undefined behaviour.
* gettext-tools/src/x-c.c (phase7_getc): Declare n as 'unsigned int', to avoid
signed integer overflow.
* gettext-tools/tests/xg-c-escape-3.c: Add two more test cases.
* gettext-tools/tests/xgettext-c-escape-3: Update expected test result.
2024-09-10 Bruno Haible <bruno@clisp.org>
Drop workarounds for glibc 2.1 and Solaris 9.
* gettext-tools/src/read-po-lex.c (po_lex_charset_set): Remove glibc 2.1 and
Solaris 9 workarounds.
* gettext-tools/src/recode-sr-latin.c (process): Likewise.
* gettext-tools/src/write-po.c (wrap): Likewise.
* gettext-tools/src/x-python.c (set_current_file_source_encoding): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::free,
iconv_ostream_create): Likewise.
2024-09-08 Bruno Haible <bruno@clisp.org>
doc: Add comments.
* gettext-tools/doc/lang-sh.texi: Add a comment.
2024-09-08 Bruno Haible <bruno@clisp.org>
doc: Enhance doc about format strings in JavaScript.
* gettext-tools/doc/lang-javascript.texi (JavaScript): Document how to get a
decent 'format' method.
2024-09-08 Bruno Haible <bruno@clisp.org>
doc: Update regarding PO file editors.
* gettext-tools/doc/gettext.texi (Editing): Add some text.
(Web based localization): New section.
(Lokalize): Renamed from KBabel. Add some text.
(Gtranslator): Add some text.
(Poedit): New section.
2024-09-08 Bruno Haible <bruno@clisp.org>
doc: Fix formatting with texi2html.
* gettext-tools/doc/gettext.texi: Write '@itemize @bullet', not just '@itemize'.
* gettext-tools/doc/xgettext.texi: Likewise.
2024-09-01 Bruno Haible <bruno@clisp.org>
Replace FSF snail-mail addresses with URLs.
* build-aux/texi2html: Update GPL license notice.
2024-09-01 Bruno Haible <bruno@clisp.org>
Update translators' disclaimer.
* gettext-tools/misc/DISCLAIM: Untabify. Integrate some changes from the
FSF (2010).
2024-08-24 Bruno Haible <bruno@clisp.org>
build: Fix shared library support in 32-bit mode on FreeBSD/powerpc64.
Patch from <https://savannah.gnu.org/patch/index.php?10469>.
* m4/libtool.m4: On FreeBSD, fix shlibpath_var.
2024-08-21 Bruno Haible <bruno@clisp.org>
xgetcwd: Port to native Windows.
Use a variant of the gnulib module 'xgetcwd' instead of our own (older) one.
* gnulib-local/lib/xgetcwd.h: Remove file.
* gnulib-local/lib/xgetcwd.c: Remove file.
* gnulib-local/modules/xgetcwd: Remove file.
* gnulib-local/modules/xgetcwd.diff: New file.
* gnulib-local/Makefile.am (EXTRA_DIST): Update.
2024-08-20 Bruno Haible <bruno@clisp.org>
msgfmt: Tcl: Produce the same output on native Windows as elsewhere.
* gettext-tools/src/write-tcl.c (msgdomain_write_tcl): Invoke fopen with 'b'
flag, so as to force Unix newlines.
2024-08-20 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: Recognize datum-comments, part 2.
* gettext-tools/src/x-scheme.c (read_object): Avoid reference to uninitialized
variable context_iter for arg > 0.
2024-08-17 Bruno Haible <bruno@clisp.org>
tests: Improve portability.
* gettext-tools/tests/lang-javascript: Don't use '${DIFF} -u', since AIX diff
does not support the -u option.
* gettext-tools/tests/xgettext-vala-6: Likewise.
2024-08-17 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: Recognize hexadecimal escape sequences in string literals.
* gettext-tools/src/x-scheme.c (accumulate_escaped): Recognize \x, \u, \U escape
sequences.
* gettext-tools/tests/xgettext-scheme-7: Test also some \x escape sequences.
* gettext-tools/tests/xgettext-scheme-8: Test also some \x, \u, \U escape
sequences.
2024-08-17 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: Prepare for recognizing more escape sequences in string literals.
* gettext-tools/src/x-scheme.c (accumulate_escaped): New function, extracted
from read_object.
(struct object): Add field 'mixed_string'.
(free_object): Free field 'mixed_string'.
(string_of_object): Implement differently for objects of type t_string.
(read_object): Use accumulate_escaped. Invoke mixed_string_alloc_utf8 instead of
mixed_string_alloc_simple.
2024-08-17 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: In language Scheme, handle backslash-newline as specified in R6RS.
Reported by Florent Angly <florent.angly@gmail.com>
at <https://savannah.gnu.org/bugs/?59262>.
* gettext-tools/src/x-scheme.c (read_object): Do R6RS-compliant interpretation
of backslash-newline if follow_guile is false.
* gettext-tools/tests/xgettext-scheme-7: New file.
* gettext-tools/tests/xgettext-scheme-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2024-08-16 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: #!fold-case and #!no-fold-case directives.
Reported by Florent Angly <florent.angly@gmail.com>
at <https://savannah.gnu.org/bugs/?61987>.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add unicase/u8-casefold,
uninorm/nfc.
* gettext-tools/src/x-scheme.c: Include unicase.h, uninorm.h.
(SIZEOF): New macro.
(phase0_getc): Renamed from do_getc. Remove line_number handling.
(phase0_ungetc): Renamed from do_ungetc. Remove line_number handling.
(MAX_PHASE1_PUSHBACK): New macro.
(phase1_pushback, phase1_pushback_length): New variables.
(phase1_getc, phase1_ungetc): New functions.
(casefold): New variable.
(read_token): Use phase1_getc, phase1_ungetc instead of do_getc, do_ungetc.
(read_object): Likewise. If casefold is true, apply Unicode case-folding to
symbols before looking them up in the hash table. Recognize all #! directives
supported by Guile.
(extract_whole_file): Initialize phase1_pushback_length, casefold.
* gettext-tools/tests/xgettext-scheme-6: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2024-08-16 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: Recognize datum-comments.
Reported by Florent Angly <florent.angly@gmail.com>
at <https://savannah.gnu.org/bugs/?61882>.
* gettext-tools/src/x-scheme.c (datum_comment_nesting_depth): New variable.
(read_object): Omit the normal processing of list elements if
datum_comment_nesting_depth is non-zero. Recognize datum comments.
(extract_whole_file): Initialize datum_comment_nesting_depth.
* gettext-tools/tests/xgettext-scheme-1: Add a test case with a datum comment.
* NEWS: Mention the change.
2024-08-16 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: Understand both '-L Scheme' and '-L Guile'.
* gettext-tools/src/x-scheme.h (EXTENSIONS_SCHEME): Associate the language
Guile, not Scheme, with the extension .scm.
(SCANNERS_SCHEME): Add info about the 'Guile' language.
(extract_guile): New declaration.
* gettext-tools/src/x-scheme.c (follow_guile): New variable.
(extract_whole_file): Renamed from extract_scheme.
(extract_scheme, extract_guile): New functions.
* gettext-tools/src/xgettext.c (usage): List Guile as a possible argument for
the '-L' option.
* gettext-tools/doc/xgettext.texi: Document 'Guile' as possible argument for
the '-L' option.
* gettext-tools/doc/lang-scheme.texi (Scheme): Explain the difference between
'-L Scheme' and '-L Guile'.
* NEWS: Mention the change.
2024-08-16 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: More tests.
* gettext-tools/tests/xgettext-scheme-5: New file, based on
gettext-tools/tests/xgettext-5.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2024-08-16 Bruno Haible <bruno@clisp.org>
xgettext: Scheme: Reorganize tests.
* gettext-tools/tests/xgettext-scheme-format-1: Renamed from
gettext-tools/tests/xgettext-scheme-5.
* gettext-tools/tests/xgettext-scheme-format-2: Renamed from
gettext-tools/tests/xgettext-scheme-6.
* gettext-tools/tests/Makefile.am (TESTS): Update.
2024-08-16 Bruno Haible <bruno@clisp.org>
msginit: Update information about zh_TW translation team.
Reported by Buug Worm <buugworm@gmail.com>
at <https://savannah.gnu.org/bugs/?66094>.
* gettext-tools/projects/KDE/teams.url: Update URL.
* gettext-tools/projects/KDE/teams.html: Update information about zh_TW
translation team.
* gettext-tools/projects/TP/teams.html: Likewise.
2024-08-16 Bruno Haible <bruno@clisp.org>
tests: Prefer 'cat <<\EOF' to 'cat <<EOF' whenever possible.
Rationale: Not interpreting $ and \ in the here documents is a better default
than interpreting them.
* gettext-tools/tests/*: Write 'cat <<\EOF' instead of 'cat <<EOF', when no
shell dollar-substitution and backslash-interpretation is needed.
2024-08-14 Bruno Haible <bruno@clisp.org>
xgettext: Python: Change escape sequences interpretation to follow Python 3.
Reported by Serhii Tereshchenko <serg.partizan@gmail.com> at
<https://savannah.gnu.org/bugs/?65778>.
* gettext-tools/src/x-python.c (phase7_getuc): Update comments for Python 3.
Don't interpret \u sequences in raw bytes and raw strings.
(phase5_get): Recognize bytes prefixes 'b' and 'B'. For f-strings, invoke
phase7_getuc with interpret_unicode = true, not false.
* gettext-tools/tests/xgettext-python-1: Update for Python 3.
* gettext-tools/tests/xgettext-python-5: Likewise.
* NEWS: Mention the change.
2024-08-12 Bruno Haible <bruno@clisp.org>
Improve handling of non-BMP characters with Tcl 9.0.
* gettext-tools/src/write-tcl.c (hexdigit): New variable.
(write_tcl8_string): Renamed from write_tcl_string. Enable the escaping of
braces.
(write_tcl9_string, is_entirely_ucs2, write_tcl_string): New functions.
* gettext-tools/tests/msgfmt-tcl-1: New file.
* gettext-tools/tests/testdata/tcltest_pl.po: New file.
* gettext-tools/tests/testdata/tcltest_pl.msg: New file.
* gettext-tools/tests/msgfmt-tcl-2: New file.
* gettext-tools/tests/testdata/tcltest_cs.po: New file.
* gettext-tools/tests/testdata/tcltest_cs.msg: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add msgfmt-tcl-1, msgfmt-tcl-2.
(EXTRA_DIST): Add the new testdata files.
* NEWS: Mention the change.
2024-08-12 Bruno Haible <bruno@clisp.org>
libintl: Remove conditionals for libglocale.
libglocale was a short-lived project in 2005 that was never completed.
* gettext-runtime/intl/dcigettext.c: Assume IN_LIBGLOCALE is not defined.
* gettext-runtime/intl/libgnuintl.in.h: Likewise.
* gettext-runtime/intl/loadmsgcat.c: Likewise.
* gettext-runtime/intl/localealias.c: Likewise.
* gettext-runtime/intl/plural-exp.h: Likewise.
* gettext-runtime/intl/gettextP.h: Likewise.
(gl_dcigettext): Remove declaration.
* gettext-runtime/intl/Makefile.am (libgnuintl.h, libintl.h): Remove the
IN_LIBGLOCALE handling.
2024-08-12 Bruno Haible <bruno@clisp.org>
build: Update .gitignore: Automake no longer needs or installs elisp-comp.
2024-08-12 Bruno Haible <bruno@clisp.org>
build: Update .gitignore: moopp is now exclusively used by libtextstyle.
2024-08-12 Bruno Haible <bruno@clisp.org>
build: Update .gitignore: Better sorting.
2024-08-12 Bruno Haible <bruno@clisp.org>
libgettextpo: Update .gitignore.
2024-08-12 Bruno Haible <bruno@clisp.org>
libgettextpo: Use a multithread-safe alternative to strerror(), part 2.
2024-08-12 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable error_with_progname, part 2.
* gettext-tools/src/read-po-lex.h: Don't include error-progname.h.
* gettext-tools/src/format-scheme.c: Likewise.
* gettext-tools/src/read-desktop.c: Likewise.
* gettext-tools/src/x-desktop.c: Likewise.
2024-08-09 Bruno Haible <bruno@clisp.org>
build: Fix a check-copyright-headers failure.
* gettext-tools/libgettextpo/multithread-safe.txt: Add a license header.
2024-08-07 Bruno Haible <bruno@clisp.org>
libgettextpo: Now multithread-safe.
* gettext-tools/libgettextpo/multithread-safe.txt: New file.
* gettext-tools/libgettextpo/Makefile.am (EXTRA_DIST): Add it.
* gettext-tools/doc/gettext.html (libgettextpo): Document multithread-safety.
* NEWS: Mention it.
2024-08-07 Bruno Haible <bruno@clisp.org>
libgettextpo: Use a multithread-safe alternative to strerror().
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add xstrerror.
* gnulib-local/lib/markup.c: Include xstrerror.h.
(unescape_string_inplace): Use xstrerror instead of strerror.
* gnulib-local/modules/markup (Depends-on): Add xstrerror.
* gettext-tools/src/read-po-lex.c: Include xstrerror.h.
(mbfile_getc, lex_getc): Use xstrerror instead of strerror.
* gettext-tools/src/read-properties.c: Include xstrerror.h.
(properties_parse): Use xstrerror instead of strerror.
* gettext-tools/src/read-stringtable.c: Include xstrerror.h.
(phase1_getc): Use xstrerror instead of strerror.
* gettext-tools/src/write-catalog.c: Include xstrerror.h.
(msgdomain_list_print): Use xstrerror instead of strerror.
2024-08-07 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable error_with_progname.
Inside libgettextpo, assignments to error_with_progname are undesired.
Outside libgettextpo, they are redundant.
* gettext-tools/src/read-po-lex.c: Don't include error-progname.h.
* gettext-tools/src/read-properties.c: Don't include error-progname.h.
(read_escaped_string): Remove assignments to error_with_progname.
* gettext-tools/src/read-stringtable.c: Don't include error-progname.h.
* gettext-tools/src/write-catalog.c: Don't include error-progname.h.
(msgdomain_list_print): Remove assignments to error_with_progname.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Remove error-progname.
2024-08-05 Bruno Haible <bruno@clisp.org>
build: Avoid "Missing copyright header" error for std-gnu11.m4.
* check-copyright-headers (func_check_file): Search for the copyright notice
in the first 20 lines.
2024-08-05 Bruno Haible <bruno@clisp.org>
Fix compilation error on MSVC.
* gettext-tools/src/msgmerge.c (silent_error_logger): Conditionalize the
__attribute__ annotation.
2024-08-05 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-08-05 Bruno Haible <bruno@clisp.org>
libgettextpo: Make function po_format_list() multithread-safe.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add 'once'.
* gettext-tools/libgettextpo/gettext-po.c: Include glthread/once.h.
(all_formats): New variable.
(all_formats_init): New function, extracted from po_format_list.
(all_formats_init_once): New variable.
(po_format_list): Invoke all_formats_init once.
2024-08-05 Bruno Haible <bruno@clisp.org>
libgettextpo: Don't use static variable gram_max_allowed_errors.
* gettext-tools/src/read-po.h (gram_max_allowed_errors): New declaration.
* gettext-tools/src/read-po-lex.h (gram_max_allowed_errors): Remove declaration.
* gettext-tools/src/read-po.c: Include <limits.h>.
(gram_max_allowed_errors): Moved to here. Change initial value to UINT_MAX.
* gettext-tools/src/read-po-lex.c: Include read-po.h.
(gram_max_allowed_errors): Remove variable.
* gettext-tools/libgettextpo/gettext-po.c: Don't include read-po-lex.h.
(po_file_read): Don't assign gram_max_allowed_errors.
* gettext-tools/src/msgattrib.c (main): Initialize gram_max_allowed_errors.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* gettext-tools/src/msgcmp.c: Don't include read-po-lex.h.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgfmt.c: Don't include read-po-lex.h.
(main): Initialize gram_max_allowed_errors.
2024-08-05 Bruno Haible <bruno@clisp.org>
Refactor: Remove code duplication.
* gettext-tools/src/po-xerror.h: Include xerror-handler.h. Remove all
declarations.
(PO_SEVERITY_*): Define as aliases of CAT_SEVERITY_*.
(po_xerror, po_xerror2): New macros.
* gettext-tools/src/po-xerror.c: Remove file.
* gettext-tools/src/Makefile.am (COMMON_SOURCE): Remove po-xerror.c.
* gettext-tools/src/msgmerge.c (silent_xerror2): New function.
(match_domain): Pass a stack-allocated xerror_handler to check_plural_eval.
* gettext-tools/woe32dll/gettextsrc-exports.c (po_xerror, po_xerror2): Remove
exports.
* gettext-tools/po/POTFILES.in: Add src/xerror-handler.c. Remove
src/po-xerror.c.
2024-08-05 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove unused object files.
* gettext-tools/src/read-po-lex.h: Don't include xerror.h.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Remove
po-xerror.c and po-error.c.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Remove xerror.
2024-08-05 Bruno Haible <bruno@clisp.org>
Add an xerror_handler parameter to check_message and check_message_list.
* gettext-tools/src/msgl-check.h: Include xerror-handler.h.
(check_plural_eval, check_message, check_message_list): Add xerror_handler_ty
parameter.
* gettext-tools/src/msgl-check.c (check_plural_eval, check_plural, check_pair,
check_header_entry, check_message, check_message_list): Add xerror_handler_ty
parameter. Use it for error handling.
(struct formatstring_error_logger_locals): Add xeh field.
(formatstring_error_logger): Use it for error handling.
* gettext-tools/libgettextpo/gettext-po.c: Don't include po-xerror.h.
(po_file_check_all, po_message_check_all): Pass a stack-allocated xerror_handler
to check_message_list.
(po_message_check_format): Pass a stack-allocated xerror_handler to
check_message.
* gettext-tools/src/msgfmt.c (main, msgfmt_operand_list_add_from_directory): Use
the default xerror_handler.
* gettext-tools/src/msgmerge.c (match_domain): Likewise.
2024-08-05 Bruno Haible <bruno@clisp.org>
Add an xerror_handler parameter to msgdomain_list_print.
* gettext-tools/src/write-catalog.h: Include xerror-handler.h.
(struct catalog_output_format): Add xerror_handler_ty parameter to the print
method.
(msgdomain_list_print): Add xerror_handler_ty parameter.
* gettext-tools/src/write-catalog.c: Include xerror-handler.h instead of
po-xerror.h.
(msgdomain_list_print): Add xerror_handler_ty parameter. Use it for error
handling.
* gettext-tools/src/write-po.c: Include xerror-handler.h instead of po-xerror.h.
(wrap, message_print, message_print_obsolete, msgdomain_list_print_po): Add
xerror_handler_ty parameter. Use it for error handling.
* gettext-tools/src/write-properties.c: Include xerror-handler.h.
(write_properties, msgdomain_list_print_properties): Add xerror_handler_ty
parameter. Use it for error handling.
* gettext-tools/src/write-stringtable.c: Include xerror-handler.h.
(write_stringtable, msgdomain_list_print_stringtable): Add xerror_handler_ty
parameter. Use it for error handling.
* gettext-tools/libgettextpo/gettext-po.c (po_file_write): Pass a
stack-allocated xerror_handler to msgdomain_list_print.
* gettext-tools/src/msgl-iconv.h: Include xerror-handler.h.
(iconv_message_list, iconv_msgdomain_list): Add xerror_handler_ty parameter.
* gettext-tools/src/msgl-iconv.c: Include xerror-handler.h instead of
po-xerror.h.
(conversion_error, convert_string, convert_string_list, convert_prev_msgid,
convert_msgid, convert_msgstr, iconv_message_list_internal, iconv_message_list,
iconv_msgdomain_list): Add xerror_handler_ty parameter. Use it for error
handling.
(convert_string_directly, convert_string_desc_directly): Use the default
xerror_handler.
* gettext-tools/src/msgattrib.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msgcat.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msgcmp.c: Include xerror-handler.h.
(compare): Use the default xerror_handler.
* gettext-tools/src/msgcomm.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msgconv.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msgen.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msgfilter.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msgfmt.c: Include xerror-handler.h.
(msgfmt_operand_list_add_from_directory): Use the default xerror_handler.
* gettext-tools/src/msggrep.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msginit.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msgl-cat.c: Include xerror-handler.h.
(catenate_msgdomain_list): Use the default xerror_handler.
* gettext-tools/src/msgmerge.c: Include xerror-handler.h.
(main, merge): Use the default xerror_handler.
* gettext-tools/src/msgunfmt.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/msguniq.c: Include xerror-handler.h.
(main): Use the default xerror_handler.
* gettext-tools/src/write-csharp.c: Include xerror-handler.h.
(msgdomain_write_csharp): Use the default xerror_handler.
* gettext-tools/src/write-desktop.c: Include xerror-handler.h.
(msgdomain_write_desktop): Use the default xerror_handler.
* gettext-tools/src/write-java.c: Include xerror-handler.h.
(msgdomain_write_java): Use the default xerror_handler.
* gettext-tools/src/write-mo.c: Include xerror-handler.h.
(msgdomain_write_mo): Use the default xerror_handler.
* gettext-tools/src/write-qt.c: Include xerror-handler.h.
(msgdomain_write_qt): Use the default xerror_handler.
* gettext-tools/src/write-resources.c: Include xerror-handler.h.
(msgdomain_write_csharp_resources): Use the default xerror_handler.
* gettext-tools/src/write-tcl.c: Include xerror-handler.h.
(msgdomain_write_tcl): Use the default xerror_handler.
* gettext-tools/src/write-xml.c: Include xerror-handler.h.
(msgdomain_write_xml): Use the default xerror_handler.
* gettext-tools/src/x-po.c (extract): Use the default xerror_handler.
* gettext-tools/src/xgettext.c: Include xerror-handler.h.
(main, finalize_header): Use the default xerror_handler.
2024-08-05 Bruno Haible <bruno@clisp.org>
Add an xerror_handler parameter to read_catalog_stream.
* gettext-tools/src/read-catalog-abstract.h: Include xerror-handler.h.
(ABSTRACT_CATALOG_READER_TY): Add xeh field.
(catalog_reader_alloc): Add xerror_handler parameter.
* gettext-tools/src/read-catalog-abstract.c: Include xerror-handler.h instead of
po-xerror.h.
(catalog_reader_alloc): Add xerror_handler parameter.
(catalog_reader_parse): Use catr->xeh for error handling.
* gettext-tools/src/read-catalog.h: Include xerror-handler.h.
(default_catalog_reader_alloc, read_catalog_stream): Add xerror_handler
parameter.
* gettext-tools/src/read-catalog.c: Include xerror-handler.h instead of
po-xerror.h.
(default_set_domain, default_add_message): Use catr->xeh for error handling.
(default_catalog_reader_alloc, read_catalog_stream): Add xerror_handler
parameter.
* gettext-tools/src/read-po-lex.h: Include read-catalog-abstract.h.
(po_gram_error_at_line): Add catr parameter.
* gettext-tools/src/read-po-lex.c: Include xerror-handler.h instead of
po-xerror.h.
(po_gram_error): Use ps->catr->xeh for error handling.
(po_gram_error_at_line): Add catr parameter. Use catr->xeh for error handling.
(po_lex_charset_set, mbfile_getc, lex_getc): Use ps->catr->xeh for error
handling.
(keyword_p, po_gram_lex): Update invocations of po_gram_error_at_line.
* gettext-tools/src/read-po-gram.y: Update invocations of po_gram_error_at_line.
* gettext-tools/src/read-properties.c: Include xerror-handler.h instead of
po-xerror.h.
(phase4_getuc, read_escaped_string): Add catr parameter. Use catr->xeh for error
handling.
(properties_parse): Use catr->xeh for error handling.
* gettext-tools/src/read-stringtable.c: Include xerror-handler.h instead of
po-xerror.h.
(phase1_getc, phase2_getc, phase3_getc): Add catr parameter. Use catr->xeh for
error handling.
(phase4_getc): Update.
(read_string, stringtable_parse): Use catr->xeh for error handling.
* gettext-tools/libgettextpo/gettext-po.c (po_file_read): Pass a stack-allocated
xerror_handler to read_catalog_stream.
* gettext-tools/src/msgfmt.c: Include xerror-handler.h.
(read_catalog_file_msgfmt): Use the default xerror_handler.
* gettext-tools/src/read-catalog-file.c: Include xerror-handler.h.
(read_catalog_file): Use the default xerror_handler.
* gettext-tools/src/read-csharp.c: Include xerror-handler.h.
(execute_and_read_po_output): Use the default xerror_handler.
* gettext-tools/src/read-java.c: Include xerror-handler.h.
(execute_and_read_po_output): Use the default xerror_handler.
* gettext-tools/src/read-resources.c: Include xerror-handler.h.
(execute_and_read_po_output): Use the default xerror_handler.
* gettext-tools/src/read-tcl.c: Include xerror-handler.h.
(msgdomain_read_tcl): Use the default xerror_handler.
* gettext-tools/src/x-po.c: Include xerror-handler.h.
(extract): Use the default xerror_handler.
* gettext-tools/src/xgettext.c: Include xerror-handler.h.
(read_exclusion_file): Use the default xerror_handler.
2024-08-05 Bruno Haible <bruno@clisp.org>
Add xerror-handler.
* gettext-tools/src/xerror-handler.h: New file, based on gettext-tools/src/po-xerror.h.
* gettext-tools/src/xerror-handler.c: New file, based on gettext-tools/src/po-xerror.c.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add xerror-handler.h.
(COMMON_SOURCE): Add xerror-handler.c.
* gettext-tools/src/FILES: Update.
* gettext-tools/woe32dll/gettextsrc-exports.c (textmode_xerror_handler_struct):
New export.
2024-08-03 Bruno Haible <bruno@clisp.org>
Refactor: Remove K&R C cruft.
* gettext-tools/src/read-po-lex.c: Remove VARARGS1 and VARARGS2 comments.
2024-08-03 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove backward compatibility with versions < 0.15 (July 2006).
* gettext-tools/libgettextpo/gettext-po.c (_GL_NO_INLINE_ERROR): Remove macro.
Don't include <error.h>, <stdbool.h>, <stdarg.h>, xerror.h, po-error.h,
format.h.
(orig_error, orig_error_at_line): Remove variables.
(void_multiline_warning, void_multiline_error): Remove functions.
(po_file_read_v2, po_file_read, po_file_write, po_error_logger,
po_message_check_format): Remove functions.
* gettext-tools/libgettextpo/gettext-po.in.h (struct po_error_handler): Update
comment.
* gettext-tools/src/po-xerror.c: Update comment.
2024-08-02 Bruno Haible <bruno@clisp.org>
Refactor: Don't use po_gram_error_at_line outside the PO file reader.
* gettext-tools/src/msgcmp.c: Include po-xerror.h, xvasprintf.h.
(match_domain, compare): Use po_xerror, po_xerror2 instead of
po_gram_error_at_line.
* gettext-tools/src/msgfmt.c: Include po-xerror.h.
(msgfmt_set_domain): Use po_xerror instead of po_gram_error_at_line.
* gettext-tools/src/msgmerge.c: Include xvasprintf.h.
(match_domain): Use po_xerror, po_xerror2 instead of po_gram_error_at_line.
* gettext-tools/src/read-catalog.c (default_set_domain): Use po_xerror instead
of po_gram_error_at_line.
* gettext-tools/src/xgettext.c: Include po-xerror.h.
(exclude_directive_domain): Use po_xerror instead of po_gram_error_at_line.
2024-08-02 Bruno Haible <bruno@clisp.org>
Rename some files, part 2.
2024-08-02 Bruno Haible <bruno@clisp.org>
Rename some files.
* gettext-tools/src/read-po-internal.h: Renamed from
gettext-tools/src/po-gram.h.
* gettext-tools/src/read-po-lex.h: Renamed from gettext-tools/src/po-lex.h.
* gettext-tools/src/read-po-lex.c: Renamed from gettext-tools/src/po-lex.c.
* gettext-tools/src/read-po-gram.y: Renamed from
gettext-tools/src/po-gram-gen.y.
* gettext-tools/src/*.h: Update.
* gettext-tools/src/*.c: Update.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/Makefile.am: Update.
* gettext-tools/libgettextpo/Makefile.am: Update.
2024-08-02 Bruno Haible <bruno@clisp.org>
Refactor includes.
* gettext-tools/src/read-catalog-abstract.h: Include <stdio.h>. Don't include
po-lex.h.
* gettext-tools/src/read-catalog.c: Include po-lex.h.
* gettext-tools/src/msgcmp.c: Include po-lex.h.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/libgettextpo/gettext-po.c: Likewise.
* gettext-tools/src/x-po.c: Include <error.h>. Don't include po-lex.h.
* gettext-tools/src/read-desktop.h: Include pos.h. Don't include po-lex.h.
* gettext-tools/src/read-desktop.c: Don't include po-lex.h.
2024-08-01 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable gram_pos.
* gettext-tools/src/po-gram.h (struct po_parser_state): Add field gram_pos.
* gettext-tools/src/po-lex.h (gram_pos): Remove declaration.
* gettext-tools/src/po-lex.c (gram_pos): Remove variable.
(po_gram_error, lex_start, lex_end, lex_getc, lex_ungetc, keyword_p,
po_gram_lex): Access ps->gram_pos instead of gram_pos.
* gettext-tools/src/po-gram-gen.y: Access ps->gram_pos instead of gram_pos.
* gettext-tools/woe32dll/gettextsrc-exports.c (gram_pos): Remove export.
2024-08-01 Bruno Haible <bruno@clisp.org>
Remove some uses of global variable gram_pos.
* gettext-tools/src/msgfmt.c (msgfmt_comment_special): Use the file name from
the catalog reader instead of gram_pos.
* gettext-tools/src/read-desktop.c (gram_pos): Remove declaration.
(pos): New variable.
(phase2_getc, phase2_ungetc, desktop_lex, desktop_parse): Use it instead of
gram_pos.
* gettext-tools/src/read-properties.c (gram_pos): Remove declaration.
(pos): New variable.
(phase2_getc, phase2_ungetc, phase4_getuc, read_escaped_string,
properties_parse): Use it instead of gram_pos.
* gettext-tools/src/read-stringtable.c (gram_pos): Remove declaration.
(pos): New variable.
(phase3_getc, phase3_ungetc, stringtable_parse): Use it instead of gram_pos.
(read_string): Likewise. Rename a parameter.
(conv_from_ucs4): Rename a local variable.
2024-08-01 Bruno Haible <bruno@clisp.org>
Refactor directive_domain and set_domain methods.
* gettext-tools/src/read-catalog-abstract.h
(abstract_catalog_reader_class_ty::directive_domain): Add name_pos parameter.
(catalog_reader_seen_domain): Likewise.
* gettext-tools/src/read-catalog-abstract.c (call_directive_domain,
catalog_reader_seen_domain): Likewise.
* gettext-tools/src/read-catalog.h
(default_catalog_reader_class_ty::set_domain): Add name_pos parameter.
(default_directive_domain, default_set_domain): Likewise.
* gettext-tools/src/read-catalog.c (call_set_domain, default_directive_domain):
Likewise.
(default_set_domain): Add name_pos parameter. Use it instead of the global
variable gram_pos.
* gettext-tools/src/msgfmt.c (msgfmt_set_domain): Likewise.
* gettext-tools/src/xgettext.c (exclude_directive_domain): Likewise.
* gettext-tools/src/po-gram-gen.y: Update catalog_reader_seen_domain invocation.
2024-08-01 Bruno Haible <bruno@clisp.org>
Refactor read-desktop.h.
Rename the parameter of type 'struct desktop_reader_ty *' to reader.
* gettext-tools/src/read-desktop.h (struct desktop_reader_class_ty): Change
parameter names of methods.
2024-08-01 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variables 'buf', 'bufmax'.
* gettext-tools/src/po-gram.h (struct po_parser_state): Add fields buf, bufmax.
* gettext-tools/src/po-lex.c (lex_start): Initialize them.
(lex_end): Free the buf field.
(po_gram_lex): Use these fields instead of static variables.
2024-08-01 Bruno Haible <bruno@clisp.org>
build: Enable Automake's dependency tracking.
Quite often, after changing a struct defined in a .h file, I see "make check"
fail. After "make clean; make", "make check" passes again. This wastes my time.
Unlike 20 years ago, I don't want think about which .o files I need to erase
and rebuild. Build times are now much smaller than they were 20 years ago,
especially when configuring with --disable-shared and CFLAGS="-ggdb".
* gnulib-local/modules/gettext-runtime-misc (configure.ac): Don't augment
AUTOMAKE_OPTIONS.
* gettext-runtime/Makefile.am (AUTOMAKE_OPTIONS): Remove 'no-dependencies'.
* gettext-runtime/intl/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-runtime/libasprintf/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-runtime/src/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-runtime/tests/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* libtextstyle/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* libtextstyle/lib/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/gnulib-lib/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/libgettextpo/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/libgrep/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/src/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/system-tests/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/tests/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* gettext-tools/tests/gnulib-lib/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* Makefile.am (AUTOMAKE_OPTIONS): Likewise.
2024-08-01 Bruno Haible <bruno@clisp.org>
Refactor read-catalog-abstract.[hc], read-catalog.[hc], part 2.
Rename the parameter of type 'struct default_catalog_reader_ty *' to dcatr.
* gettext-tools/src/read-catalog.h (this): Remove macro.
(struct default_catalog_reader_class_ty): Change parameter names of methods.
2024-07-29 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable pass_comments.
* gettext-tools/src/read-catalog-abstract.h (ABSTRACT_CATALOG_READER_TY): Add
pass_comments field.
* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Initialize
pass_comments field.
* gettext-tools/src/read-catalog.c (default_parse_brief): Assign the
pass_comments field, instead of calling po_lex_pass_comments.
* gettext-tools/src/po-lex.h (po_lex_pass_comments): Remove declaration.
* gettext-tools/src/po-lex.c (pass_comments): Remove variable.
(po_gram_lex): Update.
(po_lex_pass_comments): Remove function.
2024-07-29 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable pass_obsolete_entries.
* gettext-tools/src/read-catalog-abstract.h (ABSTRACT_CATALOG_READER_TY): Add
pass_obsolete_entries field.
* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Initialize
the pass_obsolete_entries field.
* gettext-tools/src/read-catalog.c (read_catalog_stream): Assign the
pass_obsolete_entries field, instead of calling po_lex_pass_obsolete_entries.
* gettext-tools/src/msgfmt.c (read_catalog_file_msgfmt): Likewise.
* gettext-tools/src/po-lex.h (pass_obsolete_entries): Remove declaration.
(po_lex_pass_obsolete_entries): Remove declaration.
* gettext-tools/src/po-lex.c (pass_obsolete_entries): Remove variable.
(po_lex_pass_obsolete_entries): Remove function.
* gettext-tools/src/po-gram-gen.y: Update.
* gettext-tools/woe32dll/gettextsrc-exports.c (pass_obsolete_entries): Remove
export.
2024-07-28 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variables po_lex_charset, po_lex_iconv, po_lex_isolate_*, po_lex_weird_cjk.
* gettext-tools/src/read-catalog-abstract.h (ABSTRACT_CATALOG_READER_TY): Add
fields po_lex_isolate_start, po_lex_isolate_end.
* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Initialize
the new abstract_catalog_reader_ty fields.
(parse_comment_filepos): Update.
* gettext-tools/src/po-gram.h: Include <iconv.h>.
(struct po_parser_state): Add fields po_lex_charset, po_lex_iconv,
po_lex_weird_cjk.
* gettext-tools/src/po-lex.h (lex_end): Add a 'struct po_parser_state *'
parameter.
(po_lex_charset_set): New declaration, moved here from po-charset.h.
* gettext-tools/src/po-lex.c: Include xmalloca.h, basename-lgpl.h, progname.h,
c-strstr.h.
(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Moved here from
po-charset.c. Take a 'struct po_parser_state *' as argument.
(mb_width, mbfile_getc, lex_start): Update.
(lex_end): Add a 'struct po_parser_state *' parameter.
* gettext-tools/src/po-charset.h (po_lex_charset, po_lex_isolate_start,
po_lex_isolate_end, po_lex_iconv, po_lex_weird_cjk): Remove declarations.
(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Remove
declarations.
* gettext-tools/src/po-charset.c: Don't include <stdlib.h>, xmalloca.h,
xvasprintf.h, po-xerror.h, basename-lgpl.h, progname.h, c-strstr.h.
(po_lex_charset, po_lex_isolate_start, po_lex_isolate_end, po_lex_iconv,
po_lex_weird_cjk): Remove variables.
(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Moved to
po-lex.c.
* gettext-tools/src/po-gram-gen.y: Update.
* gettext-tools/src/read-po.c (po_parse): Update.
* gettext-tools/woe32dll/gettextsrc-exports.c (po_lex_charset,
po_lex_isolate_start, po_lex_isolate_end, po_lex_iconv, po_lex_weird_cjk):
Remove exports.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/its.c (struct its_rule_class_ty): Change parameter names of
methods.
(its_rule_destructor, its_translate_rule_constructor, its_translate_rule_eval,
its_localization_note_rule_constructor, its_localization_note_rule_eval,
its_element_within_text_rule_constructor, its_element_within_text_rule_eval,
its_preserve_space_rule_constructor, its_preserve_space_rule_eval,
its_extension_context_rule_constructor, its_extension_context_rule_eval,
its_extension_escape_rule_constructor, its_extension_escape_rule_eval,
its_rule_destroy): Rename parameter 'pop' to 'rule'.
(its_rule_alloc): Rename local variable 'pop' to 'rule'.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor: Rename local variables of type '*_catalog_reader_ty *'.
* gettext-tools/src/xgettext.c (read_exclusion_file): Rename local variable
'pop' to 'catr'.
* gettext-tools/src/read-catalog.c (read_catalog_stream): Rename local variable
'pop' to 'dcatr'.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor read-catalog-special.[hc], part 2.
* gettext-tools/src/read-catalog.c: Include read-catalog-special.h.
* gettext-tools/src/xg-message.c: Include read-catalog-special.h instead of
read-catalog-abstract.h.
* gettext-tools/src/x-ruby.c: Likewise.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/read-catalog-abstract.h (catalog_reader_seen_domain):
Renamed from po_callback_domain.
(catalog_reader_seen_message): Renamed from po_callback_message.
(catalog_reader_seen_comment): Renamed from po_callback_comment.
(catalog_reader_seen_comment_dot): Renamed from po_callback_comment_dot.
(catalog_reader_seen_comment_filepos): Renamed from po_callback_comment_filepos.
(catalog_reader_seen_comment_special): Renamed from po_callback_comment_special.
(catalog_reader_seen_generic_comment): Renamed from
po_callback_comment_dispatcher.
* gettext-tools/src/read-catalog-abstract.c (catalog_reader_seen_domain):
Renamed from po_callback_domain.
(catalog_reader_seen_message): Renamed from po_callback_message.
(catalog_reader_seen_comment): Renamed from po_callback_comment.
(catalog_reader_seen_comment_dot): Renamed from po_callback_comment_dot.
(catalog_reader_seen_comment_filepos): Renamed from po_callback_comment_filepos.
(catalog_reader_seen_comment_special): Renamed from po_callback_comment_special.
(parse_comment_filepos, parse_comment_solaris_filepos): Update.
(catalog_reader_seen_generic_comment): Renamed from
po_callback_comment_dispatcher. Update.
* gettext-tools/src/po-gram-gen.y: Update.
* gettext-tools/src/read-properties.c (properties_parse): Update.
* gettext-tools/src/read-stringtable.c (special_comment_finish,
comment_line_end, stringtable_parse): Update.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/read-catalog-abstract.c (parse_comment_filepos): Renamed
from po_parse_comment_filepos.
(parse_comment_solaris_filepos): Renamed from po_parse_comment_solaris_filepos.
(po_callback_comment_dispatcher): Update.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/read-catalog-special.h (parse_comment_special): Renamed from
po_parse_comment_special.
* gettext-tools/src/read-catalog-special.c (parse_comment_special): Renamed from
po_parse_comment_special.
* gettext-tools/src/read-catalog.c (default_comment_special): Update.
* gettext-tools/src/xg-message.c (remember_a_message): Update.
* gettext-tools/src/x-ruby.c (extract_ruby): Update.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Update comment.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/read-catalog-special.h: New file, extracted from
gettext-tools/src/read-catalog-abstract.h.
* gettext-tools/src/read-catalog-special.c: New file, extracted from
gettext-tools/src/read-catalog-abstract.c.
* gettext-tools/src/read-catalog-abstract.h (po_parse_comment_special): Remove
declaration.
* gettext-tools/src/read-catalog-abstract.c: Don't include <limits.h>.
(po_parse_comment_special): Moved to read-catalog-special.c.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add read-catalog-special.h.
(libgettextsrc_la_SOURCES): Add read-catalog-special.c.
* gettext-tools/src/FILES: Update.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
../src/read-catalog-special.c.
2024-07-28 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable callback_arg.
* gettext-tools/src/read-catalog-abstract.h (po_callback_domain,
po_callback_message, po_callback_comment, po_callback_comment_dot,
po_callback_comment_filepos, po_callback_comment_special,
po_callback_comment_dispatcher): Add a first parameter 'catr'.
* gettext-tools/src/read-catalog-abstract.c (callback_arg): Remove variable.
(parse_start, parse_end): Remove functions.
(catalog_reader_parse): Inline them here.
(po_callback_domain, po_callback_message, po_callback_comment,
po_callback_comment_dot, po_callback_comment_filepos,
po_callback_comment_special, po_parse_comment_filepos,
po_parse_comment_solaris_filepos, po_callback_comment_dispatcher): Add a first
parameter 'catr'.
* gettext-tools/src/po-gram.h: Include read-catalog-abstract.h.
(struct po_parser_state): Add field 'catr'.
* gettext-tools/src/read-po.c (po_parse): Initialize the 'catr' field.
* gettext-tools/src/po-gram-gen.y: Pass ps->catr to po_callback_message,
po_callback_comment_dispatcher, po_callback_domain.
* gettext-tools/src/read-properties.c (properties_parse): Pass catr to
po_callback_comment_dispatcher, po_callback_message.
* gettext-tools/src/read-stringtable.c (special_comment_finish,
comment_line_end, phase4_getc, read_string): Add a first parameter 'catr'.
(stringtable_parse): Pass catr to the functions that need it.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
Rename the parameter of type 'abstract_catalog_reader_ty *' to catr.
Rename the parameter of type 'default_catalog_reader_ty *' to dcatr.
Rename the parameter of type 'msgfmt_catalog_reader_ty *' to mcatr.
* gettext-tools/src/read-catalog-abstract.h (abstract_catalog_reader_class_ty):
Change first parameter name of all methods.
(struct catalog_input_format): Likewise.
(catalog_reader_parse, catalog_reader_free): Change first parameter name.
* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Rename local
variable 'pop'.
(catalog_reader_free, call_parse_brief, call_parse_debrief,
call_directive_domain, call_directive_message, call_comment, call_comment_dot,
call_comment_filepos, call_comment_special, parse_start, parse_end,
catalog_reader_parse): Change first parameter name.
* gettext-tools/src/read-catalog.h (default_constructor, default_destructor,
default_parse_brief, default_parse_debrief, default_directive_domain,
default_directive_message, default_comment, default_comment_dot,
default_comment_filepos, default_comment_special, default_set_domain,
default_add_message): Change first parameter name.
* gettext-tools/src/read-catalog.c (call_set_domain, call_add_message,
call_frob_new_message, default_constructor, default_destructor,
default_parse_brief, default_parse_debrief, default_copy_comment_state,
default_reset_comment_state, default_directive_domain,
default_directive_message, default_comment, default_comment_dot,
default_comment_filepos, default_comment_special, default_set_domain,
default_add_message): Change first parameter name.
* gettext-tools/src/msgfmt.c (msgfmt_constructor, msgfmt_parse_debrief,
msgfmt_set_domain, msgfmt_add_message, msgfmt_frob_new_message,
msgfmt_comment_special): Change first parameter name.
(read_catalog_file_msgfmt): Rename local variable 'pop'.
* gettext-tools/src/x-po.c (extract): Rename local variable 'pop'.
* gettext-tools/src/xgettext.c (exclude_directive_domain,
exclude_directive_message): Change first parameter name.
* gettext-tools/src/read-po.c (po_parse): Change first parameter name.
* gettext-tools/src/read-properties.c (properties_parse): Likewise.
* gettext-tools/src/read-stringtable.c (stringtable_parse): Likewise.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/read-catalog-abstract.h: Improve comments.
* gettext-tools/src/read-catalog-abstract.c: Likewise.
* gettext-tools/src/read-catalog.h: Likewise.
* gettext-tools/src/read-catalog.c: Likewise.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/read-catalog-abstract.h
(abstract_catalog_reader_class_ty::comment_filepos): Change parameter names.
(po_callback_comment_filepos): Likewise.
* gettext-tools/src/read-catalog-abstract.c (call_comment_filepos,
po_callback_comment_filepos): Likewise.
* gettext-tools/src/read-catalog.h (default_comment_filepos): Likewise.
* gettext-tools/src/read-catalog.c (default_comment_filepos): Likewise.
2024-07-28 Bruno Haible <bruno@clisp.org>
Refactor.
* gettext-tools/src/message.h (message_comment_filepos): Change parameter names.
* gettext-tools/src/message.c (message_comment_filepos): Likewise.
2024-07-27 Bruno Haible <bruno@clisp.org>
po-mode: Avoid a compiler warning in Emacs 28.
Reported by Vincent Lefèvre <vincent@vinc17.net> via Santiago Vila
at <https://lists.gnu.org/archive/html/bug-gettext/2024-06/msg00031.html>.
* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump version.
(po-mode): Use write-contents-functions instead of write-contents-hooks.
2024-07-27 Bruno Haible <bruno@clisp.org>
xgettext: PO: Fix error when a --exclude-file option is present (regression 2023-03-10).
Reported by Nicolas Peugnet <n.peugnet@free.fr> via Santiago Vila
at <https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00030.html>.
* gettext-tools/src/x-po.c (extract_add_message): If the message is the header
entry and is among the messages to exclude, save the header charset from it
before discarding it.
* gettext-tools/tests/xgettext-po-5: New file, based on
gettext-tools/tests/xgettext-po-3.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2024-07-27 Bruno Haible <bruno@clisp.org>
xgettext: Vala: Improve the support of the method .printf().
* gettext-tools/src/x-vala.c (enum token_type_ty): New enum item
token_type_compound_assign.
(phase3_get): Recognize the compound assignment operators as
token_type_compound_assign instead of token_type_assign.
(extract_balanced): Invoke new_sub_region instead of inheriting_region. Invoke
set_format_flag_on_region instead of iterating through the region. When
encountering an operator, close the inner_region and open a new inner_region.
After 'return', use the passthrough_context_list_iterator, not the
null_context_list_iterator.
* gettext-tools/tests/xgettext-vala-6: Add many more test cases.
2024-07-27 Bruno Haible <bruno@clisp.org>
xgettext: Vala: Recognize the '~' operator.
* gettext-tools/src/x-vala.c (phase3_get): Recognize '~' as operator.
2024-07-27 Bruno Haible <bruno@clisp.org>
xgettext: Vala: Fix recognition of the '%' and '^' operators.
* gettext-tools/src/x-vala.c (phase3_get): Classify '%' and '^' as arithmetic
operators, not as logic operators.
2024-07-27 Bruno Haible <bruno@clisp.org>
xgettext: Vala: Recognize the operators '*' and '*='.
* gettext-tools/src/x-vala.c (phase3_get): Recognize '*' and '*='.
2024-07-27 Bruno Haible <bruno@clisp.org>
xgettext: Java: Improve the support of the method .formatted().
* gettext-tools/src/x-java.c (enum token_type_ty): New enum items
token_type_conditional, token_type_colon, token_type_assign,
token_type_operator.
(phase5_get): Recognize all kinds of operators that may occur in expressions.
(extract_parenthesized): Invoke new_sub_region instead of inheriting_region.
Handle 'return' keyword specially. Invoke set_format_flag_on_region instead of
iterating through the region. When encountering an operator, close the
inner_region and open a new inner_region.
* gettext-tools/tests/xgettext-java-8: Add many more test cases.
2024-07-27 Bruno Haible <bruno@clisp.org>
xgettext: Improve support for string formatting through methods.
* gettext-tools/src/xg-arglist-context.h: Add comments.
(struct formatstring_region_ty): Add 'pass_format' field.
(struct flag_region_ty): Add subregion, nsubregions, nsubregions_max,
inherit_from_parent_region fields.
(new_sub_region): New declaration.
(set_format_flag_on_region): New declaration.
* gettext-tools/src/xg-arglist-context.c: Include xg-message.h.
(the_null_context_region): Update initializer.
(inheriting_region): Initialize the new fields.
(new_sub_region): New function.
(unref_region): Unreference also the subregions.
(set_format_flag_on_region): New function.
* gettext-tools/src/xg-message.h (set_format_flag_from_context): Fix typo in
comment.
2024-07-27 Bruno Haible <bruno@clisp.org>
Fix a clang warning.
* gettext-tools/src/write-mo.c (useful_instantiation_rules): Make static.
2024-07-27 Bruno Haible <bruno@clisp.org>
Update README-alpha.
* README-alpha: Don't talk about CVS any more.
2024-07-25 Bruno Haible <bruno@clisp.org>
Revisit the locating-rule code.
* gettext-tools/src/search-path.c: Reorder definitions. Add comments.
(get_search_path): Use XNMALLOC instead of XCALLOC. Verify the memory
allocation.
* gettext-tools/src/locating-rule.h: Add comments.
(locating_rule_list_locate): Add const to first argument.
* gettext-tools/src/locating-rule.c: Add comments.
(locating_rule_list_locate): Add const to first argument.
* gettext-tools/src/FILES: Update.
* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Fix a typo.
2024-07-25 Bruno Haible <bruno@clisp.org>
build: Make VPATH and non-VPATH builds behave the same.
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Add -I option for libgrep
directory in the build dir.
2024-07-25 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-07-22 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2024-07-22 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-07-22 Bruno Haible <bruno@clisp.org>
build: Support "make dist" without prior "make".
This is required by the GNU Coding Standards
<https://www.gnu.org/prep/standards/html_node/Standard-Targets.html>.
Reported by <nroycea+gnu@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00010.html>.
* Makefile.am (distdir1): New target.
* configure.ac: Apply FIX_MAKEFILE_DISTRIB on Makefile.
* gettext-runtime/Makefile.am (distdir1, gen-man1): New targets.
* gettext-runtime/configure.ac: Apply FIX_MAKEFILE_DISTRIB on Makefile.
* gettext-tools/Makefile.am (programs-for-distdir, distdir1, gen-man1,
distdir2): New targets.
* gettext-tools/configure.ac: Apply FIX_MAKEFILE_DISTRIB on Makefile.
* gettext-tools/src/Makefile.am (built-sources): New target.
2024-07-22 Bruno Haible <bruno@clisp.org>
build: Simplify.
* gettext-runtime/configure.ac: Remove FIX_MAKEFILE_DISTRIB invocation,
no longer needed since 2014-04-25.
* gettext-tools/configure.ac: Likewise.
2024-07-21 Bruno Haible <bruno@clisp.org>
doc: Small updates.
* DEPENDENCIES: Document --with-libncurses-prefix instead of
--with-ncurses-prefix, since that is what the option would be if
AC_LIB_LINKFLAGS_BODY([ncurses]) was actually in use.
* HACKING: Stop suggesting Java 7 implementations, since Java 7 support has
ended. Suggest to create 3 more locales, needed to avoid SKIPs of gnulib tests.
2024-07-21 Bruno Haible <bruno@clisp.org>
xgettext: Fix some test failures on MSVC.
* gettext-tools/src/locating-rule.c: Include <dirent.h> always.
(HAVE_DIR): Remove macro.
(locating_rule_list_add_from_directory): Don't test HAVE_DIR.
* gettext-tools/src/msginit.c: Include <dirent.h> always.
(HAVE_DIR): Remove macro.
(find_pot): Don't test HAVE_DIR.
2024-07-21 Bruno Haible <bruno@clisp.org>
lang-tcl: Avoid FAIL on native Windows.
* gettext-tools/tests/lang-tcl: Set the LANG variable as expected by tclsh.
2024-07-19 Bruno Haible <bruno@clisp.org>
Declare expected test failures on native Windows.
* autogen.sh (GNULIB_MODULES_TOOLS_TESTS): Add test-xfail.
* gettext-tools/tests/Makefile.am (XFAIL_TESTS): New variable.
2024-07-19 Bruno Haible <bruno@clisp.org>
lang-perl-*: Avoid FAIL on NetBSD.
* gettext-tools/tests/lang-perl-1: On NetBSD, don't test the ISO-8859-1 locale.
* gettext-tools/tests/lang-perl-2: Likewise.
2024-07-19 Bruno Haible <bruno@clisp.org>
lang-clisp: Avoid FAIL on NetBSD.
* gettext-tools/tests/lang-clisp: Unset CLISP_LANGUAGE, LANGUAGE instead of
setting them to empty.
2024-07-19 Bruno Haible <bruno@clisp.org>
lang-librep: Avoid FAIL on FreeBSD, NetBSD.
* gettext-tools/tests/lang-librep: On FreeBSD and NetBSD, don't test the
ISO-8859-1 locale.
2024-07-19 Bruno Haible <bruno@clisp.org>
lang-guile: Avoid FAIL on Alpine Linux, macOS, NetBSD.
* gettext-tools/tests/lang-guile: Mark the test as skipped when it does not
produce the translations.
2024-07-19 Bruno Haible <bruno@clisp.org>
lang-tcl: Avoid FAIL on native Windows.
* gettext-tools/tests/lang-tcl: Unset LC_ALL, LC_MESSAGES, LC_CTYPE instead of
setting them to empty.
2024-07-16 Bruno Haible <bruno@clisp.org>
java: Create reproducible .jar files if the 'jar' utility supports it.
Suggested by Bernhard M. Wiedemann <bwiedemann@suse.de> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00020.html>.
* build-aux/jar-cf: New file.
* Makefile.am (EXTRA_DIST): Add it.
* gettext-runtime/intl-java/Makefile.am (libintl.jar): Use jar-cf.
* gettext-tools/src/Makefile.am (gettext.jar): Likewise.
2024-07-16 Bruno Haible <bruno@clisp.org>
autopoint-3: Don't require GNU make.
* gettext-tools/tests/autopoint-3: Don't invoke "$MAKE --version". Instead,
just assume that $MAKE works.
2024-07-16 Bruno Haible <bruno@clisp.org>
lang-pascal: Modernize.
* gettext-tools/tests/lang-pascal: Try fpc before ppc386 and ppcx64.
2024-07-16 Bruno Haible <bruno@clisp.org>
lang-python-*: Avoid SKIP on macOS.
* gettext-tools/tests/lang-python-1: Search for 'python3' and 'python'.
* gettext-tools/tests/lang-python-2: Likewise.
2024-07-16 Bruno Haible <bruno@clisp.org>
lang-bash: Fix handling of macOS bash.
* gettext-tools/tests/lang-bash: Don't test whether bash is localized. Instead,
on macOS, test only in the UTF-8 locale.
2024-07-16 Bruno Haible <bruno@clisp.org>
Find the Objective-C compiler out-of-the-box on AlmaLinux 9 systems.
* gettext-tools/configure.ac: Invoke AC_PROG_OBJC with a customized search list.
* gettext-tools/tests/init-env.in (OBJC, OBJCFLAGS): Set to the configure-
determined values.
* gettext-tools/tests/lang-objc: Use OBJC instead of CC, and OBJCFLAGS instead
of CFLAGS.
* gettext-tools/examples/hello-objc/configure.ac: Invoke AC_PROG_OBJC with a
customized search list. Don't invoke AC_PROC_CC.
2024-07-16 Bruno Haible <bruno@clisp.org>
build: Fix "make dist" after switching to automake 1.17.
* m4/fixautomake.m4 (FIX_MAKEFILE_TOPDIR_DISTRIB): Also recognize the distdir
rule generated by automake 1.17.
2024-07-12 Bruno Haible <bruno@clisp.org>
build: Switch to autoconf 2.72, automake 1.17.
* autogen.sh: Update comments.
2024-07-02 Bruno Haible <bruno@clisp.org>
msgfmt: Revisit Tcl string handling.
* gettext-tools/src/write-tcl.c (write_tcl_string): Improve comment.
2024-07-01 Bruno Haible <bruno@clisp.org>
msgunfmt: Fix msgunfmt-tcl-1 failure with tcl version 9.0 beta2.
Reported by Jeffrey Cliff <jeffrey.cliff@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00000.html>.
* gettext-tools/src/msgunfmt.tcl: Access the ::msgcat::header variable through
an absolute name syntax, not a relative name syntax.
Rationale: <https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9>
says:
"In Tcl 8 variable names that are not absolute are resolved by looking
first in the current namespace, and then in the global namespace.
In Tcl 9 such variables are always interpreted as relative to the current
namespace."
2024-06-10 Bruno Haible <bruno@clisp.org>
Modernize Java compiler invocations.
The currently used Java version in the industry is Java 8 or newer, since 2022.
See <https://en.wikipedia.org/wiki/Java_version_history>. And on macOS 11..13,
I'm seeing the "error: Source option 6 is no longer supported. Use 8 or later."
* gettext-runtime/configure.ac: Search for a Java compiler with source and
target 1.8.
* gettext-tools/configure.ac: Search for a Java compiler with source 1.8.
* gettext-tools/examples/hello-java/configure.ac: Likewise.
* gettext-tools/examples/hello-java-awt/configure.ac: Likewise.
* gettext-tools/examples/hello-java-swing/configure.ac: Likewise.
2024-06-10 Bruno Haible <bruno@clisp.org>
Fix undefined behaviour according to ISO C 23 § 6.5.6.(9).
Found by clang's undefined-behaviour sanitizer.
* gettext-tools/src/msgl-fsearch.c (mult_index_list_accumulate): If len1 == 0,
skip two loops.
2024-06-05 Bruno Haible <bruno@clisp.org>
Update DEPENDENCIES.
* DEPENDENCIES: libiconv is needed again on macOS 14. Mention win-iconv as an
alternative.
2024-04-30 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/lib/exitfail.h.diff: Update.
2024-04-30 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-04-08 Bruno Haible <bruno@clisp.org>
Fix -Wdiscarded-qualifiers warnings caused by a newer libxml2.
Reported by Manish Tiwari <matiwari@redhat.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-04/msg00001.html>.
* gettext-tools/src/format-kde-kuit.c (format_parse): Declare the local variable
err as 'const xmlError *'.
* gettext-tools/src/its.c (its_rule_list_add_from_file,
its_rule_list_add_from_string, its_rule_list_extract, its_merge_context_alloc):
Likewise.
* gettext-tools/src/locating-rule.c (locating_rule_match): Likewise.
2024-04-04 Bruno Haible <bruno@clisp.org>
Fix macro file 'serial' numbers for 'aclocal --install'.
* gettext-runtime/m4/gettext.m4: Make 'serial' effective.
* gettext-runtime/m4/glibc2.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
* gettext-runtime/m4/progtest.m4: Likewise.
* gettext-tools/m4/exported.m4: Likewise.
* gettext-tools/m4/hostname.m4: Likewise.
* gettext-tools/m4/locale-de.m4: Likewise.
* libtextstyle/gnulib-local/m4/libcroco.m4: Likewise.
* libtextstyle/gnulib-local/m4/libglib.m4: Likewise.
* libtextstyle/gnulib-local/m4/moo.m4: Likewise.
* libtextstyle/gnulib-local/m4/term-ostream.m4: Likewise.
* libtextstyle/m4/init-package-version.m4: Likewise.
* m4/fixautomake.m4: Likewise.
* m4/more-warnings.m4: Likewise.
* m4/woe32-dll.m4: Likewise.
* gnulib-local/m4/java.m4: Likewise.
* gnulib-local/m4/libxml.m4: Likewise.
* gnulib-local/m4/backupfile.m4: Likewise. Make sure to override the gnulib
version.
2024-03-05 Bruno Haible <bruno@clisp.org>
locale-*.m4: Update comments.
* gettext-tools/m4/locale-de.m4: Update comments for Solaris 10.
2024-03-02 Bruno Haible <bruno@clisp.org>
build: Fix "make distcheck" failure.
* Makefile.am (distcheck-hook): Remove comparison with
gettext-tools/gnulib-m4/po.m4, since that file no longer exists.
2024-02-28 Bruno Haible <bruno@clisp.org>
libtextstyle: Avoid crashing the terminal emulator when using ncurses.
Reported by Adriaan de Groot <adridg@freebsd.org> in
<https://lists.gnu.org/archive/html/bug-gettext/2021-12/msg00023.html>.
Long explanation: <https://euroquis.nl/freebsd/2021/11/24/bison.html>
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (out_data_string,
out_data_string_unchecked): New functions.
(out_hyperlink_change): Don't use tputs on strings that are not escape
sequences.
2024-02-26 Bruno Haible <bruno@clisp.org>
build: Tweak ChangeLog generation.
* Makefile.am (gen-ChangeLogs): Untabify rule. Pass option '--no-cluster'.
2024-02-26 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2024-02-26 Bruno Haible <bruno@clisp.org>
build: Improve handling of divergences between gnulib and gettext.
* autogen.sh: Detect divergence also of gettext.m4, nls.m4, progtest.m4.
When there is a divergence without a serial number bump, assume it's a copyright
year update and copy the file from gnulib to gettext.
2024-02-23 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Prepare for 0.22.5 release.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.5.
* gettext-tools/misc/autopoint.in: Allow version 0.22.5.
2024-02-23 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/configure.ac: Update list of symbols to rename,
from modules 'localename-unsafe', 'localename', and 'setlocale-null-unlocked'.
2024-02-23 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2024-02-23 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Update NEWS file for release 0.22.5.
2024-02-23 Bruno Haible <bruno@clisp.org>
Remove support for OS/2 (based on EMX directly), part 2.
* Makefile.am (EXTRA_DIST): Remove os2/*.
2024-02-20 Bruno Haible <bruno@clisp.org>
Remove support for OS/2 (based on EMX directly).
Nowadays, KO Myung-Hun <komh78@gmail.com> uses an approach based on kLIBC
instead of emx+gcc. This kLIBC (https://github.com/bitwiseworks/libc) contains
iconv already.
* os2: Remove directory.
2024-02-20 Bruno Haible <bruno@clisp.org>
Write #include <error.h>, not #include "error.h".
This is required by Gnulib, although <error.h> is not a POSIX or ISO C
standardized header file.
Reported by Collin Funk <collin.funk1@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-02/msg00011.html>.
* gettext-runtime/src/envsubst.c: Use #include <error.h> instead of
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/libgettextpo/gettext-po.c: Likewise.
* gettext-tools/libgrep/m-fgrep.c: Likewise.
* gettext-tools/libgrep/m-regex.c: Likewise.
* gettext-tools/src/file-list.c: Likewise.
* gettext-tools/src/format-scheme.c: Likewise.
* gettext-tools/src/format.h: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/if-error.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgl-cat.c: Likewise.
* gettext-tools/src/msgl-charset.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/po-error.c: Likewise.
* gettext-tools/src/po-gram-gen.y: Likewise.
* gettext-tools/src/po-lex.c: Likewise.
* gettext-tools/src/po-lex.h: Likewise.
* gettext-tools/src/po-xerror.c: Likewise.
* gettext-tools/src/read-catalog-abstract.c: Likewise.
* gettext-tools/src/read-csharp.c: Likewise.
* gettext-tools/src/read-desktop.c: Likewise.
* gettext-tools/src/read-java.c: Likewise.
* gettext-tools/src/read-mo.c: Likewise.
* gettext-tools/src/read-properties.c: Likewise.
* gettext-tools/src/read-resources.c: Likewise.
* gettext-tools/src/read-stringtable.c: Likewise.
* gettext-tools/src/read-tcl.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/write-csharp.c: Likewise.
* gettext-tools/src/write-desktop.c: Likewise.
* gettext-tools/src/write-java.c: Likewise.
* gettext-tools/src/write-mo.c: Likewise.
* gettext-tools/src/write-properties.c: Likewise.
* gettext-tools/src/write-qt.c: Likewise.
* gettext-tools/src/write-resources.c: Likewise.
* gettext-tools/src/write-tcl.c: Likewise.
* gettext-tools/src/write-xml.c: Likewise.
* gettext-tools/src/x-awk.c: Likewise.
* gettext-tools/src/x-c.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-desktop.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-javascript.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-lua.c: Likewise.
* gettext-tools/src/x-perl.c: Likewise.
* gettext-tools/src/x-php.c: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/src/x-rst.c: Likewise.
* gettext-tools/src/x-ruby.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-smalltalk.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/x-ycp.c: Likewise.
* gettext-tools/src/xg-mixed-string.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/tests/tstgettext.c: Likewise.
* gettext-tools/tests/tstngettext.c: Likewise.
* gnulib-local/lib/closeout.c: Likewise.
* gnulib-local/lib/xerror.c: Likewise.
* libtextstyle/gnulib-local/lib/fd-ostream.oo.c: Likewise.
* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c: Likewise.
* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c: Likewise.
* libtextstyle/gnulib-local/lib/memory-ostream.oo.c: Likewise.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c: Likewise.
* gettext-tools/src/its.c: Likewise, and reorganize #includes.
* gettext-tools/src/locating-rule.c: Likewise.
2024-02-19 Bruno Haible <bruno@clisp.org>
libtextstyle: Use #include <...> style for system headers.
* libtextstyle/gnulib-local/lib/libcroco/cr-additional-sel.c: Use #include <...>
style for system headers.
* libtextstyle/gnulib-local/lib/libcroco/cr-input.c: Likewise.
* libtextstyle/gnulib-local/lib/libcroco/cr-num.c: Likewise.
* libtextstyle/gnulib-local/lib/libcroco/cr-parser.c: Likewise.
* libtextstyle/gnulib-local/lib/libcroco/cr-stylesheet.c: Likewise.
* libtextstyle/gnulib-local/lib/libcroco/cr-tknzr.c: Likewise.
2024-02-15 Bruno Haible <bruno@clisp.org>
Don't treat Apple's new Citrus/FreeBSD-based iconv like GNU libiconv.
* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::write_mem):
Don't treat the bastard Apple iconv like GNU libiconv.
* gettext-tools/src/po-charset.c (po_lex_charset_set): Likewise.
2024-02-14 Bruno Haible <bruno@clisp.org>
intl: Improve support of Citrus/FreeBSD iconv.
* gettext-runtime/intl/dcigettext.c (_nl_find_msg): Use //TRANSLIT with all
iconv implementations that support it.
2024-01-29 Bruno Haible <bruno@clisp.org>
libtextstyle: Add a comment regarding COLORTERM.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Add
comment.
2024-01-29 Bruno Haible <bruno@clisp.org>
libtextstyle: Update a few URLs.
* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Update URL. From
Simon Sobisch.
(Style rules): Update URL.
(Hyperlinks): Reference new state-of-the-art document. From Simon Sobisch.
2024-01-29 Bruno Haible <bruno@clisp.org>
intl: Revert "Add special hack for GCC" from 2022-06-21.
The added option --enable-host-shared has the same effect as the
libtool-provided option --with-pic, and gcc's Makefile.def actually
uses --with-pic, not --enable-host-shared.
* gettext-runtime/intl/configure.ac: Don't accept option --enable-host-shared.
Don't set PICFLAG.
* gettext-runtime/intl/Makefile.am (AM_CFLAGS): Remove the PICFLAG.
* gnulib-local/modules/gettext-runtime-intl-misc (Makefile.am): Remove the
PICFLAG from AM_CFLAGS.
2024-01-08 Bruno Haible <bruno@clisp.org>
intl: Fix the Windows MUI code, so that it works on Windows 10.
Reported by <lrn1986@gmail.com> at <https://savannah.gnu.org/bugs/?65128>.
* gettext-runtime/intl/langprefs.c (_nl_language_preferences_win32_mui): Make
GetUserPreferredUILanguages prototype with Microsoft's current documentation.
Allow the first GetUserPreferredUILanguages call to succeed.
2023-12-05 Bruno Haible <bruno@clisp.org>
xgettext: Java: Flag strings on which the method 'formatted' is used as java-printf-format.
* gettext-tools/src/x-java.c (token_type_semicolon): New enum item.
(phase5_get): Recognize semicolon tokens.
(extract_parenthesized): Handle method invocation .formatted. Return when a
semicolon was seen.
* gettext-tools/tests/xgettext-java-8: New file, based on
gettext-tools/tests/xgettext-vala-6.
* gettext-tools/tests/xgettext-java-9: New file, based on
gettext-tools/tests/xgettext-vala-7.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* NEWS: Mention the change.
2023-12-05 Bruno Haible <bruno@clisp.org>
xgettext: Python: Add support for f-strings.
Reported by Ben <gnu@mail.qoben.com>
at <https://savannah.gnu.org/bugs/?61596>.
* gettext-tools/src/x-python.c (P7_498_START_OF_EXPRESSION): New macro.
(token_type_498, token_type_l498, token_type_m498, token_type_r498): New enum
items.
(free_token): Treat token_type_498 like token_type_string.
(phase7_getuc): Accept an f_string parameter. Use it to combine {{ to { and
}} to }.
(f_string_depth): New variable.
(struct f_string_level): New type.
(f_string_stack, f_string_stack_alloc): New variables.
(new_f_string_level): New function.
(open_pb): Renamed from open_pbb.
(phase5_get): Consider also the f_string_stack. Accept f"...", fr"...", rf"..."
syntax. Recognize tokens of type token_type_498, token_type_l498,
token_type_m498, token_type_r498.
(x_python_lex): Treat token_type_498 like token_type_string.
(extract_balanced): Handle the new token types.
(extract_python): Initialize f_string_depth and the f_string_stack.
* gettext-tools/tests/xgettext-python-1: Test also the backslash handling in
f-strings.
* gettext-tools/tests/xgettext-python-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/lang-python.texi (Python): Explain the limitations of
f-string support.
* NEWS: Mention the change.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Vala: Flag strings on which the method 'printf' is used as c-format.
* gettext-tools/src/x-vala.c (token_type_semicolon): New enum item.
(phase3_get): Recognize semicolon tokens.
(phase4_pushback, phase4_pushback_length): New variables.
(phase4_get): Renamed from x_vala_lex. Handle pushback.
(phase4_unget, x_vala_lex, x_vala_unlex): New functions.
(extract_balanced): Handle method invocations .printf and .vprintf. Return when
a semicolon was seen.
(extract_vala): Initialize phase4_pushback_length.
* gettext-tools/tests/xgettext-vala-6: Add tests for printf used as method.
* gettext-tools/tests/xgettext-vala-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* NEWS: Mention the change.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Vala: Don't flag printf arguments as c-format.
Reported by Anders Jonsson <anders.jonsson@norsjovallen.se>
at <https://savannah.gnu.org/bugs/?64921>.
* gettext-tools/src/xgettext.c (xgettext_record_flag: Recognize also
"undecided-...-format".
* gettext-tools/src/x-vala.c (init_flag_table_vala): Flag the printf function as
'undecided-c-format', not 'c-format'.
* gettext-tools/tests/xgettext-vala-5: Use vprintf instead of printf.
* gettext-tools/tests/xgettext-vala-6: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Support modifying the flags of a message after it has been remembered.
* gettext-tools/src/xg-arglist-context.h (struct remembered_message_ty,
struct remembered_message_list_ty): New types.
(remembered_message_list_append): New declaration.
(struct formatstring_region_ty): Add a 'remembered' field.
* gettext-tools/src/xg-arglist-context.c (remembered_message_list_alloc,
remembered_message_list_append, remembered_message_list_ref,
remembered_message_list_unref): New functions.
(the_null_context_region): Update.
(inheriting_region): Inherit or allocate the 'remembered' fields.
(unref_region): Unref the 'remembered' fields.
* gettext-tools/src/xg-message.h (set_format_flag_from_context): New
declaration.
* gettext-tools/src/xg-message.c (validate_is_format): New function, extracted
from set_format_flags_from_context.
(set_format_flags_from_context): Change parameters. Invoke validate_is_format.
(set_format_flag_from_context): New function.
(remember_a_message, remember_a_message_plural): Update.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Refactor the formatstring code.
Use "regions" instead of "contexts" to keep track of the flags and data that is
specific to a (usually parenthesized) block in an input file.
* gettext-tools/src/xg-arglist-context.h (null_context, passthrough_context,
inherited_context): Remove declarations.
(struct formatstring_region_ty, struct flag_region_ty): New types.
(null_context_region, inheriting_region, ref_region, unref_region): New
declarations.
(assign_region, assign_new_region): New macros.
* gettext-tools/src/xg-arglist-context.c: Include attribute.h.
(null_context): Make static.
(passthrough_context): Make static. Mark as MAYBE_UNUSED.
(inherited_context): Remove function.
(the_null_context_region): New variable.
(null_context_region, inheriting_region, ref_region, unref_region): New
functions.
* gettext-tools/src/xg-arglist-parser.h (struct partial_call,
arglist_parser_remember, arglist_parser_remember_msgctxt): Use
'flag_region_ty *' instead of flag_context_ty.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_alloc,
arglist_parser_clone, arglist_parser_remember): Update.
(arglist_parser_remember_msgctxt, arglist_parser_done): Use 'flag_region_ty *'
instead of flag_context_ty.
* gettext-tools/src/xg-message.h (remember_a_message,
remember_a_message_plural): Use 'flag_region_ty *' instead of flag_context_ty.
* gettext-tools/src/xg-message.c (set_format_flags_from_context,
remember_a_message, remember_a_message_plural): Use 'flag_region_ty *' instead
of flag_context_ty.
* gettext-tools/src/x-awk.c (extract_parenthesized): Use 'flag_region_ty *'
instead of flag_context_ty.
(extract_awk): Update.
* gettext-tools/src/x-c.c (extract_parenthesized): Use 'flag_region_ty *'
instead of flag_context_ty.
(extract_whole_file): Update.
* gettext-tools/src/x-csharp.c (extract_parenthesized): Use 'flag_region_ty *'
instead of flag_context_ty.
(extract_csharp): Update.
* gettext-tools/src/x-desktop.c (extract_desktop_handle_pair): Update.
* gettext-tools/src/x-elisp.c (read_object): Use 'flag_region_ty *' instead of
flag_context_ty.
(extract_elisp): Update.
* gettext-tools/src/x-java.c (extract_parenthesized): Use 'flag_region_ty *'
instead of flag_context_ty.
(extract_java): Update.
* gettext-tools/src/x-javascript.c (extract_balanced): Use 'flag_region_ty *'
instead of flag_context_ty.
(extract_javascript): Update.
* gettext-tools/src/x-librep.c (read_object): Use 'flag_region_ty *' instead of
flag_context_ty.
(extract_librep): Update.
* gettext-tools/src/x-lisp.c (read_object): Use 'flag_region_ty *' instead of
flag_context_ty.
(extract_lisp): Update.
* gettext-tools/src/x-lua.c (extract_balanced): Use 'flag_region_ty *' instead
of flag_context_ty.
(extract_lua): Update.
* gettext-tools/src/x-perl.c (extract_variable, interpolate_keywords,
extract_balanced): Use 'flag_region_ty *' instead of flag_context_ty.
(extract_perl): Update.
* gettext-tools/src/x-php.c (extract_balanced): Use 'flag_region_ty *' instead
of flag_context_ty.
(extract_php): Update.
* gettext-tools/src/x-python.c (extract_balanced): Use 'flag_region_ty *'
instead of flag_context_ty.
(extract_python): Update.
* gettext-tools/src/x-rst.c (extract_rst, extract_rsj): Update.
* gettext-tools/src/x-scheme.c (read_object): Use 'flag_region_ty *' instead of
flag_context_ty.
(extract_scheme): Update.
* gettext-tools/src/x-sh.c (read_word, read_command, read_command_list): Use
'flag_region_ty *' instead of flag_context_ty.
(extract_sh): Update.
* gettext-tools/src/x-smalltalk.c (extract_smalltalk): Update.
* gettext-tools/src/x-tcl.c (accumulate_word, read_word, read_command,
read_command_list): Use 'flag_region_ty *' instead of flag_context_ty.
(extract_tcl): Update.
* gettext-tools/src/x-vala.c (extract_balanced): Use 'flag_region_ty *' instead
of flag_context_ty.
(extract_vala): Update.
* gettext-tools/src/x-ycp.c (extract_parenthesized): Use 'flag_region_ty *'
instead of flag_context_ty.
(extract_ycp): Update.
* gettext-tools/src/xgettext.c (xgettext_its_extract_callback): Update.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Refactor the formatstring code.
* gettext-tools/src/xg-formatstring.h (NXFORMATS, XFORMAT_PRIMARY,
XFORMAT_SECONDARY, XFORMAT_TERTIARY, XFORMAT_FOURTH): New macros.
(current_formatstring_parser1, current_formatstring_parser2,
current_formatstring_parser3, current_formatstring_parser4): Remove
declarations.
(current_formatstring_parser): New declaration.
* gettext-tools/src/xg-formatstring.c (current_formatstring_parser1,
current_formatstring_parser2, current_formatstring_parser3,
current_formatstring_parser4): Remove variables.
(current_formatstring_parser): New variable.
* gettext-tools/src/xg-arglist-context.h: Include xg-formatstring.h.
(struct formatstring_context_ty): New type.
(struct flag_context_ty): Replace individual fields with an array.
(flag_context_list_table_add): Rename parameter 'index' to 'fi'.
* gettext-tools/src/xg-arglist-context.c (null_context, passthrough_context):
Update.
(inherited_context): Loop over the four formatstring types.
(passthrough_context_circular_list): Update.
(set_flags_for_formatstring_type): Simplify.
(flag_context_list_table_add): Rename parameter 'index' to 'fi'.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Update.
* gettext-tools/src/xg-message.c (set_format_flags_from_context): Loop over the
four formatstring types.
(is_relevant): New function.
(decide_is_format, remember_a_message_plural): Use it.
* gettext-tools/src/xgettext.c (struct extractor_ty): Replace individual fields
with an array.
(main): Update.
(flag_context_list_table_insert): Rename parameter 'index' to 'fi'.
(xgettext_record_flag): Use XFORMAT_* macros.
(extract_from_file): Loop over the four formatstring types.
(recognize_qt_formatstrings): Update.
(language_to_extractor): Use XFORMAT_* macros and a loop.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Refactor.
* gettext-tools/src/xg-formatstring.h: New file, extracted from xgettext.h.
* gettext-tools/src/xg-formatstring.c: New file, extracted from xgettext.c.
* gettext-tools/src/FILES: Mention them.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add xg-formatstring.h.
(xgettext_SOURCES): Add xg-formatstring.c.
* gettext-tools/src/xgettext.h (current_formatstring_parser1,
current_formatstring_parser2, current_formatstring_parser3,
current_formatstring_parser4): Remove declarations.
* gettext-tools/src/xgettext.c: Include xg-formatstring.h.
(current_formatstring_parser1, current_formatstring_parser2,
current_formatstring_parser3, current_formatstring_parser4): Remove variables.
* gettext-tools/src/xg-message.c: Include xg-formatstring.h.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Refactor.
* gettext-tools/src/xg-message.c (remember_a_message): Simplify: Don't cache
mp->do_syntax_check in a local variable.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Refactor.
* gettext-tools/src/xg-message.c (remember_a_message): Simplify: Don't cache
mp->do_wrap in a local variable.
2023-11-30 Bruno Haible <bruno@clisp.org>
xgettext: Refactor.
* gettext-tools/src/xg-message.c (remember_a_message): Simplify: Don't cache
mp->is_format in a local variable.
2023-11-30 Bruno Haible <bruno@clisp.org>
tests: Avoid an autopoint-3 failure caused by an Autoconf 2.71 bug.
* gettext-tools/tests/autopoint-3: Remove the autom4te cache before invoking
automake.
2023-11-30 Bruno Haible <bruno@clisp.org>
Fix clang -Wunused-function warnings.
* gettext-runtime/src/envsubst.c: Include attribute.h.
(string_list_member, string_list_destroy): Mark as MAYBE_UNUSED.
* gettext-tools/src/format-scheme.c: Include attribute.h.
(II): Mark as MAYBE_UNUSED.
* gettext-tools/src/msgl-fsearch.c: Include attribute.h.
(add_index): Mark as MAYBE_UNUSED.
* gettext-tools/src/po-lex.c: Include attribute.h.
(mb_isnul, mb_cmp, mb_equal, mb_isascii, mb_putc, mb_setascii): Mark as
MAYBE_UNUSED.
* gettext-tools/src/write-qt.c: Include attribute.h.
(write_u16): Mark as MAYBE_UNUSED.
* gettext-tools/src/x-awk.c (free_token): Mark as MAYBE_UNUSED.
* gettext-tools/src/x-python.c (phase0_ungetc): Mark as MAYBE_UNUSED.
2023-11-30 Bruno Haible <bruno@clisp.org>
tests: Fix a typo.
* gettext-tools/tests/autopoint-3: Fix a typo in a file name.
2023-11-19 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Prepare for 0.22.4 release.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.3.
* gettext-tools/misc/autopoint.in: Allow version 0.22.3.
2023-11-19 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Update NEWS file for release 0.22.4.
2023-11-17 Bruno Haible <bruno@clisp.org>
build: Obey --disable-threads also regarding msgmerge and OpenMP.
* gettext-tools/configure.ac: If --disable-threads was specified, just set
OPENMP_CFLAGS to empty.
2023-11-17 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2023-11-17 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-11-17 Bruno Haible <bruno@clisp.org>
Add installation instructions for AIX.
* INSTALL.aix: New file.
* Makefile.am (EXTRA_DIST): Add it.
2023-11-17 Bruno Haible <bruno@clisp.org>
gettext.m4: Recognize a statically built libintl on macOS and AIX.
Reported by David Edelsohn <dje.gcc@gmail.com> in
<https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636558.html>.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): In the
"checking for GNU gettext in libintl..." test, add also the special
system library dependencies needed on macOS and AIX.
2023-11-17 Bruno Haible <bruno@clisp.org>
build: Fix a build issue on AIX.
How to reproduce:
$ cd gettext-20231111
$ ~/build-64-gcc --disable-shared
$ (cd build-64-gcc && gmake install)
$ cd ..
$ cd gettext-0.22.3
$ ~/build-64-gcc
=> Fails with "ERROR: Undefined symbol: .syntax_check_message_list"
because the link uses $PREFIX/lib/libgettextsrc.a, which is a non-shared
library that does not export 'syntax_check_message_list'.
* gettext-tools/configure.ac (INSTALL_PRIVATE_LIBRARIES): New conditional.
* gettext-tools/src/Makefile.am (noinst_LTLIBRARIES): Define as alternative to
lib_LTLIBRARIES.
(install-exec-clean): Remove rule.
* gettext-tools/gnulib-lib/Makefile.am (lib_LTLIBRARIES): Initialize.
* gnulib-local/modules/gettext-tools-misc (Makefile.am): Define
noinst_LTLIBRARIES as alternative to lib_LTLIBRARIES. Remove
'install-exec-clean' rule.
2023-11-15 Bruno Haible <bruno@clisp.org>
build: Fix a compilation failure on AIX with gcc 10.
* m4/more-warnings.m4 (gt_MORE_WARNINGS): Turn off -fanalyzer with GCC 10
or older.
2023-11-12 Bruno Haible <bruno@clisp.org>
xgettext: Fix memory overrun while parsing a C++ brace format string.
Found with CHERI on CheriBSD.
* gettext-tools/src/format-c++-brace.c (format_parse): Compare the first
character after ':' against '\0', not '0'.
2023-11-11 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variables gram_pos_column, gram_pot_role, signal_eilseq, po_lex_obsolete, po_lex_previous, mbf.
* gettext-tools/src/po-gram.h: Include <stdbool.h>, <stdio.h>, unistr.h.
(MBCHAR_BUF_SIZE, struct mbchar, mbchar_t, NPUSHBACK, struct mbfile, mbfile_t):
Moved to here, from po-lex.c.
(struct po_parser_state): Add fields gram_pot_role, gram_pos_column,
signal_eilseq, mbf, po_lex_obsolete, po_lex_previous.
* gettext-tools/src/po-gram-gen.y: Add %lex-param declaration.
(do_callback_message): Add 'struct po_parser_state *ps' parameter. Update all
callers.
* gettext-tools/src/po-lex.h (gram_pos_column, gram_pot_role): Remove
declarations.
(lex_start): Add 'struct po_parser_state *ps' parameter. Remove is_pot_role
parameter.
(po_gram_lex): Add 'struct po_parser_state *ps' parameter.
* gettext-tools/src/po-lex.c: Don't include unistr.h.
(gram_pos_column, gram_pot_role, signal_eilseq, mbf, po_lex_obsolete,
po_lex_previous): Remove variables.
(po_gram_error): Update.
(MBCHAR_BUF_SIZE, struct mbchar, mbchar_t, NPUSHBACK, struct mbfile, mbfile_t):
Remove declarations.
(mb_width): Add 'struct po_parser_state *ps' parameter.
(mbfile_getc): Likewise. Pass it to po_gram_error.
(lex_start): Add 'struct po_parser_state *ps' parameter. Remove is_pot_role
parameter.
(lex_end): Remove assignments to variables.
(lex_getc, lex_ungetc, keyword_p, control_sequence, po_gram_lex): Add
'struct po_parser_state *ps' parameter.
* gettext-tools/src/read-po.c (po_parse): Iniitialize gram_pot_role field here.
Pass 'struct po_parser_state *' to lex_start.
* gettext-tools/woe32dll/gettextsrc-exports.c: Remove gram_pos_column,
gram_pot_role.
2023-11-11 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable 'plural_counter'.
* gettext-tools/src/po-gram.h (struct po_parser_state): New type.
(po_gram_parse): Add 'struct po_parser_state *ps' parameter.
* gettext-tools/src/po-gram-gen.y: Add %parse-param declaration.
Access ps->plural_counter instead of plural_counter.
(plural_counter): Remove variable.
* gettext-tools/src/po-lex.h (po_gram_error): Add 'struct po_parser_state *ps'
parameter.
* gettext-tools/src/po-lex.c: Include po-gram.h.
(po_gram_error): Add 'struct po_parser_state *ps' parameter.
(mbfile_getc, control_sequence): Update po_gram_error calls.
* gettext-tools/src/read-po.c (po_parse): Pass a 'struct po_parser_state *' to
po_gram_parse.
2023-11-11 Bruno Haible <bruno@clisp.org>
build: Remove po-gram-gen2.h.
* gettext-tools/src/po-lex.c: Include po-gram-gen.h instead of po-gram-gen2.h.
* gettext-tools/src/po-lex.h: Update comment.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove po-gram-gen2.h.
(po-gram-gen2.h): Remove rule.
(BUILT_SOURCES, MAINTAINERCLEANFILES, EXTRA_DIST): Don't add it.
(po-lex.o, po-lex.lo): Don't depend on it.
2023-11-11 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variables po_gram_lval, po_gram_char, po_gram_nerrs.
* gettext-tools/src/po-gram-gen.y: Request a pure parser.
* gettext-tools/src/po-lex.h (po_gram_lex): Add lval parameter.
* gettext-tools/src/po-lex.c (po_gram_lex): Add lval parameter. Store the result
in *lval instead of in po_gram_lval.
* gettext-tools/woe32dll/gettextsrc-exports.c: Remove po_gram_lval.
2023-11-11 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable 'width.0'.
* gnulib-local/lib/xerror.h: Include <stddef.h>.
(multiline_warning, multiline_error): Change return type to size_t. Don't
suggest to pass a NULL prefix.
(multiline_append): New declaration.
* gnulib-local/lib/xerror.c (multiline_internal): New function, extracted from
multiline_warning.
(multiline_warning, multiline_error): Reject a NULL prefix. Call
multiline_internal.
(multiline_append): New function.
* gettext-tools/src/msgl-charset.c (compare_po_locale_charsets): Invoke
multiline_append instead of multiline_warning with NULL argument.
* gettext-tools/src/msgfmt.c (msgfmt_parse_debrief): Invoke multiline_append
instead of multiline_error with NULL argument.
* gettext-tools/src/po-error.c (void_multiline_warning, void_multiline_error):
New functions.
(po_multiline_warning, po_multiline_error): Use them as initializer.
* gettext-tools/libgettextpo/gettext-po.c (void_multiline_warning,
void_multiline_error): New functions.
(po_file_read_v2, po_file_write): Use them as defaults for po_multiline_warning,
po_multiline_error.
2023-11-11 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable 'result.0'.
* gettext-tools/src/write-po.h (make_format_description_string): Change return
type to 'char *'.
* gettext-tools/src/write-po.c (make_format_description_string): Return a
freshly allocated string.
(message_print_comment_flags, message_print_obsolete): Free the result of
make_format_description_string when done.
* gettext-tools/src/write-stringtable.c (write_message): Likewise.
2023-11-11 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variables curr_mp, curr_msgid_pos.
* gettext-tools/src/format.h (formatstring_error_logger_t): Add a 'data'
parameter.
(struct formatstring_parser): In the 'check' method, add an 'error_logger_data'
parameter.
(check_msgid_msgstr_format_i, check_msgid_msgstr_format): Add an
'error_logger_data' parameter.
* gettext-tools/src/format-awk.c (format_check): Add an 'error_logger_data'
parameter. Pass it to each error_logger invocation.
* gettext-tools/src/format-boost.c (format_check): Likewise.
* gettext-tools/src/format-c.c (format_check): Likewise.
* gettext-tools/src/format-c++-brace.c (format_check): Likewise.
* gettext-tools/src/format-csharp.c (format_check): Likewise.
* gettext-tools/src/format-elisp.c (format_check): Likewise.
* gettext-tools/src/format-gcc-internal.c (format_check): Likewise.
* gettext-tools/src/format-gfc-internal.c (format_check): Likewise.
* gettext-tools/src/format-java-printf.c (format_check): Likewise.
* gettext-tools/src/format-java.c (format_check): Likewise.
* gettext-tools/src/format-javascript.c (format_check): Likewise.
* gettext-tools/src/format-kde-kuit.c (format_check): Likewise.
* gettext-tools/src/format-kde.c (format_check): Likewise.
* gettext-tools/src/format-librep.c (format_check): Likewise.
* gettext-tools/src/format-lisp.c (format_check): Likewise.
* gettext-tools/src/format-lua.c (format_check): Likewise.
* gettext-tools/src/format-pascal.c (format_check): Likewise.
* gettext-tools/src/format-perl-brace.c (format_check): Likewise.
* gettext-tools/src/format-perl.c (format_check): Likewise.
* gettext-tools/src/format-php.c (format_check): Likewise.
* gettext-tools/src/format-python-brace.c (format_check): Likewise.
* gettext-tools/src/format-python.c (format_check): Likewise.
* gettext-tools/src/format-qt-plural.c (format_check): Likewise.
* gettext-tools/src/format-qt.c (format_check): Likewise.
* gettext-tools/src/format-ruby.c (format_check): Likewise.
* gettext-tools/src/format-scheme.c (format_check): Likewise.
* gettext-tools/src/format-sh.c (format_check): Likewise.
* gettext-tools/src/format-smalltalk.c (format_check): Likewise.
* gettext-tools/src/format-tcl.c (format_check): Likewise.
* gettext-tools/src/format.c (check_msgid_msgstr_format_i,
check_msgid_msgstr_format): Add an 'error_logger_data' parameter.
* gettext-tools/src/msgl-check.c (curr_mp, curr_msgid_pos): Remove variables.
(struct formatstring_error_logger_locals): New type.
(formatstring_error_logger): Add a 'data' parameter.
(check_pair): Set up a 'struct formatstring_error_logger_locals' on the stack
and pass it to check_msgid_msgstr_format.
* gettext-tools/src/msgmerge.c (silent_error_logger): Add a 'data' parameter.
(message_merge): Pass a null error_logger_data.
* gettext-tools/libgettextpo/gettext-po.c (po_error_logger): Add a 'data'
parameter.
(po_message_check_format): Pass a null error_logger_data.
2023-11-11 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable bullet_stack.
* gettext-tools/src/xg-check.h: New file, extracted from
gettext-tools/src/msgl-check.h.
* gettext-tools/src/xg-check.c: New file, extracted from
gettext-tools/src/msgl-check.c.
* gettext-tools/src/msgl-check.h (syntax_check_message_list): Remove
declaration.
* gettext-tools/src/msgl-check.c: Don't include quote.h, sentence.h, unictype.h,
unistr.h.
(struct callback_arg, struct bullet_ty, struct bullet_stack_ty,
syntax_check_function): Remove types.
(bullet_stack, sc_funcs): Remove variables.
(syntax_check_ellipsis_unicode, syntax_check_space_ellipsis,
syntax_check_quote_unicode_callback, syntax_check_quote_unicode,
syntax_check_bullet_unicode, syntax_check_message, syntax_check_message_list):
Remove functions.
* gettext-tools/src/xgettext.c: Include xg-check.h instead of msgl-check.h.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add xg-check.h.
(xgettext_SOURCES): Add xg-check.c.
* gettext-tools/src/FILES: Mention xg-check.h, xg-check.c.
* gettext-tools/po/POTFILES.in: Add src/xg-check.c.
2023-11-11 Bruno Haible <bruno@clisp.org>
libgettextpo: Remove static variable 'directory'.
* gettext-tools/src/read-catalog-file.h: New file, extracted from
gettext-tools/src/read-catalog.h.
* gettext-tools/src/read-catalog.h (read_catalog_file): Remove declaration.
* gettext-tools/src/read-catalog-file.c: New file, extracted from
gettext-tools/src/read-catalog.c.
* gettext-tools/src/read-catalog.c: Don't include open-catalog.h.
(read_catalog_file): Remove function.
* gettext-tools/src/msgl-cat.c: Include read-catalog-file.h instead of
read-catalog.h.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/FILES: Mention read-catalog-file.h, read-catalog-file.c.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add read-catalog-file.h.
(libgettextsrc_la_SOURCES): Add read-catalog-file.c.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Remove
dir-list.c, open-catalog.c.
2023-10-20 KO Myung-Hun <komh78@gmail.com> (tiny change)
build: Use $(PATH_SEPARATOR) as a path separator
':' is not a path separator on Windows and OS/2.
PATH_SEPARATOR is defined and AC_SUBSTed by Autoconf.
* gettext-tools/examples/po/Makefile.am (USE_BUILT_PROGS): Use
$(PATH_SEPARATOR) instead of ':'.
2023-10-07 Bruno Haible <bruno@clisp.org>
xgettext: Mention last changes in NEWS.
* NEWS: Mention diagnostics changes.
2023-10-07 Bruno Haible <bruno@clisp.org>
xgettext: Simplify code that emits diagnostics with error number.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add xstrerror.
(GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add strerror_r-posix.
* gettext-tools/src/x-csharp.c: Include xstrerror.h.
(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.
* gettext-tools/src/x-javascript.c: Include xstrerror.h.
(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.
* gettext-tools/src/x-python.c: Include xstrerror.h.
(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.
2023-10-07 Bruno Haible <bruno@clisp.org>
xgettext: Simplify code that emits diagnostics.
Also, for Perl input, clarify some diagnostics as errors vs. warnings.
* gettext-tools/src/if-error.h: New file.
* gettext-tools/src/if-error.c: New file.
* gettext-tools/src/xg-mixed-string.c: Include if-error.h instead of
error-progname.h.
(mixed_string_buffer_append_lone_surrogate): Invoke 'if_error' instead of
'error'.
* gettext-tools/src/x-awk.c: Include if-error.h instead of error-progname.h.
(phase7_getc, x_awk_lex, extract_parenthesized): Invoke 'if_error' instead of
'error'.
* gettext-tools/src/x-c.c: Include if-error.h instead of error-progname.h.
(phase7_getc, phase5_get, extract_parenthesized): Invoke 'if_error' instead of
'error'.
* gettext-tools/src/x-csharp.c: Include if-error.h instead of error-progname.h.
(do_getc_unicode_escaped, accumulate_escaped, extract_parenthesized): Invoke
'if_error' instead of 'error'.
* gettext-tools/src/x-elisp.c: Include if-error.h instead of error-progname.h.
(do_getc_escaped, read_object): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-java.c: Include if-error.h instead of error-progname.h.
(accumulate_escaped, phase5_get, extract_parenthesized): Invoke 'if_error'
instead of 'error'.
* gettext-tools/src/x-javascript.c: Include if-error.h instead of
error-progname.h.
(phase7_getuc, phase5_scan_regexp, phase5_scan_xml_markup, phase5_get,
extract_balanced): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-librep.c: Include if-error.h instead of error-progname.h.
(read_object): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-lisp.c: Include if-error.h instead of error-progname.h.
(read_object): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-lua.c: Include if-error.h instead of error-progname.h.
(extract_balanced): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-perl.c: Include if-error.h instead of error-progname.h.
(get_here_document, extract_quotelike_pass3, interpolate_keywords, x_perl_lex,
extract_balanced): Invoke 'if_error' instead of 'error'.
(interpolate_keywords): Update extract_quotelike_pass3 invocations.
(extract_balanced): Update collect_message invocations. Call fflush before
abort (needed for MSVC).
* gettext-tools/src/x-php.c: Include if-error.h instead of error-progname.h.
(extract_balanced): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-python.c: Include if-error.h instead of error-progname.h.
(phase7_getuc, extract_balanced): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-rst.c: Include if-error.h instead of error-progname.h.
(extract_rst, extract_rsj): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-scheme.c: Include if-error.h instead of error-progname.h.
(read_object): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-sh.c: Include if-error.h instead of error-progname.h.
(read_word, read_command_list): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-tcl.c: Include if-error.h instead of error-progname.h.
(accumulate_word, read_word): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/x-vala.c: Include if-error.h instead of error-progname.h.
(phase7_getc, phase3_scan_regex, phase3_get, extract_balanced): Invoke
'if_error' instead of 'error'.
* gettext-tools/src/x-ycp.c: Include if-error.h instead of error-progname.h.
(extract_parenthesized): Invoke 'if_error' instead of 'error'.
* gettext-tools/src/xg-arglist-parser.c: Include if-error.h instead of error.h,
error-progname.h.
(arglist_parser_done): Invoke 'if_error' instead of 'error_at_line'.
* gettext-tools/src/xg-message.c: Include if-error.h instead of
error-progname.h.
(set_format_flags_from_context, warn_format_string, remember_a_message): Invoke
'if_error' instead of 'multiline_warning'.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add if-error.h.
(xgettext_SOURCES): Add if-error.c.
* gettext-tools/src/FILES: Mention if-error.h, if-error.c.
* gettext-tools/po/Makevars (XGETTEXT_OPTIONS): Add option regarding the
'if_error' function.
* gettext-tools/po/POTFILES.in: Add src/if-error.c.
2023-10-07 Bruno Haible <bruno@clisp.org>
xgettext: Clarify some diagnostics as errors vs. warnings.
* gettext-tools/src/x-csharp.c (phase2_getc): Clarify role of diagnostics.
* gettext-tools/src/x-javascript.c (phase2_getc): Likewise.
* gettext-tools/src/x-perl.c (get_here_document, extract_balanced): Likewise.
* gettext-tools/src/x-python.c (phase2_getc): Likewise.
* gettext-tools/src/x-rst.c (extract_rst, extract_rsj): Likewise.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Likewise.
2023-10-07 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-10-07 Bruno Haible <bruno@clisp.org>
Avoid possible problems in C++ mode.
* gettext-tools/src/po-xerror.h: Move the #include outside the extern "C" {...}
block.
2023-10-06 Bruno Haible <bruno@clisp.org>
Avoid crash by SIGFPE during plural form expression evaluation.
Libraries (such as libintl and libgettextpo) should not raise signals, because
catching such signals cannot be done in a multithread-safe way.
* gettext-runtime/intl/plural-exp.h (enum eval_status): New enum items
PE_INTDIV, PE_INTOVF.
* gettext-runtime/intl/eval-plural.h (plural_eval_recurse): When a division
argument is zero, return status PE_INTDIV instead of raising SIGFPE.
* gettext-runtime/intl/dcigettext.c (INTDIV0_RAISES_SIGFPE): Remove macro.
Don't include <signal.h>.
* gettext-runtime/intl/configure.ac: Don't invoke gt_INTDIV0.
* gettext-runtime/intl/m4/intdiv0.m4: Remove file.
* gettext-runtime/intl/Makefile.am (ACLOCAL_AMFLAGS): Remove option '-I m4'.
(EXTRA_DIST): Remove m4/intdiv0.m4.
* autogen.sh: When invoking aclocal in gettext-runtime/intl, omit option
'-I m4'.
* gettext-tools/src/msgl-check.c: Don't include <setjmp.h>, <signal.h>.
(plural_expression_histogram): Don't invoke install_sigfpe_handler,
uninstall_sigfpe_handler.
(check_plural_eval): Don't invoke setjmp, install_sigfpe_handler,
uninstall_sigfpe_handler. Remove 'volatile' from array variable.
Produce error message when status PE_INTDIV or PE_INTOVF occurred.
* gettext-tools/src/plural-eval.h: Don't include <setjmp.h>.
(sigjmp_buf, sigsetjmp, siglongjmp): Remove definitions.
(USE_SIGINFO): Remove macro.
(sigfpe_exit, sigfpe_code, install_sigfpe_handler, uninstall_sigfpe_handler):
Remove declarations.
* gettext-tools/src/plural-eval.c: Don't include <signal.h>.
(sigfpe_exit, sigfpe_code): Remove variables.
(sigfpe_handler, install_sigfpe_handler, uninstall_sigfpe_handler): Remove
functions.
* gettext-tools/configure.ac: Don't invoke gt_SIGINFO.
* gettext-tools/m4/siginfo.m4: Remove file.
* gettext-tools/m4/Makefile.am (EXTRA_DIST): Remove it.
2023-10-06 Bruno Haible <bruno@clisp.org>
tests: Check against SIGFPE signal during plural expression evaluation.
* gettext-tools/tests/plural-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-10-06 Bruno Haible <bruno@clisp.org>
Avoid crash by stack overflow during plural expression evaluation.
* gettext-runtime/intl/plural-exp.h (enum eval_status, struct eval_result): New
types.
(plural_eval): Change return type to 'struct eval_result'.
* gettext-runtime/intl/eval-plural.h (EVAL_MAXDEPTH, OK): New macros.
(plural_eval_recurse): New function, extracted from plural_eval.
(plural_eval): Change return type to 'struct eval_result'. Invoke
plural_eval_recurse.
* gettext-runtime/intl/dcigettext.c (plural_lookup): Update.
* gettext-tools/src/plural-eval.h: Update comment.
* gettext-tools/src/msgl-check.c (plural_expression_histogram): Update.
(check_plural_eval): Update. Fail with an error message if the plural expression
evaluation produced a stack overflow.
* gettext-tools/tests/plural-3: Update.
2023-10-06 Bruno Haible <bruno@clisp.org>
tests: Check against stack overflow during plural expression evaluation.
* gettext-tools/tests/plural-1: Add comment.
* gettext-tools/tests/plural-2: Add comment.
* gettext-tools/tests/plural-3: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-10-06 Bruno Haible <bruno@clisp.org>
tests: Add option --thread to tstgettext, tstngettext.
* gettext-tools/tests/tstgettext.c: Include glthread/thread.h.
(inhibit_added_newline, do_expand): Remove variables.
(long_options): Add --thread option.
(struct worker_context): New type.
(main): Move some local variables into a context. Recognize option --thread.
At the end, invoke worker_thread.
(worker_thread): New function, extracted from main.
* gettext-tools/tests/tstngettext.c: Include glthread/thread.h.
(long_options): Add --thread option.
(struct worker_context): New type.
(main): Move some local variables into a context. Recognize option --thread.
At the end, invoke worker_thread.
(worker_thread): New function, extracted from main.
* gettext-tools/tests/Makefile.am (tstgettext_LDADD, tstngettext_LDADD): Add
gnulib-lib/libtestsgnu.a and $(LIBMULTITHREAD).
2023-10-06 Bruno Haible <bruno@clisp.org>
build: Use a separate gnulib-tool invocation for gettext-tools/tests/.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTLIB, GNULIB_MODULES_TOOLS_TESTS): New
variables.
Add a gnulib-tool invocation for gettext-tools/tests/gnulib-{m4,lib}.
Add option -I tests/gnulib-m4 when generating gettext-tools/configure.
* gettext-tools/tests/gnulib-lib/Makefile.am: New file.
* gettext-tools/tests/Makefile.am (SUBDIRS): New variable.
(AM_CPPFLAGS): Add more -I options.
(EXTRA_DIST): Add gnulib-m4/gnulib-cache.m4.
* gettext-tools/Makefile.am (ACLOCAL_AMFLAGS): Add -I tests/gnulib-m4.
* gettext-tools/configure.ac: Invoke gttgl_EARLY and gttgl_INIT. Add an
AC_CONFIG_FILES of tests/gnulib-lib/Makefile.
2023-10-06 Bruno Haible <bruno@clisp.org>
build: Remove redundant -I options from AM_CPPFLAGS.
https://www.gnu.org/software/automake/manual/html_node/Program-Variables.html
documents that -I. -I$(srcdir) and -I$(top_builddir) (for config.h)
are already part of Automake's $(DEFAULT_INCLUDES), which is used
before $(AM_CPPFLAGS).
* gettext-runtime/src/Makefile.am (AM_CPPFLAGS): Remove redundant -I options.
* gettext-tools/gnulib-lib/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/libgettextpo/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/libgrep/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/system-tests/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/tests/Makefile.am (AM_CPPFLAGS): Likewise.
* libtextstyle/adhoc-tests/Makefile.am (AM_CPPFLAGS): Likewise.
* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Add comment.
* gettext-runtime/libasprintf/Makefile.am (AM_CPPFLAGS): Likewise.
2023-10-06 Bruno Haible <bruno@clisp.org>
build: Remove unused -I options from AM_CPPFLAGS.
* gnulib-local/modules/gettext-runtime-misc (Makefile.am): Remove
-I$(top_srcdir)/intl from AM_CPPFLAGS.
* gettext-runtime/tests/Makefile.am (AM_CPPFLAGS): Set to empty.
* gettext-tools/gnulib-lib/Makefile.am (AM_CPPFLAGS): Remove
-I$(top_srcdir)/../gettext-runtime/intl.
* gettext-tools/gnulib-tests/Makefile.am (AM_CPPFLAGS): Update comment.
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Add comment.
* gettext-tools/libgettextpo/Makefile.am (AM_CPPFLAGS): Likewise.
* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir).
2023-10-06 Bruno Haible <bruno@clisp.org>
po-mode: Remove support for Emacs versions < 23.
Reported by Julien Palard <julien@palard.fr>
at <https://savannah.gnu.org/bugs/?64748>.
* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump to 2.29.
(po-buffer-substring, po-match-string, po-with-temp-buffer, po-kill-new,
po-read-event, po-force-mode-line-update): Remove portability polyfills.
(easy-menu-define, format-time-string): Assume present as well.
* gettext-tools/emacs/po-compat.el: Update.
2023-10-06 Bruno Haible <bruno@clisp.org>
po-mode: Add a HACKING file.
* gettext-tools/emacs/HACKING: New file.
* gettext-tools/emacs/Makefile.am (EXTRA_DIST): Add it.
2023-10-04 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Prepare for 0.22.3 release.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.3.
* gettext-tools/misc/autopoint.in: Allow version 0.22.3.
2023-10-04 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Update NEWS file for release 0.22.3.
2023-10-04 Bruno Haible <bruno@clisp.org>
build: Fix link error on native Windows (regression 2023-09-17).
* gettext-tools/woe32dll/gettextsrc-exports.c: Export also gram_pos_column,
gram_pot_role.
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Avoid compiler warning from previous commit.
* gettext-runtime/intl/localealias.c (__libc_localealias_freemem): Don't define
outside of _LIBC.
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2022-12-27 Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2023-02-03 Wilco Dijkstra <wilco.dijkstra@arm.com>
Replace rawmemchr (s, '\0') with strchr
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Fix portability problem in previous commit.
* gettext-runtime/intl/localealias.c (read_alias_file): Use
"#pragma GCC diagnostic ..." only with new enough GCC versions.
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2022-01-25 Martin Sebor <msebor@redhat.com>
intl: Avoid -Wuse-after-free [BZ #26779]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2021-12-12 Andrea Monaco <andrea.monaco@autistici.org>
intl/plural.y: Avoid conflicting declarations of yyerror and yylex
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2021-03-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
Use 64 bit time_t stat internally
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2020-09-25 Arjun Shankar <arjun@redhat.com>
intl: Handle translation output codesets with suffixes [BZ #26383]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2020-07-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
Remove internal usage of extensible stat functions
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2020-07-07 Arjun Shankar <arjun@redhat.com>
Rewrite iconv option parsing [BZ #19519]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2019-09-05 Florian Weimer <fweimer@redhat.com>
locale: Avoid zero-length array in _nl_category_names [BZ #24962]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2018-02-15 Joseph Myers <joseph@codesourcery.com>
Fix -Os feof_unlocked linknamespace, localplt issues (bug 15105, bug 19463).
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Fix compilation error from previous commit.
* gettext-runtime/intl/hash-string.h (attribute_hidden): Add fallback
definition.
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-10-01 H.J. Lu <hjl.tools@gmail.com>
Hide internal __hash_string function [BZ #18822]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-10-01 H.J. Lu <hjl.tools@gmail.com>
Hide internal __gettextparse function [BZ #18822]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-10-01 H.J. Lu <hjl.tools@gmail.com>
Mark internal intl functions with attribute_hidden [BZ #18822]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-10-01 H.J. Lu <hjl.tools@gmail.com>
Mark internal functions with attribute_hidden [BZ #18822]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-08-15 Florian Weimer <fweimer@redhat.com>
iconv, intl, locale, wcsmbs: Remove internal_function
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
Consolidate non cancellable close call
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
Consolidate non cancellable read call
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
Consolidate non cancellable open call
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Fix compilation error from previous commit.
* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Use free() instead of
freea().
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-06-21 Florian Weimer <fweimer@redhat.com>
_nl_load_domain: Use calloc instead of alloca
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Remove use of alloca() for wdirname handling.
* autogen.sh (GNULIB_MODULES_LIBINTL): Add wgetcwd-lgpl.
* gettext-runtime/intl/dcigettext.c: Include <wchar.h>.
(DCIGETTEXT): Allocate resolved_wdirname through malloc() instead of through
alloca().
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Fix compilation error from previous commit.
* gettext-runtime/intl/dcigettext.c (DCIGETTEXT) [!_LIBC]: Compute the resolved
dirname without using __asprintf.
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commits
2017-06-21 Florian Weimer <fweimer@redhat.com>
DCIGETTEXT: Use getcwd, asprintf to construct absolute pathname
and
2018-12-21 Florian Weimer <fweimer@redhat.com>
intl: Do not return NULL on asprintf failure in gettext [BZ #24018]
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Use gnulib module 'getcwd-lgpl'.
* autogen.sh (GNULIB_MODULES_LIBINTL): Add getcwd-lgpl.
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-06-19 Florian Weimer <fweimer@redhat.com>
DCIGETTEXT: Do not make copy of localename
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2017-03-13 Wilco Dijkstra <wdijkstr@arm.com>
Remove the str(n)dup inlines from string/bits/string2.h...
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2016-09-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
hurd: fix pathconf visibility
2023-10-01 Bruno Haible <bruno@clisp.org>
intl: Merge from glibc.
Apply commit
2015-09-08 Joseph Myers <joseph@codesourcery.com>
Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
2023-10-01 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-09-29 Bruno Haible <bruno@clisp.org>
Allow different --libtool options from multiple gnulib-tool invocations.
* gnulib-local/modules/libxml (Makefile.am): Don't test GL_COND_LIBTOOL, since
gnulib-tool already eliminates lib_LDFLAGS augmentations for non-libtool
libraries.
* libtextstyle/gnulib-local/modules/libcroco (Makefile.am): Likewise.
* libtextstyle/gnulib-local/modules/libglib (Makefile.am): Likewise.
2023-09-29 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-09-22 Bruno Haible <bruno@clisp.org>
intl: Assume ISO C 99 or newer.
* gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): Remove macro.
(GERMANIC_PLURAL): Assume HAVE_STRUCT_INITIALIZER is 1.
* gettext-runtime/intl/plural-exp.c: Assume HAVE_STRUCT_INITIALIZER is 1.
(init_germanic_plural): Remove function.
(INIT_GERMANIC_PLURAL): Remove macro.
(EXTRACT_PLURAL_EXPRESSION): Update.
2023-09-20 Bruno Haible <bruno@clisp.org>
Fix intl-7 test failure on Solaris 11.
* gettext-tools/tests/init.cfg (prepare_locale_): Preserve the existing contents
of "$2".
* gettext-tools/tests/intl-7: While calling prepare_locale_, ensure that fr_FR
has higher priority than fr.
2023-09-20 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Prepare for 0.22.2 release.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.2.
* gettext-tools/misc/autopoint.in: Allow version 0.22.2.
2023-09-20 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Update NEWS file for release 0.22.2.
2023-09-19 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Prepare for 0.22.1 release.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:0:4.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:1:2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:10:5.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.1.
* gettext-tools/misc/autopoint.in: Allow version 0.22.1.
2023-09-19 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Update translations from TP.
2023-09-19 Bruno Haible <bruno@clisp.org>
Merge from 0.22.x branch: Update NEWS file for release 0.22.1.
2023-09-19 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2023-09-19 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-09-18 Bruno Haible <bruno@clisp.org>
libgettextpo: Fix compilation error on FreeBSD (regression 2023-09-16).
* gettext-tools/libgettextpo/gettext-po.c (po_file_write, po_error_logger,
po_message_check_format): Use orig_error, orig_error_at_line instead of the
error, error_at_line symbols.
2023-09-18 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Avoid unnecessary nesting_depth growth.
* gettext-tools/src/x-perl.c: Ensure the top-level extract_balanced call returns
when a closing paren or bracket is seen.
(token_type_r_any): New enum item.
(prefer_regexp_over_division, extract_balanced): Handle it.
(extract_perl): Pass token_type_r_any instead of token_type_rbrace.
2023-09-18 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Add test against unbounded nesting_depth growth.
Reported by Gavin D. Smith <gavinsmith0123@gmail.com> at
<https://lists.gnu.org/archive/html/bug-gettext/2023-07/msg00008.html>
and <https://savannah.gnu.org/bugs/?64552>.
* gettext-tools/tests/xgettext-perl-stackovfl-5: New file.
* gettext-tools/tests/testdata/xg-pl-so-5.pl: New file, taken from
https://git.savannah.gnu.org/gitweb/?p=texinfo.git;a=blob;f=tp/Texinfo/Convert/HTML.pm;hb=c8d9edd94d9b1a3e675e811208d9e66eaf9a7daa
* gettext-tools/tests/Makefile.am (TESTS): Add xgettext-perl-stackovfl-5.
(EXTRA_DIST): Add testdata/xg-pl-so-5.pl.
2023-09-18 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Avoid unbounded nesting_depth growth, part 4.
* gettext-tools/src/x-perl.c: Improve parsing of array dereferences.
(extract_variable): After parsing a braced {variable_name}, increment
varbody_length, so as to not parse the following character. If this character
is a closing parenthesis, is would disturb the enclosing extract_balanced call.
Test case:
==========================================
sub in_multi_expanded($)
{
if (@{$self}) {
}
}
==========================================
2023-09-18 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Avoid unbounded nesting_depth growth, part 3.
* gettext-tools/src/x-perl.c: Return from extract_balanced when a subroutine's
definition terminates and that subroutine was defined after a declaration that
ended with a semicolon.
(extract_perl): Pass semicolon_delim=true.
Test case:
==========================================
my %a = 4;
sub b
{
}
==========================================
2023-09-18 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Avoid unbounded nesting_depth growth, part 2.
* gettext-tools/src/x-perl.c: Return from extract_balanced when a subroutine's
definition terminates.
(extract_balanced): Test whether the first token is 'sub'. If so, don't use
the usual symbol parsing and return when a token_type_lbrace was seen.
Test cases:
==========================================
sub import {
}
==========================================
sub import {
if (!$module_loaded) {
Texinfo::XSLoader::override("", "");
Texinfo::XSLoader::override("", "");
$module_loaded = 1;
}
goto &Exporter::import;
}
==========================================
2023-09-18 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Avoid unbounded nesting_depth growth, part 1.
* gettext-tools/src/x-perl.c: Return from extract_balanced when a semicolon
outside parentheses is seen.
(extract_balanced): Add parameters semicolon_delim, eat_semicolon_delim.
All callers changed.
Test case:
=================
use strict;
=================
2023-09-18 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Add ability to debug the nesting_depth.
* gettext-tools/src/x-perl.c (DEBUG_NESTING_DEPTH): New macro.
(extract_balanced): Use it.
2023-09-18 Bruno Haible <bruno@clisp.org>
xgettext: Perl: Refactor.
* gettext-tools/src/x-perl.c: Reindent all '#if DEBUG_PERL' lines.
2023-09-18 Bruno Haible <bruno@clisp.org>
build: Fix "make install" failure on Android.
This patch fixes two problems with "make install" on Android:
1) On this platform, libtool is configured to relink libraries during
"make install".
This leads to a problem during the installation of libgettextsrc: The relink
command that libtool emits has the form
$CC -shared -fPIC -DPIC .libs/*.o -L$(libdir) ... -lgettextlib ... \
-o .libs/libgettextsrc-@VERSION@.soT
The option -lgettextlib resolves to $(libdir)/libgettextlib.a, not to
$(libdir)/libgettextlib-@VERSION@.so.
Thus the linker attempts to include many object files from libgettextlib.a
into libgettextsrc-@VERSION@.soT, but some of these reference global variables
in a non-PIC way, and the linker thus complains
ld.lld: error: relocation R_ARM_REL32 cannot be used against symbol 'program_name'; recompile with -fPIC
2) The installed executables don't have a RUNPATH property that points to the
directory that contains the shared libraries. Thus these executables don't run.
Reported at <https://savannah.gnu.org/patch/index.php?10393>.
* m4/libtool.m4: On Android, fix library_names_spec and
hardcode_libdir_flag_spec.
2023-09-17 Bruno Haible <bruno@clisp.org>
doc: Document how to combine POT files.
Triggered by <https://savannah.gnu.org/bugs/index.php?64490>.
* gettext-tools/doc/gettext.texi (Combining POTs): New section.
2023-09-17 Bruno Haible <bruno@clisp.org>
xgettext: Avoid a warning 'Charset "CHARSET" is not a portable encoding name'.
* gettext-tools/src/po-charset.h (po_lex_charset_set): Add is_pot_role
parameter.
* gettext-tools/src/po-charset.c (po_lex_charset_set): Likewise.
* gettext-tools/src/po-lex.h (gram_pot_role): New declaration.
(lex_start): Add is_pot_role parameter.
* gettext-tools/src/po-lex.c (gram_pot_role): New variable.
(lex_start): Add is_pot_role parameter.
(lex_end): Update.
* gettext-tools/src/po-gram-gen.y (do_callback_message): Pass gram_pot_role to
po_lex_charset_set.
* gettext-tools/src/read-catalog-abstract.h (struct catalog_input_format): Add
is_pot_role parameter to the 'parse' member.
(catalog_reader_parse): Add is_pot_role parameter.
* gettext-tools/src/read-po.c (po_parse): Add is_pot_role parameter.
* gettext-tools/src/read-properties.c (properties_parse): Likewise.
* gettext-tools/src/read-stringtable.c (stringtable_parse): Likewise.
* gettext-tools/src/read-catalog-abstract.c (catalog_reader_parse): Add
is_pot_role parameter.
* gettext-tools/src/x-po.c (extract): Pass is_pot_role as true.
* gettext-tools/src/xgettext.c (read_exclusion_file): Likewise.
* gettext-tools/src/read-catalog.c (read_catalog_stream): Pass is_pot_role as
false.
* gettext-tools/src/msgfmt.c (read_catalog_file_msgfmt): Likewise.
2023-09-17 Bruno Haible <bruno@clisp.org>
Fix typo in comment.
* gettext-tools/src/po-lex.h (po_gram_lex): Fix typo in comment.
2023-09-17 Bruno Haible <bruno@clisp.org>
build: Install auxiliary programs in $(libexecdir), not $(libdir). Part 3.
* PACKAGING: Update accordingly.
2023-09-17 Bruno Haible <bruno@clisp.org>
xgettext: Avoid error 'present charset "CHARSET" is not a portable encoding name' when possible.
Reported by Arsen Arsenović <arsen@aarsen.me>
at <https://savannah.gnu.org/bugs/?64490>.
This changes the behaviour back to the one from gettext 0.21.1, where this
xgettext invocation produced just a warning.
* gettext-tools/src/msgl-iconv.c (iconv_message_list_internal): Don't give an
error when a PO file has a header entry with charset=CHARSET and is entirely
ASCII.
* gettext-tools/src/msgl-cat.c (catenate_msgdomain_list): Likewise.
* gettext-tools/tests/xgettext-combine-1: New file.
* gettext-tools/tests/xgettext-combine-2: New file.
* gettext-tools/tests/xgettext-combine-3: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-09-16 Bruno Haible <bruno@clisp.org>
libgettextpo: Fix compilation error on Android.
* gettext-tools/libgettextpo/gettext-po.c: Include error.h second.
(orig_error, orig_error_at_line): New variables.
(error, error_at_line): Undefine afterwards.
(po_file_read_v2): Use these variables instead of the error, error_at_line
symbols.
2023-09-16 Bruno Haible <bruno@clisp.org>
Fix another misnomer.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Set BUILDING_LIBRARY instead
of BUILDING_DLL.
* gettext-runtime/intl/intl-compat.c (SHLIB_EXPORTED): Test BUILDING_LIBRARY
instead of BUILDING_DLL.
* gettext-runtime/intl/printf.c (SHLIB_EXPORTED): Likewise.
* gettext-runtime/intl/setlocale.c (SHLIB_EXPORTED): Likewise.
2023-09-16 Bruno Haible <bruno@clisp.org>
Fix a misnomer.
* gettext-runtime/configure.ac: Prefer the term "shared library", since the term
"DLL" applies only to Windows.
* gettext-runtime/intl/configure.ac: Likewise.
* gettext-tools/configure.ac: Likewise.
* gettext-runtime/intl/export.h (LIBINTL_SHLIB_EXPORTED): Renamed from
LIBINTL_DLL_EXPORTED. Prefer the term "shared library", since the term "DLL"
applies only to Windows.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Update comment.
(libgnuintl.h): Insert LIBINTL_SHLIB_EXPORTED instead of LIBINTL_DLL_EXPORTED.
* gettext-runtime/intl/gettextP.h: Use LIBGLOCALE_SHLIB_EXPORTED instead of
LIBGLOCALE_DLL_EXPORTED. Use LIBINTL_SHLIB_EXPORTED instead of
LIBINTL_DLL_EXPORTED.
* gettext-runtime/intl/loadinfo.h (LIBINTL_SHLIB_EXPORTED): Renamed from
LIBINTL_DLL_EXPORTED.
* gettext-runtime/intl/intl-compat.c (SHLIB_EXPORTED): Renamed from
DLL_EXPORTED. Prefer the term "shared library", since the term "DLL" applies
only to Windows.
* gettext-runtime/intl/printf.c (SHLIB_EXPORTED): Likewise.
* gettext-runtime/intl/setlocale.c (SHLIB_EXPORTED): Likewise.
* gettext-tools/woe32dll/export.h: Update comment.
2023-09-16 Bruno Haible <bruno@clisp.org>
intl: Improve support for clang.
* gettext-runtime/intl/libgnuintl.in.h (_INTL_MAY_RETURN_STRING_ARG): Use
__attribute__ also for clang.
2023-09-15 Bruno Haible <bruno@clisp.org>
intl: Don't export the symbol 'rpl_isnanf' on MSVC.
* gettext-runtime/intl/configure.ac: Define rpl_isnanf to _libintl_isnanf.
2023-09-15 Bruno Haible <bruno@clisp.org>
intl: Don't export the symbol 'mbszero' on Windows platforms.
* gettext-runtime/intl/configure.ac: Define mbszero to _libintl_mbszero.
2023-09-15 Bruno Haible <bruno@clisp.org>
intl: Don't export libintl_hash_string.
* gettext-runtime/intl/hash-string.h (__hash_string): Expand to
_libintl_hash_string, not libintl_hash_string.
2023-09-15 Bruno Haible <bruno@clisp.org>
intl: Fix list of exported symbols (regression 2021-06-19).
Reported by <fxcoudert@gcc.gnu.org>
and Christian Weisgerber <naddy@mips.inka.de>
in <https://savannah.gnu.org/bugs/?64323>
and <https://lists.gnu.org/archive/html/bug-gettext/2023-07/msg00005.html>.
Analyzed by Christian Weisgerber <naddy@mips.inka.de> and
Tijl Coosemans <tijl@FreeBSD.org>.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Set BUILDING_DLL.
* gettext-runtime/intl/intl-compat.c: Update comments.
2023-09-15 Bruno Haible <bruno@clisp.org>
intl: Fix a build error on Android.
The declaration in Android's <math.h>
long double frexpl(long double, int*) __RENAME_LDBL(frexp, 3, 21);
has the effect that frexpl.o defines the symbol _libintl_frexp, not
_libintl_frexpl, if config.h contains
#define frexp _libintl_frexp
#define frexpl _libintl_frexpl
* gettext-runtime/intl/configure.ac:
If REPLACE_FREXP is 1, don't redirect frexp to _libintl_frexp.
If REPLACE_FREXPL is 1, don't redirect frexpl to _libintl_frexp.
2023-09-14 Bruno Haible <bruno@clisp.org>
intl: Annotate *printf functions with __attribute__ __nonnull__.
* gettext-runtime/intl/libgnuintl.in.h (_INTL_ARG_NONNULL): New macro.
(fprintf, vfprintf, printf, vprintf, sprintf, vsprintf, snprintf, vsnprintf,
asprintf, vasprintf, fwprintf, vfwprintf, wprintf, vwprintf, swprintf,
vswprintf): Annotate with _INTL_ARG_NONNULL.
2023-09-14 Bruno Haible <bruno@clisp.org>
intl: Annotate *printf functions with __attribute__ __format__.
Reported by Pierre Ossman <ossman@cendio.se> at
<https://savannah.gnu.org/bugs/?64384>.
* gettext-runtime/intl/libgnuintl.in.h (_INTL_ATTRIBUTE_FORMAT,
_INTL_ATTRIBUTE_SPEC_PRINTF_STANDARD, _INTL_ATTRIBUTE_FORMAT_PRINTF_STANDARD):
New macros.
(fprintf, vfprintf, printf, vprintf, sprintf, vsprintf, snprintf, vsnprintf,
asprintf, vasprintf): Annotate with _INTL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
* gettext-runtime/intl/printf.c: Update comment.
2023-09-13 Bruno Haible <bruno@clisp.org>
intl: Don't compile relocatable.c any more.
The library does not need relocatable.h any more since today.
As a side effect, libintl.la gets installed again and "make uninstall" erases
the installed libintl.{a,so} again (regressions from 2021-06-20).
Reported by David Bohman <debohman@gmail.com> at
<https://savannah.gnu.org/bugs/?64536>.
* autogen.sh (GNULIB_MODULES_LIBINTL): Remove relocatable-lib-lgpl.
* gnulib-local/modules/gettext-runtime-intl-misc (Makefile.am): Don't augment
AM_CPPFLAGS.
* gettext-runtime/intl/configure.ac: Don't set enable_relocatable.
Don't define the C symbols relocate, relocate2.
* gettext-runtime/intl/compat.c: New file.
* gettext-runtime/intl/Makefile.am: Update comments.
(LIBINTLSOURCES): Add compat.c.
(compat.lo): New rule.
2023-09-13 Bruno Haible <bruno@clisp.org>
intl: Use a locale.alias file only on glibc systems.
On systems without glibc, it makes no sense if libintl supports locale name
aliases that the system's setlocale() does not support. Therefore better
disable the locale.alias processing on these platforms.
Also, stop installing locale.alias, because on systems without glibc we won't
read it any more, and on systems with glibc we need to use the preinstalled
one in /usr/share/locale/locale.alias.
* gettext-runtime/intl/localealias.c: Don't include relocatable.h.
(relocate, relocate2): Remove macros.
(LOCALE_ALIAS_PATH): Define a fallback.
(_nl_expand_alias): Simplify on systems without glibc.
(read_alias_file, extend_alias_table, alias_compare): Don't define on systems
without glibc.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Don't set LOCALE_ALIAS_PATH.
(EXTRA_DIST): Remove locale.alias, ref-add.sin, ref-del.sin.
(MOSTLYCLEANFILES): Remove ref-add.sed, red-del.sed.
(ref-add.sed, ref-del.sed, install-data-aliasfile, installdirs-aliasfile,
uninstall-aliasfile): Remove rules.
* gettext-runtime/intl/locale.alias: Remove file.
* gettext-runtime/intl/ref-add.sin: Remove file.
* gettext-runtime/intl/ref-del.sin: Remove file.
* gettext-tools/src/Makefile.am (aliaspath): Remove variable.
(DEFS): Don't set LOCALE_ALIAS_PATH.
* PACKAGING: Don't mention locale.alias.
2023-09-13 Bruno Haible <bruno@clisp.org>
intl: Clarify the role of locale.alias.
This is part of the patch
<https://sourceware.org/pipermail/libc-alpha/2023-September/151524.html>.
* gettext-runtime/intl/localealias.c: Explain the form and the purpose of the
locale.alias file.
2023-09-12 Bruno Haible <bruno@clisp.org>
intl: Fix build failure with "make -j".
Reported by Christian Weisgerber <naddy@mips.inka.de> at
<https://lists.gnu.org/archive/html/bug-gettext/2023-09/msg00005.html>.
* gettext-runtime/intl/Makefile.am (langprefs.lo, log.lo): Depend on gettextP.h
and its subordinate includes.
2023-09-10 Bruno Haible <bruno@clisp.org>
intl: Treat C.UTF-8 locale like C locale.
The wiki page https://sourceware.org/glibc/wiki/Proposals/C.UTF-8
says that "Setting LC_ALL=C.UTF-8 will ignore LANGUAGE just like it
does with LC_ALL=C." This is now implemented in glibc. Implement it
for other platforms as well.
* gettext-runtime/intl/dcigettext.c (DCIGETTEXT, guess_category_value): Treat
C.<encoding> locale like the C locale.
* gettext-runtime/NEWS: Mention it.
* NEWS: Likewise.
* gettext-tools/tests/intl-0: New file, based on gettext-tools/tests/intl-1.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-09-07 Bruno Haible <bruno@clisp.org>
Sync woe32dll/export.h with GNU libiconv and GNU libunistring.
* gettext-tools/woe32dll/export.h: Update comments. Correct indentation.
2023-09-07 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2023-09-07 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-09-07 Bruno Haible <bruno@clisp.org>
Don't export symbols from static object files on Windows.
* gettext-tools/configure.ac (DLL_VARIABLE): Test DLL_EXPORT, not WOE32DLL.
(WOE32DLL): Don't define as a C macro.
* gettext-runtime/configure.ac: Likewise.
(DLL_VARIABLE): Drop special assumption regarding 'exit_failure'.
2023-09-07 Bruno Haible <bruno@clisp.org>
libtextstyle: Don't export symbols from static MSVC .obj files.
* libtextstyle/lib/Makefile.am (config.h): Don't alias isatty to
libtextstyle_isatty here, before the Windows header files have been included.
* libtextstyle/gnulib-local/lib/isatty.c.diff: New file.
* libtextstyle/Makefile.am (EXTRA_DIST): Add it.
2023-09-07 Bruno Haible <bruno@clisp.org>
intl: Don't export symbols from static MSVC .obj files.
* gettext-runtime/intl/configure.ac (WOE32DLL): Set to 1 or 0, not 'yes' or
'no'. Don't define as C macro any more.
(DLL_VARIABLE): Test DLL_EXPORT, not _DLL.
* gettext-runtime/intl/export.h: Use the value of WOE32DLL at configure time.
Set LIBINTL_DLL_EXPORTED to empty on MSVC when DLL_EXPORT is not defined.
* gettext-runtime/intl/Makefile.am (libgnuintl.h): Substitute the value of
@WOE32DLL@.
* gettext-runtime/intl/intl-compat.c (DLL_EXPORTED): Set to empty on MSVC when
DLL_EXPORT is not defined.
* gettext-runtime/intl/printf.c (DLL_EXPORTED): Likewise.
* gettext-runtime/intl/setlocale.c (DLL_EXPORTED): Likewise.
2023-09-06 Bruno Haible <bruno@clisp.org>
Recognize the *-*-windows* config triplets introduced on 2023-06-26.
* libtextstyle/lib/Makefile.am: Treat windows* as equivalent to mingw*.
2023-08-30 Bruno Haible <bruno@clisp.org>
Recognize the *-*-windows* config triplets introduced on 2023-06-26.
* gettext-runtime/configure.ac: Treat windows* as equivalent to mingw*.
* gettext-runtime/intl/configure.ac: Likewise.
* gettext-runtime/libasprintf/configure.ac: Likewise.
* gettext-tools/configure.ac: Likewise.
* gettext-tools/m4/locale-de.m4 (gt_LOCALE_DE_UTF8): Likewise.
* libtextstyle/configure.ac: Likewise.
* m4/woe32-dll.m4 (gl_WOE32_DLL): Likewise.
2023-07-14 Bruno Haible <bruno@clisp.org>
msgmerge: Deprecate option '--sort-output'.
Reported by Ben Siemerink <gnu@mail.qoben.com> in
<https://savannah.gnu.org/bugs/?61249>.
* gettext-tools/src/msgmerge.c (main): Warn when option '--sort-output' is used.
(usage): Mark the option '--sort-output' deprecated.
* gettext-tools/doc/msgmerge.texi: Likewise.
* NEWS: Mention it.
2023-07-14 Bruno Haible <bruno@clisp.org>
Improve support for GtkBuilder 4.
Reported by Stuart <stuart.a.hayhurst@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2023-07/msg00010.html>.
* gettext-tools/its/gtkbuilder.its: Recognize translatable="1" and similar as
equivalent to translatable="yes".
* NEWS: Mention it.
2023-06-29 Bruno Haible <bruno@clisp.org>
Update the installation instructions for Windows.
* INSTALL.windows: Add a note about MSYS2.
2023-06-23 Bruno Haible <bruno@clisp.org>
build: Stop using the gnulib module 'gettext'. Part 2.
* Makefile.am (distcheck-hook): Remove checks of nls.m4 and progtest.m4.
2023-06-23 Bruno Haible <bruno@clisp.org>
build: Ensure that makeinfo ≥ 6.8 checks the @menu structure.
See <https://lists.gnu.org/archive/html/bug-texinfo/2023-06/msg00015.html>.
* gettext-tools/doc/Makefile.am (MAKEINFO): Add option
"-c CHECK_NORMAL_MENU_STRUCTURE=1".
2023-06-19 Bruno Haible <bruno@clisp.org>
Fix lang-python-* failures when a traditional French locale is present.
This is caused by the new UTF-8 encoded messages in .mo files, together
with a bug in gettext.py from Python 2.7 that prohibits reencoding of the
looked-up messages at run time.
* gettext-tools/tests/lang-python-1: Instead of conditionally skipping the test
in the $LOCALE_FR_UTF8 locale, conditionally skip the test in the $LOCALE_FR
locale.
* gettext-tools/tests/lang-python-2: Likewise.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Stop using the gnulib module 'gettext'.
This avoids possible trouble due to divergences between gettext and gnulib.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove 'gettext'.
Avoid an error message if gettext-tools/gnulib-m4/po.m4 does not yet exist.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Silence most warnings from gcc 11.
* m4/more-warnings.m4 (gt_MORE_WARNINGS): With gcc 11 or older, silence three
more types of warnings.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove redundant .m4 file.
* gettext-runtime/m4/intlmacosx.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't check it.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Take it from the
gettext-runtime/gnulib-m4/ directory.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove redundant .m4 file.
* autogen.sh (GNULIB_MODULES_LIBINTL): Add iconv.
* gettext-runtime/m4/iconv.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't check it.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Take it from the
gettext-runtime/gnulib-m4/ directory.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Move a .m4 file to where it belongs.
* autogen.sh: Pass '-I m4' when generating gettext-runtime/intl/configure.
* gettext-runtime/intl/m4/intdiv0.m4: Moved here from
gettext-runtime/m4/intdiv0.m4.
* gettext-runtime/intl/Makefile.am (ACLOCAL_AMFLAGS): Add '-I m4'.
(EXTRA_DIST): Add m4/intdiv0.m4.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove intdiv0.m4.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove redundant .m4 file.
* gettext-runtime/m4/inttypes_h.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't check it.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove redundant .m4 file.
* gettext-runtime/intl/configure.ac: Don't invoke gl_AC_HEADER_STDINT_H.
* gettext-runtime/m4/stdint_h.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't check it.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Simplify.
* gettext-runtime/intl/configure.ac: Inline the gt_INTL_SUBDIR_CORE macro.
* gettext-runtime/m4/intl.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Assume that <stdint.h> or <inttypes.h> defines uintmax_t.
OpenBSD has it since OpenBSD 3.9 (2006).
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't invoke
gl_AC_TYPE_UINTMAX_T.
* gettext-runtime/m4/uintmax_t.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove unused .m4 file.
* gettext-runtime/m4/intmax.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove redundant .m4 file.
* gettext-runtime/m4/size_max.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't check it.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove redundant .m4 file.
* gettext-runtime/libasprintf/configure.ac: Don't invoke gl_XSIZE.
* gettext-runtime/m4/xsize.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't check it.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove redundant .m4 file.
* gettext-runtime/m4/flexmember.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't check it.
2023-06-19 Bruno Haible <bruno@clisp.org>
build: Remove redundant .m4 file.
* gettext-runtime/m4/fcntl-o.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't check it.
2023-06-18 Bruno Haible <bruno@clisp.org>
build: Install auxiliary programs in $(libexecdir), not $(libdir). Part 2.
* gettext-tools/src/user-email.sh.in: Use libexecdir instead of libdir.
2023-06-18 Bruno Haible <bruno@clisp.org>
build: Install auxiliary programs in $(libexecdir), not $(libdir).
The GNU Coding Standards say that auxiliary programs should be installed in a
subdir of $(libexecdir).
<https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>
Originally, I did not do this because I also wanted to follow the Linux
Filesystem Hierarchy Standard, which in version 2 did not support /usr/libexec.
This has changed in 2015: The FHS version 3 now allows installation into
/usr/libexec.
<https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html>
Reported by Bastien Roucariès <rouca@debian.org> in
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032010>.
* gettext-tools/src/Makefile.am (pkglibexecdir): New variable.
(DEFS): Pass a LIBEXECDIR macro.
(hostname_CPPFLAGS, urlget_CPPFLAGS, cldr_plurals_CPPFLAGS, hostname_LDFLAGS,
urlget_LDFLAGS, cldr_plurals_LDFLAGS, install-exec-local, installdirs-local,
uninstall-local): Use pkglibexecdir instead of pkglibdir.
* gettext-tools/src/msginit.c (project_id, project_id_version, plural_forms):
Test $GETTEXTLIBEXECDIR_SRCDIR instead of $GETTEXTLIBDIR_SRCDIR. Use LIBEXECDIR
instead of LIBDIR.
(get_user_email, language_team_address): Use LIBEXECDIR instead of LIBDIR.
* gettext-tools/tests/msginit-3: Set GETTEXTLIBEXECDIR_SRCDIR instead of
GETTEXTLIBDIR_SRCDIR.
* gettext-tools/tests/msginit-4: Likewise. Set GETTEXTLIBEXECDIR_BUILDDIR
instead of GETTEXTLIBDIR_BUILDDIR.
2023-06-18 Bruno Haible <bruno@clisp.org>
build: Remove a .m4 file that duplicates gnulib functionality.
* gettext-runtime/m4/printf-posix.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* gettext-runtime/intl/configure.ac: Use gl_PRINTF_POSITIONS instead of
gt_PRINTF_POSIX.
* gettext-runtime/libasprintf/configure.ac: Likewise.
2023-06-18 Bruno Haible <bruno@clisp.org>
build: Remove unused and outdated .m4 file.
* gettext-runtime/m4/visibility.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
2023-06-17 Bruno Haible <bruno@clisp.org>
Update release steps.
2023-06-17 Bruno Haible <bruno@clisp.org>
Update release steps.
2023-06-17 Bruno Haible <bruno@clisp.org>
examples: Use infrastructure from gettext version 0.22.
* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
version 0.22.
* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
* gettext-tools/examples/hello-*/m4/Makefile.am: Update .m4 file list.
* gettext-tools/examples/hello-*/autoclean.sh: Likewise.
2023-06-17 Bruno Haible <bruno@clisp.org>
Update translations from TP.
* gettext-runtime/po/*.po: Update from TP.
* gettext-runtime/po/LINGUAS: Add ka.
* gettext-tools/po/*.po: Update from TP.
* gettext-tools/po/LINGUAS: Add hr.
* gettext-tools/examples/po/*.po: Update from TP.
2023-06-17 Bruno Haible <bruno@clisp.org>
Prepare for 0.22 release.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* gettext-runtime/po/Makefile.in.in: Bump Origin version.
* gettext-runtime/m4/gettext.m4: Update version at the first line.
* gettext-runtime/m4/intl.m4: Likewise.
* NEWS, libtextstyle/NEWS: Update.
* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:0:2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:9:5.
* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.
* gettext-tools/misc/autopoint.in: Allow version 0.22.
2023-06-17 Bruno Haible <bruno@clisp.org>
Update copyright year in --version output.
* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
output.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-runtime/src/gettext.sh.in (func_version): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main): Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* gettext-tools/misc/autopoint.in (func_version): Likewise.
* gettext-tools/misc/convert-archive.in (func_version): Likewise.
* gettext-tools/misc/gettextize.in (func_version): Likewise.
2023-06-17 Bruno Haible <bruno@clisp.org>
Update POTFILES.in.
* gettext-runtime/po/POTFILES.in: Update.
* gettext-tools/po/POTFILES.in: Update.
2023-06-17 Bruno Haible <bruno@clisp.org>
intl: Fix translation lookup failure when wbindtextdomain is used.
Reported by Luca Bacci <luca.bacci@outlook.com> at
<https://savannah.gnu.org/bugs/index.php?64311>.
The bug showed up when a call to bindtextdomain() with an absolute directory
and a call to wbindtextdomain() for a different domain was in effect.
Translations in the first referenced domain worked, translations in the second
referenced domain did not.
* gettext-runtime/intl/loadinfo.h (struct loaded_l10nfile, _nl_make_l10nflist):
Improve comments.
* gettext-runtime/intl/finddomain.c (_nl_loaded_domains): Likewise.
* gettext-runtime/intl/l10nflist.c (_nl_make_l10nflist): Fix code that looks up
the loaded_l10nfile in the given list, and make it more maintainable.
* gettext-tools/tests/intl-6: Improve comments.
* gettext-tools/tests/intl-6-prg.c (main): Restructure.
* gettext-tools/tests/intl-7: New file, based on gettext-tools/tests/intl-6.
* gettext-tools/tests/intl-6-prg.c: New file, based on
gettext-tools/tests/intl-6-prg.c.
* gettext-tools/tests/Makefile.am (TESTS): Add intl-7.
(check_PROGRAMS): Add intl-7-prg.
(intl_7_prg_SOURCES, intl_7_prg_LDADD): New variables.
2023-06-16 Bruno Haible <bruno@clisp.org>
Add comments about tests that fail on Solaris derivatives.
* gettext-tools/tests/msgmerge-compendium-6: Add comment about Solaris 11
derivatives.
2023-06-16 Bruno Haible <bruno@clisp.org>
Add comments about tests that fail on Alpine Linux.
* gettext-tools/tests/format-c-5: Add comment about musl libc.
2023-06-16 Bruno Haible <bruno@clisp.org>
Make internationalization tests stricter on Solaris 11 systems.
* gettext-tools/tests/format-c-5-prg.c (main): Don't expect an Arabic digit
output in a locale other than Farsi.
* gettext-tools/tests/format-c-5: Try an Arabic locale as well.
2023-06-16 Bruno Haible <bruno@clisp.org>
Fix a bug in the last commit.
* gettext-tools/src/write-mo.c (write_table): Include the number of system
dependent string pairs in the computation of the hash table's size.
* gettext-tools/tests/msgfmt-20: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-06-15 Bruno Haible <bruno@clisp.org>
Make translations of strings with <inttypes.h> macros work with musl libc.
* gettext-tools/src/write-mo.h (no_redundancy): New declaration.
* gettext-tools/src/write-mo.c (SIZEOF): New macro.
(no_redundancy): New variable.
(struct sysdep_instantiation_rule): New type.
(useful_instantiation_rules): New variable.
(concat_prefix_cs, get_sysdep_segment_value): New functions.
(write_table): Add a second pass, that instantiates system dependent string
pairs.
* gettext-tools/src/msgfmt.c (long_options): Add --no-redundancy.
(main): Handle the --no-redundancy option.
(usage): Document the --no-redundancy option.
* gettext-tools/doc/msgfmt.texi: Document the --no-redundancy option.
* gettext-tools/tests/msgfmt-12: Test the msgfmt result with and without
--no-redundancy.
* gettext-tools/tests/msgunfmt-2: Pass option --no-redundancy to msgfmt.
* NEWS: Mention the change.
* gettext-tools/tests/format-c-3: Include the redundant instantiations in the
expected result of msgunfmt.
* gettext-tools/tests/format-c-4: Likewise.
2023-06-15 Bruno Haible <bruno@clisp.org>
Simplify code.
* gettext-tools/src/locating-rule.c: Don't include mem-hash-map.h.
2023-06-15 Bruno Haible <bruno@clisp.org>
mem-hash-map: Fix a left-over from 2001-11-20.
* gnulib-local/lib/mem-hash-map.h (hash_init): Fix comment.
* gnulib-local/lib/mem-hash-map.c (hash_init): Likewise.
* gettext-tools/src/msgl-fsearch.c (message_fuzzy_index_alloc): Don't test the
return value of hash_init.
2023-06-15 Bruno Haible <bruno@clisp.org>
Change some tests to give more insights.
* gettext-tools/tests/format-c-3-prg.c (_): Remove macro.
(main): Test also a simple translation.
* gettext-tools/tests/format-c-4-prg.c: Likewise.
* gettext-tools/tests/format-c-5-prg.c: Likewise.
* gettext-tools/tests/format-c-3: Update.
* gettext-tools/tests/format-c-4: Likewise.
* gettext-tools/tests/format-c-5: Likewise.
2023-06-15 Bruno Haible <bruno@clisp.org>
Fix another system-tests failure on musl libc.
* gettext-tools/tests/intl-3: With gettext from musl libc, use a different
expected output.
2023-06-15 Bruno Haible <bruno@clisp.org>
Avoid the need for charset conversion at run time on musl libc.
This fixes 1 system-tests failure (intl-2) and 3 tests failures (lang-c,
lang-c++, lang-sh).
* gettext-tools/src/write-mo.h (no_convert_to_utf8): New declaration.
(msgdomain_write_mo): Add a 4th parameter.
* gettext-tools/src/write-mo.c: Include po-charset.h, msgl-iconv.h.
(no_convert_to_utf8): New variable.
(msgdomain_write_mo): Add a 4th parameter. Convert the message list to UTF-8.
* gettext-tools/src/msgfmt.c (long_options): Add --no-convert.
(main): Handle the --no-convert option. Pass a 4th argument to
msgdomain_write_mo.
(usage): Document the --no-convert option.
* gettext-tools/doc/msgfmt.texi: Document the --no-convert option.
* gettext-tools/doc/gettext.texi (MO Files): Document the character encoding of
strings in MO files.
* gettext-tools/tests/msgfmt-5: Use msgfmt option --no-convert.
* gettext-tools/tests/msgfmt-12: Likewise.
* gettext-tools/tests/lang-pascal: Likewise.
* NEWS: Mention the change.
2023-06-15 Bruno Haible <bruno@clisp.org>
Trivial refactoring.
* gettext-tools/src/msgcmp.c (compare): Pass po_charset_utf8 to
iconv_msgdomain_list.
* gettext-tools/src/msgmerge.c (merge): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
2023-06-15 Bruno Haible <bruno@clisp.org>
Make internationalization tests stricter on musl systems.
* gettext-tools/m4/locale-de.m4 (gt_LOCALE_DE_UTF8): On musl systems, set
LOCALE_DE_UTF8 to "de_DE.UTF-8" instead of "none".
2023-06-15 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2023-06-15 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib
2023-06-12 Bruno Haible <bruno@clisp.org>
msgfmt: Silence javac note "uses unchecked or unsafe operations".
* gettext-tools/src/write-java.c (write_java_code): Add template parameters to
Hashtable and Enumeration references.
2023-06-11 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* NEWS: Mention the newly supported Java versions.
2023-06-11 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-06-09 Bruno Haible <bruno@clisp.org>
Fix Windows exports list regarding C++ format strings.
* gettext-tools/woe32dll/gettextsrc-exports.c: Add formatstring_cplusplus_brace.
2023-06-09 Bruno Haible <bruno@clisp.org>
New example 'hello-c++20'.
* gettext-tools/examples/hello-c++20: New directory, based on
gettext-tools/examples/hello-c++.
* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Update.
* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS,
SMALLPOFILES_FOR_lang): Update.
(hello-c++20.pot, hello-c++20/po/$(LL).po): New rules.
* gettext-tools/examples/README: Update.
* gettext-tools/examples/check-examples (func_check_autoclean_all,
func_check_distclean_all, func_check_maintainerclean_all,
func_check_maintainerclean_vpath_all, func_check_dist_all,
func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
func_check_distcheck_all, func_check_all): Handle this directory as well.
* NEWS: Mention the new example.
2023-06-08 Bruno Haible <bruno@clisp.org>
Add support for C++ format strings.
* gettext-tools/src/message.h (enum format_type): New enum item
format_cplusplus_brace.
(NFORMATS): Increment.
* gettext-tools/src/message.c (format_language, format_language_pretty): Add
entries for format_cplusplus_brace.
* gettext-tools/src/format.h (formatstring_cplusplus_brace): New declaration.
* gettext-tools/src/format-c++-brace.c: New file, based on
gettext-tools/src/format-awk.c.
* gettext-tools/src/format.c (formatstring_parsers): Add an entry for
format_cplusplus_brace.
* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-c++-brace.c.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/x-c.h (SCANNERS_C): In language C++, use
formatstring_cplusplus_brace as second format string parser.
* gettext-tools/src/x-c.c (init_flag_table_c): Initialize flags related to
c++-format.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Handle
format_cplusplus_brace.
(recognize_qt_formatstrings, language_to_extractor): Update.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Update.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
format-c++-brace.c.
* gettext-tools/tests/format-c++-brace-1: New file, based on
gettext-tools/tests/format-c-1.
* gettext-tools/tests/format-c++-brace-2: New file, based on
gettext-tools/tests/format-c-2.
* gettext-tools/tests/lang-c++20: New file, based on
gettext-tools/tests/lang-c++.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/doc/gettext.texi (PO Files): Mention c++-format and
no-c++-format.
(Preparing strings): Add subheading "No programmer-defined format string
directives".
(Mark Keywords): Mention the need to use std::vformat instead of std::format.
(c++-format): New subsection.
* gettext-tools/doc/lang-c.texi: Mention the syntax for C++ format strings.
* NEWS: Mention the change.
tweak c++-format
2023-06-08 Bruno Haible <bruno@clisp.org>
NEWS: Mention Unicode 15.
* NEWS: Mention that Unicode 15 is supported. Done in gnulib on 2022-10-16.
2023-06-08 Bruno Haible <bruno@clisp.org>
Simplify format-c-1 test.
* gettext-tools/tests/format-c-1: Remove a redundant test case.
2023-06-08 Bruno Haible <bruno@clisp.org>
Simplify lang-c++ test.
* gettext-tools/tests/lang-c++: Remove unneeded include.
2023-06-08 Bruno Haible <bruno@clisp.org>
Tweak comments.
2023-06-07 Bruno Haible <bruno@clisp.org>
xgettext: Avoid side effects of the Vala extractor on the C extractor.
* gettext-tools/src/xgettext.h (xgettext_record_flag): Add more comments.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Parse an optional
'!BACKEND' suffix. When present, limit the effects of c-format related flags to
the specified flag table(s).
* gettext-tools/src/x-vala.c (init_flag_table_vala): Append '!Vala' to all
xgettext_record_flag arguments.
* gettext-tools/tests/xgettext-c-format-6: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-06-07 Bruno Haible <bruno@clisp.org>
xgettext: In language Python, fix a format string handling bug.
The option --flag=my_new_format:1:python-brace-format used to mark strings
inside my_new_format invocations as being 'python-format' instead of
'python-brace-format'.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Use the correct index
into flag_table_python.
* gettext-tools/tests/xgettext-python-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-06-07 Bruno Haible <bruno@clisp.org>
xgettext: In language Vala, fix a format string handling bug.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Store format_c related
flags also in flag_table_vala.
* gettext-tools/tests/xgettext-vala-5: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-06-07 Bruno Haible <bruno@clisp.org>
xgettext: Reduce code duplication.
* gettext-tools/src/xg-arglist-context.h (flag_context_list_table_add): Add
comment.
* gettext-tools/src/xg-arglist-context.c (set_flags_for_formatstring_type): New
function, extracted from flag_context_list_table_add.
(flag_context_list_table_add): Use it.
2023-06-07 Bruno Haible <bruno@clisp.org>
xgettext: Support up to 4 format string parsers at the same time.
* gettext-tools/src/xg-arglist-context.h (struct flag_context_ty): Add fields
is_format4, pass_format4.
* gettext-tools/src/xg-arglist-context.c (null_context, passthrough_context,
inherited_context, passthrough_context_circular_list,
flag_context_list_table_add): Update.
* gettext-tools/src/xg-message.c (set_format_flags_from_context,
decide_is_format, remember_a_message_plural): Update.
* gettext-tools/src/xgettext.h (current_formatstring_parser4): New declaration.
* gettext-tools/src/xgettext.c (struct extractor_ty): Add field
formatstring_parser4.
(current_formatstring_parser4): New variable.
(main, extract_from_file, language_to_extractor): Update.
2023-06-05 Bruno Haible <bruno@clisp.org>
Fix libintl exports.
On mingw, rpl_mbrtowc, rpl_mbsinit, hard_locale were exported.
On Cygwin, rpl_mbrtowc, rpl_vasnprintf were exported.
* gettext-runtime/intl/configure.ac: Map more rpl_* symbols to _libintl_*.
2023-06-05 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-06-04 Bruno Haible <bruno@clisp.org>
build: Don't rename error{_at_line} to rpl_error{_at_line} on native Windows.
* gettext-tools/configure.ac (GNULIB_REPLACE_ERROR): Define only on Cygwin and
Android.
* gettext-tools/woe32dll/gettextlib-exports.c: Don't assume that
GNULIB_DEFINED_ERROR implies GNULIB_REPLACE_ERROR.
2023-06-04 Bruno Haible <bruno@clisp.org>
build: Make the Windows exports lists more maintainable.
* gettext-tools/woe32dll/gettextlib-exports.c: Fix file title.
* gettext-tools/woe32dll/gettextsrc-exports.c: Likewise.
* gettext-tools/woe32dll/gettextpo-exports.c: Likewise.
2023-06-04 Bruno Haible <bruno@clisp.org>
build: Take advantage of gcc warning options not included in -Wall.
* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER, GNULIB_MODULES_LIBINTL,
GNULIB_MODULES_LIBASPRINTF, GNULIB_MODULES_TOOLS_OTHER): Add manywarnings.
* m4/more-warnings.m4: New file.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add manywarnings.
Copy also more-warnings.m4.
* gnulib-local/modules/libxml (Makefile.am): New variable libxml_rpl_la_CFLAGS.
* libtextstyle/gnulib-local/modules/libcroco (Makefile.am): New variable
libcroco_rpl_la_CFLAGS.
* libtextstyle/gnulib-local/modules/libglib (Makefile.am): New variable
libglib_rpl_la_CFLAGS.
* libtextstyle/configure.ac: Invoke gt_MORE_WARNINGS, gl_CC_INHIBIT_WARNINGS.
* libtextstyle/lib/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
(config.h): Do the compilations with GL_CFLAG_INHIBIT_WARNINGS.
* gettext-runtime/configure.ac: Invoke gt_MORE_WARNINGS.
* gettext-runtime/src/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
* gnulib-local/modules/gettext-runtime-misc (Makefile.am): Add WARN_CFLAGS to
AM_CFLAGS.
* gettext-runtime/intl/configure.ac: Invoke gt_MORE_WARNINGS.
* gettext-runtime/intl/Makefile.am (AM_CFLAGS): Add WARN_CFLAGS.
* gnulib-local/modules/gettext-runtime-intl-misc (Makefile.am): Add WARN_CFLAGS
to AM_CFLAGS.
* gettext-runtime/libasprintf/configure.ac: Invoke gt_MORE_WARNINGS.
* gettext-runtime/libasprintf/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
* gettext-tools/configure.ac: Invoke gt_MORE_WARNINGS, gl_CC_INHIBIT_WARNINGS.
* gettext-tools/gnulib-lib/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
* gettext-tools/libgrep/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
* gettext-tools/src/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
* gettext-tools/libgettextpo/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
(config.h): Do the compilations with GL_CFLAG_INHIBIT_WARNINGS.
2023-06-04 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/src/po-error.c (_GL_NO_INLINE_ERROR): New macro.
* gettext-tools/libgettextpo/gettext-po.c (_GL_NO_INLINE_ERROR): Likewise.
2023-06-04 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "inlining failed" warnings.
* gettext-tools/src/read-stringtable.c (comment_line_end): Remove 'inline'
marker.
* gettext-tools/src/x-scheme.c (is_other_number_syntax): Likewise.
2023-06-04 Bruno Haible <bruno@clisp.org>
Enable better malloc/free checking in a few cases.
Pinpointed by gcc 13 warning:
warning: function might be candidate for attribute 'malloc' [-Wsuggest-attribute=malloc]
* gettext-tools/src/po-time.h: Include attribute.h.
(po_strftime): Mark with attribute 'malloc'.
* gettext-tools/src/write-po.h: Include attribute.h.
(make_range_description_string): Mark with attribute 'malloc'.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "potential null pointer dereference" warnings.
Pinpointed by gcc 13 warning:
warning: potential null pointer dereference [-Wnull-dereference]
* gettext-tools/src/xg-arglist-context.c: Include verify.h.
(flag_context_list_table_add): Assert that the entry is non-NULL.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "use of possibly-NULL ‘class_name’" warnings.
* gettext-tools/src/write-java.c: Include verify.h.
(msgdomain_write_java): Assume that this xasprintf call returns non-NULL.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "use of possibly-NULL ‘string’ where non-null expected" warning.
* gettext-tools/src/write-po.c (make_range_description_string): Assume that this
xasprintf call returns non-NULL.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "use of possibly-NULL ‘msgstr’" warnings.
* gettext-tools/src/write-po.c: Include verify.h.
(message_print_comment_filepos): Assume that this xasprintf call returns
non-NULL.
* gettext-tools/src/xg-message.c: Include verify.h.
(remember_a_message, remember_a_message_plural): Assume that this xasprintf call
returns non-NULL.
* gettext-tools/src/xgettext.c: Include verify.h.
(construct_header): Assume that this xasprintf call returns non-NULL.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "assignment discards ‘const’ qualifier from pointer target type" warnings.
* gettext-tools/src/msginit.c (language_team_address): New local variable
'result'.
(plural_forms): Adjust type of local variable 'dirs'.
* gettext-tools/src/xg-message.c (remember_a_message): Reduce scope and adjust
type of local variable 'msgstr'.
(remember_a_message_plural): New local variable 'msgstr1_malloc'.
* gettext-tools/src/xgettext.c (main): New local variable
'defaulted_output_dir'.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "initialization discards ‘const’ qualifier from pointer target type" warnings.
* gettext-tools/src/pos.h (struct lex_pos_ty): Change type of file_name field to
'const char *'.
* gettext-tools/src/read-catalog.c (default_destructor,
default_reset_comment_state): Cast file_name to 'char *' before free()ing it.
* gettext-tools/src/xg-arglist-parser.h (arglist_parser_remember,
arglist_parser_remember_msgctxt): Change type of file_name parameter.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_remember,
arglist_parser_remember_msgctxt): Likewise.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence -Wformat warnings regarding 'int' vs. 'unsigned int' arguments.
* gettext-tools/src/read-catalog-abstract.c (catalog_reader_parse): Use %u
instead of %d in format string.
* gettext-tools/src/read-properties.c (UTF16_VALUE): Cast result to
'unsigned short'.
* gettext-tools/src/write-java.c (write_lookup_code,
write_java2_init_statements, write_java_code): Use %u instead of %d in format
strings.
* gettext-tools/src/x-perl.c (extract_balanced): Cast enum-typed fprintf
argument to 'int'.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "may write a terminating nul past the end of the destination" warnings.
* gettext-tools/src/write-po.c (message_print_comment_filepos): Increase size of
buffer by 1.
* gettext-tools/src/xg-encoding.c (non_ascii_error_message,
non_utf8_error_message): Likewise.
* gettext-tools/src/xg-message.c (set_format_flags_from_context,
warn_format_string, remember_a_message): Likewise.
2023-06-04 Bruno Haible <bruno@clisp.org>
Silence "this statement may fall through" warnings.
* gettext-tools/src/x-lua.c: Include attribute.h.
(phase2_getc, phase3_get): Use FALLTHROUGH macro.
2023-06-03 Bruno Haible <bruno@clisp.org>
Silence "missing initializer for field" warnings.
* gettext-tools/src/xgettext.c (main, language_to_extractor): Initialize all
fields of extractor_ty.
2023-06-03 Bruno Haible <bruno@clisp.org>
Silence "... shadows a previous local" warnings.
* gettext-tools/src/its.c (its_rule_apply): Reduce scope of local variable 'i'.
(_its_collect_text_content): Rename local variable 'buffer' to 'obuffer'.
(its_rule_list_extract_nodes): Reduce scope of local variable 'n'.
(_its_get_content): Reduce scope of local variable 'i'. Rename local variable
'i' to 'j'.
* gettext-tools/src/msgmerge.c (message_merge): Reduce scope of local variables
'i', 'len', 'cnt'.
(match_domain): Reduce scope of some local variables.
* gettext-tools/src/write-mo.c (write_table): Reduce scope of local variables
'j', 'm'.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Rename local
variable 'i' to 'j'.
* gettext-tools/src/x-csharp.c (phase2_getc): Reduce scope of local variable
'c'.
* gettext-tools/src/x-javascript.c (phase2_getc): Likewise.
* gettext-tools/src/x-python.c (phase2_getc): Likewise.
* gettext-tools/src/x-lisp.c (read_object): Rename some uses of local variable
'c' to 'dmc'.
* gettext-tools/src/x-elisp.c (read_object): Rename some uses of local variable
'c' to 'ch' or 'dmc'.
* gettext-tools/src/x-librep.c (read_object): Likewise.
* gettext-tools/src/x-scheme.c (read_object): Likewise.
* gettext-tools/src/x-perl.c (extract_variable): Reduce scope of local variable
'c'.
* gettext-tools/src/x-vala.c (phase3_get): Reduce scope of local variable 'c2'.
2023-06-03 Bruno Haible <bruno@clisp.org>
Silence "... shadows a parameter" warning.
* gettext-tools/src/msgl-fsearch.c (message_fuzzy_index_alloc): Rename local
variable mlp.
2023-06-03 Bruno Haible <bruno@clisp.org>
Code perfectionism.
* gettext-tools/src/x-javascript.c (max): Remove unused macro.
(phase2_ungetc): Fix comment.
2023-06-03 Bruno Haible <bruno@clisp.org>
Code perfectionism.
* gettext-tools/src/write-po.c (putc): Remove unused macro.
2023-06-03 Bruno Haible <bruno@clisp.org>
Code perfectionism.
* gettext-tools/src/msgfmt.c (SIZEOF): Remove unused macro.
* gettext-tools/src/read-desktop.c (SIZEOF): Likewise.
* gettext-tools/src/x-desktop.c (SIZEOF): Likewise.
2023-06-03 Bruno Haible <bruno@clisp.org>
Code perfectionism.
* gettext-tools/src/format-lisp.c (VERIFY_LIST): Remove first, unused definition
of this macro.
* gettext-tools/src/format-scheme.c (VERIFY_LIST): Likewise.
2023-06-03 Bruno Haible <bruno@clisp.org>
Code perfectionism.
* gettext-tools/src/write-po.c (is_stylable): Define in both cases.
2023-06-03 Bruno Haible <bruno@clisp.org>
intl: Silence warnings "no previous prototype" and "nested extern declaration".
* gettext-runtime/intl/gettextP.h (_nl_log_untranslated): New declaration.
* gettext-runtime/intl/dcigettext.c: Remove nested declaration of _nl_log_untranslated.
* gettext-runtime/intl/log.c: Include gettextP.h.
2023-06-03 Bruno Haible <bruno@clisp.org>
intl: Silence a "no previous prototype" warning.
* gettext-runtime/intl/langprefs.c: Include gettextP.h.
2023-06-03 Bruno Haible <bruno@clisp.org>
intl: Improve declaration of 'struct binding'.
* autogen.sh (GNULIB_MODULES_LIBINTL): Add flexmember.
* gettext-runtime/intl/gettextP.h (struct binding): Use FLEXIBLE_ARRAY_MEMBER
instead of ZERO.
* gettext-runtime/intl/bindtextdom.c: Include flexmember.h.
(offsetof): Remove fallback definition.
(set_binding_values): Use FLEXNSIZEOF.
2023-06-03 Bruno Haible <bruno@clisp.org>
libtextstyle: Silence a "missing initializer for field" warning.
* libtextstyle/lib/color.c (print_color_test): Fill the r, g, b values of all
colors[] elements.
2023-06-03 Bruno Haible <bruno@clisp.org>
libtextstyle: Silence a "no previous prototype" warning.
* libtextstyle/gnulib-local/lib/memory-ostream.oo.c (memory_ostream::contents):
Mark as static.
2023-06-03 Bruno Haible <bruno@clisp.org>
Fix support for Qt4 plural forms format strings.
Pinpointed by gcc 13 warning:
warning: missing initializer for field ‘is_format3’ of ‘flag_context_ty’ [-Wmissing-field-initializers]
* gettext-tools/src/xg-arglist-context.c (null_context, passthrough_context,
passthrough_context_circular_list): Initialize also the fields is_format3,
pass_format3.
2023-06-03 Bruno Haible <bruno@clisp.org>
xgettext: Fix a portability problem: Don't assume anything about the value of EOF.
Pinpointed by gcc 13 warning:
warning: macro "P7_EOF" is not used [-Wunused-macros]
* gettext-tools/src/x-c.c (P7_STRING_END): Remove macro.
(phase7_getc): Transform EOF to P7_EOF.
(phase5_get): Test for P7_EOF, not EOF.
* gettext-tools/src/x-vala.c (P7_STRING_END): Remove macro.
(phase7_getc): Transform EOF to P7_EOF.
(phase3_get): Test for P7_EOF, not EOF.
2023-06-03 Bruno Haible <bruno@clisp.org>
libgrep: Don't crash upon out-of-memory.
Pinpointed by gcc 13 warning:
warning: use of possibly-NULL ‘mb_properties’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument]
* gettext-tools/libgrep/m-fgrep.c (check_multibyte_string): Check the malloc()
return value.
2023-06-03 Bruno Haible <bruno@clisp.org>
libtextstyle: Don't crash if xgethostname() returns NULL.
Pinpointed by gcc 13 warning:
warning: dereference of possibly-NULL ‘p’ [CWE-690] [-Wanalyzer-possible-null-dereference]
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): If
xgethostname() returns NULL, use a dummy hash code.
2023-06-03 Bruno Haible <bruno@clisp.org>
libxml: Fix possible null pointer access (regression 2023-05-26).
Pinpointed by gcc 13 warning:
warning: dereference of NULL ‘clone’ [CWE-476] [-Wanalyzer-null-dereference]
* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Assign clone from
cloneAttr.
2023-05-29 Bruno Haible <bruno@clisp.org>
libxml: Fix compilation error with gcc < 10 (regression 2023-05-26).
* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Add braces.
2023-05-28 Bruno Haible <bruno@clisp.org>
format-c: Recognize size specifiers w8, w16, w32, w64, wf8, wf16, wf32, wf64.
* gettext-tools/src/format-c.c (INVALID_SIZE_SPECIFIER): New macro.
* gettext-tools/src/format-c-parse.h (format_parse_entrails): Accept only one
size specifier, not a sequence of size specifiers. Accept "wN" and "wfN",
where N = 8, 16, 32, 64. Reject integer size specifiers for floating-point
directives. Reject integer size specifiers other than "l" for %c and %s.
* gettext-tools/tests/format-c-1: Add more test cases.
* gettext-tools/tests/format-c-2: Likewise.
* NEWS: Mention it.
2023-05-28 Bruno Haible <bruno@clisp.org>
c-format: Recognize the %b format directive.
* gettext-tools/src/format-c-parse.h (format_parse_entrails): Recognize %b as
a directive that takes an unsigned integer argument.
* gettext-tools/tests/format-c-1: Add test of %b.
* gettext-tools/tests/format-c-2: Add type compatibility test for %b.
* NEWS: Mention it.
2023-05-28 Bruno Haible <bruno@clisp.org>
xgettext: Support digit separators as in ISO C 23.
* gettext-tools/src/x-c.c (phase5_get): Recognize digit separators.
* gettext-tools/tests/xgettext-c-2: Add more test cases of integer and
floating-point literals.
* NEWS: Mention it.
2023-05-27 Bruno Haible <bruno@clisp.org>
intl: Support bison ≥ 3.7 better.
* gettext-runtime/intl/Makefile.am (generate-plural): Renamed from
$(srcdir)/plural.c.
(plural.c, plural.h): New parallel-safe rules.
(BUILT_SOURCES): Add plural.c, plural.h.
2023-05-27 Bruno Haible <bruno@clisp.org>
build: Make bison rules more reliable.
* gettext-runtime/intl/Makefile.am ($(srcdir)/plural.c): Fix sed expressions.
* gettext-tools/src/Makefile.am (po-gram-gen.c, cldr-plural.c): Likewise.
2023-05-27 Bruno Haible <bruno@clisp.org>
Silence a gcc warning "array subscript ... is partly outside array bounds".
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add flexmember.
* gettext-tools/src/xg-arglist-parser.h (struct arglist_parser): Use
FLEXIBLE_ARRAY_MEMBER.
* gettext-tools/src/xg-arglist-parser.c: Include flexmember.h.
(arglist_parser_alloc, arglist_parser_clone): Use FLEXNSIZEOF instead of
hand-made size computations.
2023-05-27 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-05-27 Bruno Haible <bruno@clisp.org>
libgrep: Optimize and silence gcc warning.
* gettext-tools/libgrep/m-fgrep.c (Fexecute): Set mb_properties to NULL in a
unibyte locale.
2023-05-27 Bruno Haible <bruno@clisp.org>
libgrep: Modernize.
* gettext-tools/libgrep/m-fgrep.c: Include <wchar.h> unconditionally. Assume
mbrlen function, by virtue of the gnulib module 'mbrlen'. Don't include
<wctype.h>. Assume ANSI C.
2023-05-27 Bruno Haible <bruno@clisp.org>
Silence a gcc warning.
* gettext-tools/src/write-po.c (memset_small): Use
'#pragma GCC diagnostic ignored' to silence a bogus gcc warning.
2023-05-27 Bruno Haible <bruno@clisp.org>
Silence a gcc warning.
* gettext-tools/src/format-scheme.c (II): Mark as possibly unused.
2023-05-27 Bruno Haible <bruno@clisp.org>
libxml: Silence several gcc warnings.
* gnulib-local/lib/libxml/SAX2.c (xmlNsErrMsg): Mark as possibly unused.
(xmlSAX2AttributeDecl, xmlSAX2ElementDecl, xmlSAX2NotationDecl): Mark a local
variable as possibly unused.
* gnulib-local/lib/libxml/encoding.c (xmlCharEncCloseFunc): Likewise.
* gnulib-local/lib/libxml/trionan.c (compute_minus_zerod, minus_zerod): Mark as
possibly unused.
* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Use a differently typed
variable cloneAttr.
2023-05-27 Bruno Haible <bruno@clisp.org>
intl: Silence a gcc warning.
* gettext-runtime/intl/localealias.c (read_alias_file): Silence a bogus
-Wuse-after-free warning.
2023-05-27 Bruno Haible <bruno@clisp.org>
build: Improve autoconf quoting.
* gettext-runtime/intl/configure.ac: Fix quoting of AS_HELP_STRING argument.
* gettext-tools/configure.ac: Likewise.
2023-05-21 Bruno Haible <bruno@clisp.org>
Support creating shared libraries on Hurd/x86_64.
Patch from
<https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html>.
* m4/libtool.m4 (_LT_ENABLE_LOCK): Treat Hurd/x86_64 like
Linux/x86_64.
2023-05-03 Bruno Haible <bruno@clisp.org>
doc: Clarify when extracted comments get extracted.
Fixes the fix from <https://savannah.gnu.org/bugs/index.php?42376>.
Prompted by <https://savannah.gnu.org/bugs/index.php?64136>.
* gettext-tools/doc/xgettext.texi: Clarify that it's not blank lines, but lines
with tokens, that prevent the extraction of a preceding comment block.
2023-04-01 Bruno Haible <bruno@clisp.org>
hostname: Use more modern network APIs.
Reported by Jens Petersen <petersen@redhat.com>
at <https://savannah.gnu.org/bugs/?63983>.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add getaddrinfo.
* gettext-tools/src/hostname.c (HAVE_GETADDRINFO): Define to 1.
Do the #includes for gethostname() after those for getaddrinfo().
(ipv4_is_linklocal, ipv6_is_linklocal): New functions.
(print_hostname): For long_format and ip_format, prefer getaddrinfo over
gethostbyname.
* gettext-tools/src/Makefile.am (hostname_LDADD): New variable.
2023-04-01 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-04-01 Bruno Haible <bruno@clisp.org>
xgettext: In language Tcl, fix the \u, \U handling.
* gettext-tools/src/x-tcl.c (do_getc_escaped_low_surrogate): Actually store the
read characters in buf.
2023-03-30 Bruno Haible <bruno@clisp.org>
Use string-desc module from gnulib.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add string-desc. Remove memmem,
memrchr.
(GNULIB_MODULES_LIBGETTEXTPO): Likewise.
* gettext-tools/src/str-desc.h: Remove file.
* gettext-tools/src/str-desc.c: Remove file.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/msgl-ascii.h: Include string-desc.h instead of str-desc.h.
Use string_desc_t instead of string_desc_ty.
* gettext-tools/src/msgl-ascii.c: Use string_desc_t instead of string_desc_ty.
* gettext-tools/src/msgl-iconv.h: Include string-desc.h instead of str-desc.h.
Use string_desc_t instead of string_desc_ty.
* gettext-tools/src/msgl-iconv.c: Include string-desc.h instead of str-desc.h.
Use string_desc_t instead of string_desc_ty.
* gettext-tools/src/xg-encoding.h: Include string-desc.h instead of str-desc.h.
Use string_desc_t instead of string_desc_ty.
* gettext-tools/src/xg-encoding.c (string_desc_from_current_source_encoding):
Use string_desc_t instead of string_desc_ty.
* gettext-tools/src/x-perl.c: Include string-desc.h instead of str-desc.h.
(extract_quotelike_pass1, extract_quotelike_pass1_utf8, extract_quotelike,
extract_triple_quotelike, interpolate_keywords): Use string_desc_t instead of
string_desc_ty.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove str-desc.h.
(libgettextsrc_la_SOURCES): Remove str-desc.c.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Remove
str-desc.c.
2023-03-30 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-03-17 Bruno Haible <bruno@clisp.org>
intl: Simplify use of vasnprintf from Gnulib.
* autogen.sh (GNULIB_MODULES_LIBINTL): Use vasnprintf-posix instead of vasnprintf.
* gettext-runtime/intl/vasnprintf.h: Remove file, moved to gnulib.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Remove vasnprintf.h.
(printf.lo): Simplify dependencies accordingly.
2023-03-17 Bruno Haible <bruno@clisp.org>
intl: Fix bug in the exported *wprintf functions.
* autogen.sh (GNULIB_MODULES_LIBINTL): Add vasnwprintf-posix.
* gettext-runtime/intl/configure.ac: Hide the symbols from the gnulib modules
isnand-nolibm, isnanl-nolibm, printf-frexp, printf-frexpl, signbit, vasnwprintf,
frexp-nolibm, frexpl-nolibm.
* gettext-runtime/intl/printf.c: Don't instantiate the vasnwprintf code here.
* gettext-runtime/intl/wprintf-parse.h: Remove file, moved to gnulib.
* gettext-runtime/intl/vasnwprintf.h: Remove file, moved to gnulib.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Remove wprintf-parse.h,
vasnwprintf.h.
(printf.lo): Simplify dependencies accordingly.
2023-03-17 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-03-17 Bruno Haible <bruno@clisp.org>
build: Fix link error on native Windows (regression 2023-03-15).
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
memmem and memrchr, needed by str-desc.c.
2023-03-16 Bruno Haible <bruno@clisp.org>
doc: Add a clarification.
Reported by Christian Ohm <chr.ohm@gmx.net>
in <https://savannah.gnu.org/bugs/?36084>.
* gettext-tools/doc/gettext.texi (c-format Flag): Clarify that an xgettext:...
comment applies only to the next string.
2023-03-15 Bruno Haible <bruno@clisp.org>
xgettext: In language Perl, avoid a crash.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_clone): Clone the
msgid_pos correctly.
* gettext-tools/tests/xgettext-perl-10: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-15 Bruno Haible <bruno@clisp.org>
xgettext: In language Perl, avoid a crash when NUL is used as delimiter.
* gettext-tools/src/str-desc.h: New file.
* gettext-tools/src/str-desc.c: New file.
* gettext-tools/src/FILES: Describe them.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add str-desc.h.
(libgettextsrc_la_SOURCES): Add str-desc.c.
* gettext-tools/src/msgl-ascii.h: Include str-desc.h.
(is_ascii_string_desc): New declaration.
* gettext-tools/src/msgl-ascii.c (is_ascii_string_desc): New function.
* gettext-tools/src/msgl-iconv.h: Include str-desc.h.
(convert_string_desc_directly): New declaration.
* gettext-tools/src/msgl-iconv.c: Include str-desc.h.
(convert_string_desc_directly): New function.
* gettext-tools/src/xg-encoding.h: Include str-desc.h.
(string_desc_from_current_source_encoding): New declaration.
* gettext-tools/src/xg-encoding.c (string_desc_from_current_source_encoding):
New function.
* gettext-tools/src/x-perl.c: Include str-desc.h, c-ctype.h.
(extract_quotelike_pass1): Return a string_desc_ty instead of a 'char *'.
(extract_quotelike_pass1_utf8): Likewise.
(extract_quotelike, extract_triple_quotelike): Update.
(interpolate_keywords): Take a string_desc_ty instead of a 'const char *' as
argument.
(x_perl_prelex): Update.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
str-desc.c.
* gettext-tools/tests/xgettext-perl-9: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
po: In the Makefiles, enable --quiet by default when possible.
This is possible because msgmerge became faster
- through an index-based fuzzy search (msgl-fsearch.c) in 2006,
- through OpenMP parallelization in 2006,
- through processor speedups over the years.
The only case where msgmerge is still slow is when a compendium is in use.
Suggested by Marcus Müller <marcus_savannah@hostalia.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-03/msg00034.html>.
* gettext-runtime/po/Makefile.in.in ($(POFILES), update-po): If msgmerge has
version ≥ 0.11, pass option --quiet.
* gettext-runtime/po/Makevars (MSGMERGE_OPTIONS): Don't suggest --quiet any
more.
* gettext-tools/po/Makevars (MSGMERGE_OPTIONS): Likewise.
* gettext-tools/examples/hello-*/po/Makevars (MSGMERGE_OPTIONS): Likewise.
* gettext-tools/examples/hello-*/po/Makefile.am ($(POFILES), update-po): If
msgmerge has version ≥ 0.11, pass option --quiet.
(MSGMERGE_OPTIONS): Don't suggest --quiet any more.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.
* gettext-tools/examples/po/Makefile.am ($(POFILES), update-po): Pass option
--quiet to msgmerge.
(MSGMERGE_OPTIONS): Don't suggest --quiet any more.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language Tcl, support \x, \u, \U escapes as specified in Tcl 8.6.
* gettext-tools/src/x-tcl.c: Update comments.
(phase1_pushback): Increase size to 5.
(do_getc_escaped): For \x, parse only up to 2 hexadecimal characters.
Handle '\U'.
(do_getc_escaped_low_surrogate): New function.
(accumulate_word): After reading a high surrogate, see if it is followed by a
low surrogate.
* gettext-tools/tests/xgettext-tcl-4: Change expected outcome for \x. Add test
cases for \u with surrogates and for \U.
* gettext-tools/tests/xgettext-tcl-5: Add more test cases.
* NEWS: Mention the change.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language Tcl, avoid a crash at surrogate character escapes.
* gettext-tools/src/x-tcl.c (accumulate_word): Warn when seeing a surrogate
character, instead of aborting.
* gettext-tools/tests/xgettext-tcl-5: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language Shell, avoid a crash.
* gettext-tools/src/x-sh.c (phase1_pushback): Increase size by 1.
* gettext-tools/tests/xgettext-sh-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
lisp-format, scheme-format: Fix a loop transformation.
* gettext-tools/src/format-lisp.c (rotate_loop): Assign the new
list->repeated.count.
* gettext-tools/src/format-scheme.c (rotate_loop): Likewise.
* gettext-tools/tests/xgettext-lisp-6: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
lisp-format: Fix a crash in format string that contains "~@?" before "~V".
* gettext-tools/src/format-lisp.c (nocheck_params): Don't call
add_req_type_constraint if position < 0.
* gettext-tools/tests/xgettext-lisp-5: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
lisp-format, scheme-format: Fix a memory overrun.
* gettext-tools/src/format-lisp.c (make_repeated_list): Fix upper bound of a
loop.
* gettext-tools/src/format-scheme.c (make_repeated_list): Likewise.
* gettext-tools/tests/xgettext-lisp-4: New file.
* gettext-tools/tests/xgettext-scheme-6: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-14 Bruno Haible <bruno@clisp.org>
lisp-format, scheme-format: Improve run-time checks.
* gettext-tools/src/format-lisp.c (add_type_constraint,
add_listtype_constraint): Always check the result.
* gettext-tools/src/format-scheme.c (add_type_constraint,
add_listtype_constraint): Likewise.
2023-03-14 Bruno Haible <bruno@clisp.org>
Fix lisp-format, scheme-format: Add a loop normalization.
* gettext-tools/src/format-lisp.c (normalize_outmost_list): Algorithmic fixes.
* gettext-tools/src/format-scheme.c (normalize_outmost_list): Likewise.
* gettext-tools/tests/format-lisp-2: Add another test.
* gettext-tools/tests/format-scheme-2: Likewise.
2023-03-14 Bruno Haible <bruno@clisp.org>
Fix lisp-format, scheme-format: Fix a memory corruption bug.
* gettext-tools/src/format-lisp.c (make_repeated_list): Access the correct
array.
* gettext-tools/src/format-scheme.c (make_repeated_list): Likewise.
* gettext-tools/tests/xgettext-lisp-3: New file.
* gettext-tools/tests/xgettext-scheme-5: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language JavaScript, avoid a crash.
This avoids a crash
"Assertion `phase2_pushback_length + j < SIZEOF (phase2_pushback)' failed.".
* gettext-tools/src/x-javascript.c (phase2_pushback): Increase size by 1.
* gettext-tools/tests/xgettext-javascript-12: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language JavaScript, avoid a crash at an XML comment, CDATA, or PI.
* gettext-tools/src/x-javascript.c (phase5_scan_xml_markup): Return int instead
of bool.
(phase5_get): Ignore XML markup parsed by phase5_scan_xml_markup.
* gettext-tools/tests/xgettext-javascript-9: New file.
* gettext-tools/tests/xgettext-javascript-10: New file.
* gettext-tools/tests/xgettext-javascript-11: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language JavaScript, avoid a crash for some non-ASCII input.
* gettext-tools/src/xg-encoding.c (non_ascii_error_message,
non_utf8_error_message): Handle all possible lexical_context_ty values.
* gettext-tools/tests/xgettext-javascript-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language C#, avoid a crash due to a too small buffer.
* gettext-tools/src/x-csharp.c (phase3_pushback): Increase size to 10.
* gettext-tools/tests/xgettext-csharp-9: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
Fix python-brace-format: Fix placement of FMTDIR_ERROR marker.
* gettext-tools/src/format-python-brace.c (parse_directive): Simplify. Fix
placement of FMTDIR_ERROR marker and improve error message in one case.
* gettext-tools/tests/format-python-brace-1: Add more test cases.
2023-03-14 Bruno Haible <bruno@clisp.org>
Fix python-brace-format: Disallow empty precision.
* gettext-tools/src/format-python-brace.c (parse_directive): After '.', expect
at least one digit.
* gettext-tools/tests/format-python-brace-1: Add a test case.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: Avoid a crash due to a python-brace-format string with a NUL byte.
* gettext-tools/src/format-python-brace.c: Improve comments.
(parse_directive): Don't read past the string end if c1 is NUL.
* gettext-tools/tests/xgettext-python-6: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: Fix abort when outputting a msgid that has an invalid UTF-8 character.
* gettext-tools/src/xg-encoding.c: Include unistr.h.
(non_utf8_error_message): New function.
(from_current_source_encoding): When xgettext_current_source_encoding is
"UTF-8", check that the string is well-formed UTF-8.
* gettext-tools/tests/xgettext-c-8: New file.
* gettext-tools/tests/xgettext-python-5: New file.
* gettext-tools/tests/xgettext-elisp-3: New file.
* gettext-tools/tests/xgettext-librep-3: New file.
* gettext-tools/tests/xgettext-awk-3: New file.
* gettext-tools/tests/xgettext-lua-3: New file.
* gettext-tools/tests/xgettext-vala-4: New file.
* gettext-tools/tests/xgettext-php-5: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-14 Bruno Haible <bruno@clisp.org>
Simplify code.
* gettext-tools/src/format-python-brace.c (parse_upto): Remove redundant
declaration.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language Vala, report out-of-range hexadecimal escapes.
This avoids a later crash
"Assertion `UNICODE_VALUE (c) >= 0 && UNICODE_VALUE (c) < 0x110000' failed."
* gettext-tools/src/x-vala.c (phase7_getc): When the value of a hexadecimal
escape sequence overflows, warn and use the last value before it overflowed.
* gettext-tools/tests/xgettext-vala-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language C, report out-of-range hexadecimal escapes.
This avoids a later crash
"Assertion `UNICODE_VALUE (c) >= 0 && UNICODE_VALUE (c) < 0x110000' failed."
* gettext-tools/src/x-c.c (phase7_getc): When the value of a hexadecimal escape
sequence overflows, warn and use the last value before it overflowed.
* gettext-tools/tests/xgettext-c-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2023-03-14 Bruno Haible <bruno@clisp.org>
xgettext: In language PO, handle non-ASCII non-UTF-8 input files correctly.
* gettext-tools/src/x-po.c: Include msgl-iconv.h, msgl-ascii.h, po-charset.h.
(extract): If a header charset is present, convert the messages to UTF-8;
otherwise verify that they are all ASCII.
* gettext-tools/tests/xgettext-po-3: New file.
* gettext-tools/tests/xgettext-po-4: New file.
* gettext-tools/tests/testdata/xg-po-3.po: New file.
* gettext-tools/tests/testdata/xg-po-4.po: New file.
* gettext-tools/tests/Makefile.am (TESTS, EXTRA_DIST): Add them.
* NEWS: Mention the change.
2023-03-10 Bruno Haible <bruno@clisp.org>
po-mode: Fix incompatibility with the forthcoming Emacs 29.
Patch by Takesi Ayanokoji <ayanokoji.takesi@gmail.com>.
* gettext-tools/emacs/po-mode.el (po-font-lock-keywords): Use
font-lock-constant-face, introduced in Emacs 20.3, instead of the
long-deprecated font-lock-reference-face.
* NEWS: Mention it.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language YCP, avoid stack overflow.
* gettext-tools/src/x-ycp.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(extract_parenthesized): Increase and check nesting_depth before calling
extract_parenthesized recursively.
(extract_ycp): Initialize nesting_depth.
* gettext-tools/tests/xgettext-ycp-stackovfl-1: New file.
* gettext-tools/tests/xgettext-ycp-stackovfl-2: New file.
* gettext-tools/tests/xgettext-ycp-stackovfl-3: New file.
* gettext-tools/tests/xgettext-ycp-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language PHP, avoid stack overflow.
* gettext-tools/src/x-php.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, bracket_nesting_depth): New variables.
(extract_balanced): Increase and check paren_nesting_depth or
bracket_nesting_depth before calling extract_balanced recursively.
(extract_python): Initialize paren_nesting_depth and bracket_nesting_depth.
* gettext-tools/tests/xgettext-php-stackovfl-1: New file.
* gettext-tools/tests/xgettext-php-stackovfl-2: New file.
* gettext-tools/tests/xgettext-php-stackovfl-3: New file.
* gettext-tools/tests/xgettext-php-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language Perl, avoid stack overflow.
* gettext-tools/src/x-perl.c (MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(interpolate_keywords): Increase and check nesting_depth. Revert it before
returning.
(x_perl_lex): Likewise.
(extract_balanced): Increase and check nesting_depth before calling
extract_balanced recursively.
(extract_perl): Initialize nesting_depth.
* gettext-tools/tests/xgettext-perl-stackovfl-1: New file.
* gettext-tools/tests/xgettext-perl-stackovfl-2: New file.
* gettext-tools/tests/xgettext-perl-stackovfl-3: New file.
* gettext-tools/tests/xgettext-perl-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language Tcl, avoid stack overflow.
* gettext-tools/src/x-tcl.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(bracket_nesting_depth, brace_nesting_depth): New variables.
(accumulate_word, read_word): Increase and check bracket_nesting_depth or
brace_nesting_depth before calling read_command_list recursively.
(extract_tcl): Initialize bracket_nesting_depth and brace_nesting_depth.
* gettext-tools/tests/xgettext-tcl-stackovfl-1: New file.
* gettext-tools/tests/xgettext-tcl-stackovfl-2: New file.
* gettext-tools/tests/xgettext-tcl-stackovfl-3: New file.
* gettext-tools/tests/xgettext-tcl-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language Vala, avoid stack overflow.
* gettext-tools/src/x-vala.c (MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(extract_balanced): Increase and check nesting_depth before calling
extract_balanced recursively.
(extract_vala): Initialize nesting_depth.
* gettext-tools/tests/xgettext-vala-stackovfl-1: New file.
* gettext-tools/tests/xgettext-vala-stackovfl-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language Lua, avoid stack overflow.
* gettext-tools/src/x-lua.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, bracket_nesting_depth): New variables.
(extract_balanced): Increase and check paren_nesting_depth or
bracket_nesting_depth before calling extract_balanced recursively.
(extract_lua): Initialize paren_nesting_depth and bracket_nesting_depth.
* gettext-tools/tests/xgettext-lua-stackovfl-1: New file.
* gettext-tools/tests/xgettext-lua-stackovfl-2: New file.
* gettext-tools/tests/xgettext-lua-stackovfl-3: New file.
* gettext-tools/tests/xgettext-lua-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language awk, avoid stack overflow.
* gettext-tools/src/x-awk.c (MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(extract_parenthesized): Increase and check nesting_depth before calling
extract_parenthesized recursively.
(extract_awk): Initialize nesting_depth.
* gettext-tools/tests/xgettext-awk-stackovfl-1: New file.
* gettext-tools/tests/xgettext-awk-stackovfl-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language Shell, avoid stack overflow.
* gettext-tools/src/x-sh.c (MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(read_word): Increase nesting_depth before calling read_command_list
recursively.
(read_command_list): Check nesting_depth.
(extract_sh): Initialize nesting_depth.
* gettext-tools/tests/xgettext-shell-stackovfl-1: New file.
* gettext-tools/tests/xgettext-shell-stackovfl-2: New file.
* gettext-tools/tests/xgettext-shell-stackovfl-3: New file.
* gettext-tools/tests/xgettext-shell-stackovfl-4: New file.
* gettext-tools/tests/xgettext-shell-stackovfl-5: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language librep, avoid stack overflow.
* gettext-tools/src/x-librep.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(read_object): Increase nesting_depth before calling read_object recursively.
Check nesting_depth.
(extract_librep): Initialize nesting_depth.
* gettext-tools/tests/xgettext-librep-stackovfl-1: New file.
* gettext-tools/tests/xgettext-librep-stackovfl-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language EmacsLisp, avoid stack overflow, part 2.
* gettext-tools/src/x-elisp.c (escape_nesting_depth): New variable.
(do_getc_escaped): Increase escape_nesting_depth before calling do_getc_escaped
recursively. Check escape_nesting_depth.
(extract_elisp): Initialize escape_nesting_depth.
* gettext-tools/tests/xgettext-elisp-stackovfl-3: New file.
* gettext-tools/tests/xgettext-elisp-stackovfl-4: New file.
* gettext-tools/tests/testdata/xg-el-so-3.el: New file.
* gettext-tools/tests/testdata/xg-el-so-4.el: New file.
* gettext-tools/tests/Makefile.am (TESTS, EXTRA_DIST): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language EmacsLisp, avoid stack overflow, part 1.
* gettext-tools/src/x-elisp.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(read_object): Increase nesting_depth before calling read_object recursively.
Check nesting_depth.
(extract_elisp): Initialize nesting_depth.
* gettext-tools/tests/xgettext-elisp-stackovfl-1: New file.
* gettext-tools/tests/xgettext-elisp-stackovfl-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language Lisp, avoid stack overflow.
* gettext-tools/src/x-lisp.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(read_object): Increase nesting_depth before calling read_object recursively.
Check nesting_depth.
(extract_lisp): Initialize nesting_depth.
* gettext-tools/tests/xgettext-lisp-stackovfl-1: New file.
* gettext-tools/tests/xgettext-lisp-stackovfl-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-09 Bruno Haible <bruno@clisp.org>
xgettext: In language Scheme, avoid stack overflow.
* gettext-tools/src/x-scheme.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(read_object): Increase nesting_depth before calling read_object recursively.
Check nesting_depth.
(extract_scheme): Initialize nesting_depth.
* gettext-tools/tests/xgettext-scheme-stackovfl-1: New file.
* gettext-tools/tests/xgettext-scheme-stackovfl-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-07 Bruno Haible <bruno@clisp.org>
xgettext: In language JavaScript, avoid stack overflow.
* gettext-tools/src/x-javascript.c (MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, bracket_nesting_depth, brace_nesting_depth,
xml_element_nesting_depth): New variables.
(extract_balanced): Increase and check paren_nesting_depth or
bracket_nesting_depth or brace_nesting_depth or xml_element_nesting_depth before
calling extract_balanced recursively.
(extract_javascript): Initialize paren_nesting_depth, bracket_nesting_depth,
brace_nesting_depth, xml_element_nesting_depth.
* gettext-tools/tests/xgettext-javascript-stackovfl-1: New file.
* gettext-tools/tests/xgettext-javascript-stackovfl-2: New file.
* gettext-tools/tests/xgettext-javascript-stackovfl-3: New file.
* gettext-tools/tests/xgettext-javascript-stackovfl-4: New file.
* gettext-tools/tests/xgettext-javascript-stackovfl-5: New file.
* gettext-tools/tests/xgettext-javascript-stackovfl-6: New file.
* gettext-tools/tests/xgettext-javascript-stackovfl-7: New file.
* gettext-tools/tests/xgettext-javascript-stackovfl-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-07 Bruno Haible <bruno@clisp.org>
xgettext: In language C#, avoid stack overflow.
* gettext-tools/src/x-csharp.c (MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, brace_nesting_depth): New variables.
(extract_parenthesized): Increase and check paren_nesting_depth or
brace_nesting_depth before calling extract_parenthesized recursively.
(extract_csharp): Initialize paren_nesting_depth and brace_nesting_depth.
* gettext-tools/tests/xgettext-csharp-stackovfl-1: New file.
* gettext-tools/tests/xgettext-csharp-stackovfl-2: New file.
* gettext-tools/tests/xgettext-csharp-stackovfl-3: New file.
* gettext-tools/tests/xgettext-csharp-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-07 Bruno Haible <bruno@clisp.org>
xgettext: In language Java, avoid stack overflow.
* gettext-tools/src/x-java.c (MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, brace_nesting_depth): New variables.
(extract_parenthesized): Increase and check paren_nesting_depth or
brace_nesting_depth before calling extract_parenthesized recursively.
(extract_java): Initialize paren_nesting_depth and brace_nesting_depth.
* gettext-tools/tests/xgettext-java-stackovfl-1: New file.
* gettext-tools/tests/xgettext-java-stackovfl-2: New file.
* gettext-tools/tests/xgettext-java-stackovfl-3: New file.
* gettext-tools/tests/xgettext-java-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-07 Bruno Haible <bruno@clisp.org>
xgettext: In language Python, avoid stack overflow.
* gettext-tools/src/x-python.c (MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, bracket_nesting_depth): New variables.
(extract_balanced): Increase and check paren_nesting_depth or
bracket_nesting_depth before calling extract_balanced recursively.
(extract_python): Initialize paren_nesting_depth and bracket_nesting_depth.
* gettext-tools/tests/xgettext-python-stackovfl-1: New file.
* gettext-tools/tests/xgettext-python-stackovfl-2: New file.
* gettext-tools/tests/xgettext-python-stackovfl-3: New file.
* gettext-tools/tests/xgettext-python-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-06 Bruno Haible <bruno@clisp.org>
xgettext: In language C, avoid stack overflow.
* gettext-tools/src/x-c.c (MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(extract_parenthesized): Increase and check nesting_depth before calling
extract_parenthesized recursively.
(extract_whole_file): Initialize nesting_depth.
* gettext-tools/tests/xgettext-c-stackovfl-1: New file.
* gettext-tools/tests/xgettext-c-stackovfl-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
2023-03-06 Bruno Haible <bruno@clisp.org>
intl: Fix many warnings like "warning: "glthread_lock_init" redefined".
* gettext-runtime/intl/configure.ac: Move the renamings to the bottom of the
config.h file. Make the glthread*_lock* renamings conditional so that they
don't occur when these symbols are macros.
2023-03-05 Daiki Ueno <ueno@gnu.org>
Fix potential NULL pointer dereference in ITS code
Reported by Shashank in: <https://savannah.gnu.org/bugs/?63529> and
<https://savannah.gnu.org/bugs/?63530>.
* gettext-tools/src/locating-rule.c (get_attribute): Check return
value of xmlGetProp.
(document_locating_rule_match): Check return value of
xmlDocGetRootElement.
(locating_rule_list_add_from_file): Likewise.
2023-02-26 Bruno Haible <bruno@clisp.org>
Distribute the source code of csharpexec-test.exe.
Reported by Bastien Roucariès <rouca@debian.org>
via Santiago Vila <sanvila@debian.org>
in <https://lists.gnu.org/archive/html/bug-gettext/2023-02/msg00016.html>.
* gettext-tools/m4/csharpexec-test.cs: New file, extracted from pre-2018
versions of gnulib/m4/csharpcomp.m4.
* gettext-tools/m4/Makefile.am (EXTRA_DIST): Add it.
2023-02-19 Bruno Haible <bruno@clisp.org>
Fix a comment.
* gettext-runtime/intl/printf.c: Fix a typo in comment.
2023-02-19 Bruno Haible <bruno@clisp.org>
AM_GNU_GETTEXT: Use new build-to-host.m4 from gnulib.
* autogen.sh: Copy m4/build-to-host.m4 from gnulib.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Add build-to-host.m4.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Simplify and fix bug on
Cygwin, by invoking gl_BUILD_TO_HOST.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Add build-to-host.m4.
* gettext-tools/misc/gettextize.in (m4filelist): Add build-to-host.m4.
* Makefile.am (distcheck-hook): Check also build-to-host.m4.
* gettext-tools/doc/gettext.texi (aclocal): Mention also build-to-host.m4.
* PACKAGING: Mention build-to-host.m4.
2023-02-18 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-02-17 Bruno Haible <bruno@clisp.org>
Improve 'git diff' of *.texi and *.m4 files.
2023-02-13 Bruno Haible <bruno@clisp.org>
libtextstyle: Turn off hyperlinks on the Solaris console.
The Solaris 11 console prints garbage when a hyperlink is output.
Tested on Solaris 11.4/x86 and Solaris 11 OmniOS/x86.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (should_enable_hyperlinks):
Return false for the Solaris console.
2023-02-13 Bruno Haible <bruno@clisp.org>
build: Fix libgettexpo linking.
* gettext-tools/libgettextpo/Makefile.am: Pass $(LTLIBUNISTRING) in
libgettextpo_la_LDFLAGS, not libgettextpo_la_LIBADD. This is needed per the
documentation
https://www.gnu.org/software/automake/manual/html_node/Libtool-Flags.html, and
also for consistency with how we handle the dependencies to libintl and
libiconv.
2023-02-13 Bruno Haible <bruno@clisp.org>
doc: Assume the user has Autoconf ≥ 2.60.
* gettext-tools/doc/gettext.texi (src/Makefile): Remove obsolete advice.
2023-02-13 Bruno Haible <bruno@clisp.org>
Update doc after recent AM_GNU_GETTEXT change.
* gettext-tools/doc/gettext.texi (src/Makefile): Use $(localedir_c_make) instead
of $(localedir).
2023-02-13 Bruno Haible <bruno@clisp.org>
Fix "make distcheck" after gnulib changed.
* gettext-runtime/m4/fcntl-o.m4: Trivial update from gnulib.
* gettext-runtime/m4/flexmember.m4: Likewise.
* gettext-runtime/m4/iconv.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/inttypes_h.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/progtest.m4: Likewise.
* gettext-runtime/m4/size_max.m4: Likewise.
* gettext-runtime/m4/stdint_h.m4: Likewise.
* gettext-runtime/m4/xsize.m4: Likewise.
2023-02-13 Bruno Haible <bruno@clisp.org>
build: Don't hint to --with-installed-csharp-dll when C# support is disabled.
When --disable-csharp was specified, gettext-tools/src/Makefile.am does not
produce msgunfmt.net.exe. Therefore it is irrelevant whether the condition
USE_INSTALLED_CSHARP_DLL evaluates to true or false. Thus the message
"WARNING: When building the gettext-tools package without building the entire
gettext package, you need to pass the --with-installed-csharp-dll option to
configure."
is pointless.
Reported by Ryan Schmidt in <https://savannah.gnu.org/bugs/?58668>.
* gettext-tools/configure.ac: Don't emit hint to use --with-installed-csharp-dll
when BUILDCSHARP is not 'yes'.
2023-02-12 Bruno Haible <bruno@clisp.org>
intl: Simplify function prefixes.
* gettext-runtime/intl/configure.ac: Remove macro definitions of
_nl_locale_name_canonicalize, _nl_locale_name_from_win32_LANGID,
_nl_locale_name_from_win32_LCID, _nl_locale_name_thread_unsafe,
_nl_locale_name_posix, _nl_locale_name_default.
* gettext-runtime/intl/gettextP.h: Update declarations.
* gettext-runtime/intl/langprefs.c: Likewise.
(_nl_language_preferences_win32_mui, _nl_language_preferences_win32_ME,
_nl_language_preferences_win32_95, _nl_language_preferences_default): Use
gl_ prefixed symbols instead.
* gettext-runtime/intl/dcigettext.c (DCIGETTEXT, guess_category_value):
Likewise.
2023-02-12 Bruno Haible <bruno@clisp.org>
intl: Remove most of the exported _nl_* symbols, also on AIX and Solaris.
* gettext-runtime/intl/configure.ac: Map most of the _nl_* symbols to
_libintl_* symbols, so that they are not exported from libintl.
2023-02-12 Bruno Haible <bruno@clisp.org>
AM_GNU_GETTEXT: Define localedir_c and localedir_c_make.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Define and substitute
localedir_c and localedir_c_make.
* gettext-runtime/src/Makefile.am (AM_CPPFLAGS): Use $(localedir_c_make)
instead of $(localedir). This is useful in native Windows environments.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/tests/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/doc/gettext.texi (AM_GNU_GETTEXT): Small updates. Mention
localedir_c and localedir_c_make.
* NEWS: Mention the change.
2023-02-12 Bruno Haible <bruno@clisp.org>
Fix compilation errors with ISO C 23 compilers.
* gettext-runtime/intl/dcigettext.c (getwd, getcwd): Assume a declaration in the
system header files.
* gettext-runtime/intl/gettextP.h (SWAP): Drop K&C compatibility.
2023-02-12 Bruno Haible <bruno@clisp.org>
msggrep: Remove unused code.
* gettext-tools/src/msggrep.c (nonintr_close, close): Remove.
2023-02-12 Bruno Haible <bruno@clisp.org>
Document that MSVC cannot be used to build shared libraries.
Binaries crash when they are linked to intl-8.dll. Whereas binaries
don't crash when merely linked to iconv-2.dll.
I have debugged this problem for several hours, and think it is a
problem either in libtool or in the Microsoft linker.
* INSTALL.windows: Mention to use --disable-shared with MSVC.
2023-02-11 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix .gitignore.
2023-02-11 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix compilation error on Android.
* libtextstyle/gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Test whether struct
lconv has a 'decimal_point' field.
* libtextstyle/gnulib-local/lib/glib/gstrfuncs.c (g_ascii_strtod,
g_ascii_formatd): If struct lconv does not have a 'decimal_point' field, use "."
instead.
2023-02-11 Bruno Haible <bruno@clisp.org>
Fix compilation error on Cygwin.
The error occurred because Gnulib's error.h currently does not
and HAVE_ERROR=0. In this case we shouldn't force the creation of error.h.
* gettext-tools/configure.ac: Don't set ac_cv_lib_error_at_line=no. This reverts
a workaround from 2012-12-25.
2023-02-11 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/configure.ac: Test also REPLACE_TWALK.
* gettext-tools/src/po-xerror.c: Don't include "getprogname.h".
* gnulib-local/lib/xerror.c: Likewise.
* gnulib-local/lib/error-progname.c: Include <stdlib.h> instead of
getprogname.h.
* gnulib-local/lib/error.in.h.diff: Renamed from gnulib-local/lib/error.h.diff.
* gnulib-local/Makefile.am (EXTRA_DIST): Update.
* gnulib-local/modules/gettext-tools-misc (Makefile.am): Update comment.
2023-02-11 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2023-02-11 Bruno Haible <bruno@clisp.org>
Update .gitignore after build system changes in gettext-runtime/intl/.
2023-02-11 Bruno Haible <bruno@clisp.org>
intl: Fix generation of libgnuintl.h (regression from 2022-07-17).
* gettext-runtime/intl/Makefile.am (libgnuintl.h): Use a syntax that does not
require GNU sed.
2023-02-11 Bruno Haible <bruno@clisp.org>
Fix libintl exports after build system changes in gettext-runtime/intl/ (regression 2021-06-20).
On several platforms, rpl_free was exported.
On AIX 7, also rpl_newlocale, rpl_duplocale, rpl_freelocale.
* gettext-runtime/intl/configure.ac: Map more rpl_* symbols to _libintl_*.
2023-02-03 Bruno Haible <bruno@clisp.org>
Update after release 0.21.1 has been made.
* libtextstyle/NEWS: Update next version number.
2022-12-02 Bruno Haible <bruno@clisp.org>
msgfmt: Fix -k/--keyword option handling.
Reported by Daniel <daniel.rf710@gmail.com> in
<https://savannah.gnu.org/bugs/index.php?63455>.
* gettext-tools/src/msgfmt.c (long_options): Declare that --keyword takes an
optional argument.
(main): Recognize -k as an alternative to --keyword.
Ensure that desktop_keywords is initialized before use.
Don't set desktop_default_keywords to false when an option -kKWSPEC or
--keyword=KWSPEC is seen.
Don't destroy the desktop_keywords table too early.
Don't destroy the desktop_keywords table when the program is terminating anyway.
2022-11-26 Bruno Haible <bruno@clisp.org>
In 'trap' commands, prefer symbolic to numeric signal names.
* libtextstyle/gnulib-local/tests/test-term-ostream-xterm.sh: Use symbolic
signal names.
2022-10-10 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/m4/iconv.m4: Update from gnulib.
2022-10-10 Bruno Haible <bruno@clisp.org>
Update release steps.
2022-10-10 Bruno Haible <bruno@clisp.org>
Merge from 0.21.x branch: Prepare for 0.21.1 release: Update examples.
* gettext-tools/examples/hello-*/configure.{ac,in.in}: Reference gettext
version 0.21.1.
2022-10-10 Bruno Haible <bruno@clisp.org>
Merge from 0.21.x branch: Prepare for 0.21.1 release: Update translations.
* gettext-runtime/po/*.po: Update from TP.
* gettext-tools/po/*.po: Likewise.
* gettext-tools/examples/po/*.po: Likewise.
* gettext-tools/examples/po/LINGUAS: Add 'ka'.
* gettext-tools/examples/hello-*/po/LINGUAS: Likewise.
* gettext-tools/examples/Makefile.am (EXAMPLESPOFILES): Add ka.po.
2022-10-10 Bruno Haible <bruno@clisp.org>
Merge from 0.21.x branch: Prepare for 0.21.1 release.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* NEWS, gettext-runtime/NEWS: Update.
* libtextstyle/lib/Makefile.am (LTV_*): Bump to 1:2:1.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 11:0:3.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:8:5.
* gettext-runtime/src/envsubst.c: Update copyright years of the --version output.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/gettext.sh.in: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/misc/autopoint.in: Likewise.
* gettext-tools/misc/convert-archive.in: Likewise.
* gettext-tools/misc/gettextize.in: Likewise.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.21.1.
* gettext-tools/misc/autopoint.in: Allow version 0.21.1.
2022-09-25 Bruno Haible <bruno@clisp.org>
build: Simplify.
This partially reverts the commit 2020-12-28 "Update after gnulib changed:
Fix link errors on native Windows."
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Remove
strdup-posix.
* gettext-tools/libgettextpo/Makefile.am (config.h): Don't define GNULIB_GETCWD.
2022-09-25 Bruno Haible <bruno@clisp.org>
Support compiling the examples on native Windows without -loldnames.
* gettext-tools/examples/hello-c/configure.ac: Don't test for unistd.h.
* gettext-tools/examples/hello-c-gnome/configure.ac: Likewise.
* gettext-tools/examples/hello-c-gnome3/configure.ac: Likewise.
* gettext-tools/examples/hello-c++/configure.ac: Likewise.
* gettext-tools/examples/hello-c++-qt/configure.ac: Likewise.
* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
* gettext-tools/examples/hello-c++-gnome/configure.ac: Likewise.
* gettext-tools/examples/hello-c++-wxwidgets/configure.ac: Likewise.
* gettext-tools/examples/hello-objc/configure.ac: Likewise.
* gettext-tools/examples/hello-objc-gnome/configure.ac: Likewise.
* gettext-tools/examples/hello-c/hello.c: On native Windows, include <process.h>
and define getpid as an alias of _getpid. Otherwise, assume <unistd.h> exists.
* gettext-tools/examples/hello-c-gnome/hello.c: Likewise.
* gettext-tools/examples/hello-c-gnome3/hello.c: Likewise.
* gettext-tools/examples/hello-c++/hello.cc: Likewise.
* gettext-tools/examples/hello-c++-qt/hello.cc: Likewise.
* gettext-tools/examples/hello-c++-kde/hellowindow.cc: Likewise.
* gettext-tools/examples/hello-c++-gnome/hello.cc: Likewise.
* gettext-tools/examples/hello-c++-wxwidgets/hello.cc: Likewise.
* gettext-tools/examples/hello-objc/hello.m: Likewise.
* gettext-tools/examples/hello-objc-gnome/hello.m: Likewise.
2022-09-25 Bruno Haible <bruno@clisp.org>
Fix a test failure of autopoint-3.
Reported by Marvin Schmidt <marvin.schmidt1987@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-09/msg00001.html>.
* gettext-tools/tests/autopoint-3: Comment out the AC_CONFIG_HEADERS line
and don't invoke autoheader.
2022-09-25 Bruno Haible <bruno@clisp.org>
Fix an MSVC/clang test failure.
* gettext-tools/tests/lang-objc: On native Windows, ignore different end-of-line
convention in the output.
2022-09-25 Bruno Haible <bruno@clisp.org>
Fix a link error on MSVC/clang in --enable-shared mode.
* gettext-runtime/intl/printf.c: Include libgnuintl.h. This ensures that the
LIBINTL_DLL_EXPORTED marker from the libintl_*printf function declarations is
seen when the functions get defined.
* gettext-runtime/intl/Makefile.am: Update comment.
2022-09-25 Bruno Haible <bruno@clisp.org>
Update after gnulib changed: Fix link errors on MSVC.
* gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always.
2022-09-25 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2022-09-13 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/po/POTFILES.in: Update.
2022-09-13 Bruno Haible <bruno@clisp.org>
build: Restore the ability to run "make check".
* cfg.mk (gl_public_submodule_commit): Define to empty.
2022-09-13 Bruno Haible <bruno@clisp.org>
Update after release 0.21.1 has been prepared on the branch.
* NEWS: Update.
* gettext-runtime/m4/gettext.m4: Bump release version and year.
* gettext-runtime/m4/intl.m4: Likewise.
* gettext-runtime/m4/po.m4: Bump year.
2022-08-28 Albert Astals Cid <aacid@kde.org>
Add plural formula for Catalan.
* gettext-tools/src/plural-table.c (plural_table): Add an entry for Catalan.
2022-07-18 Bruno Haible <bruno@clisp.org>
Fix typos in comments.
* gettext-tools/src/format-c-parse.h (format_parse_entrails): Fix typo in
comment.
* gettext-tools/src/format-gfc-internal.c (format_parse): Likewise.
2022-07-18 Bruno Haible <bruno@clisp.org>
Move gnulib-tool invocation back from autopull.sh to autogen.sh.
* autogen.sh: Revert most of last change. Improve comments.
* autopull.sh: Only call 'gitsub.sh pull', fetch archive.dir.tar, and recurse.
* libtextstyle/autogen.sh: Revert most of last change. Improve comments.
* libtextstyle/autopull.sh: Only call 'gitsub.sh pull', fetch texinfo.tex.
* libtextstyle/m4/init-package-version.m4: Revert last change.
2022-07-17 Bruno Haible <bruno@clisp.org>
Split autogen.sh into autopull.sh and autogen.sh.
* autopull.sh: New file, based on autogen.sh.
* autogen.sh: Remove code that was moved to autopull.sh. Remove --skip-gnulib
option.
* HACKING: Mention autopull.sh.
* libtextstyle/autopull.sh: New file, based on libtextstyle/autogen.sh.
* libtextstyle/autogen.sh: Remove code that was moved to
libtextstyle/autopull.sh. Remove --skip-gnulib option.
* libtextstyle/HACKING: Mention autopull.sh.
* libtextstyle/m4/init-package-version.m4: Update comment.
2022-07-17 Bruno Haible <bruno@clisp.org>
Fix "make distcheck" failure (regression from 2022-07-03).
* gettext-runtime/intl/export.h: Add a copyright notice.
* gettext-runtime/intl/Makefile.am (libgnuintl.h): Eliminate this copyright
notice when including export.h.
2022-07-08 Bruno Haible <bruno@clisp.org>
doc: Make an example multithread-safe.
Reported by Vivien Kraus <vivien@planete-kraus.eu> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-07/msg00015.html>.
* gettext-tools/doc/gettext.texi (Libraries): Make the example code
multithread-safe.
2022-07-03 Bruno Haible <bruno@clisp.org>
build: Fix link error for tstgettext.exe on mingw.
* gettext-runtime/intl/export.h: Treat mingw like MSVC. In static builds. don't
use __declspec(dllexport). In shared builds, use also __declspec(dllimport).
2022-07-03 Bruno Haible <bruno@clisp.org>
doc: Clarify constraints for PO files.
* gettext-tools/doc/gettext.texi (PO Files): Mention that \u and \U escape
sequences are not allowed.
2022-07-03 Bruno Haible <bruno@clisp.org>
doc: Clarify constraints for PO files.
Reported by Gábor Hojtsy <gabor.hojtsy@gmail.com> in
<https://savannah.gnu.org/bugs/?62677>.
* gettext-tools/doc/gettext.texi (PO Files): State uniqueness requirement.
2022-06-26 Bruno Haible <bruno@clisp.org>
xgettext: Add test for last fix.
Reported by Jonathan Matthew <jonathan@d14n.org>
in <https://savannah.gnu.org/bugs/?62363>.
* gettext-tools/tests/xgettext-18: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2022-06-26 Jonathan Matthew <jonathan@d14n.org>
xgettext: Remove side effect of an extraction on later extractions.
Reported in <https://savannah.gnu.org/bugs/?62363>.
* gettext-tools/src/xgettext.c (extract_from_file): Reset
current_formatstring_parser1/2/3 variables before returning.
2022-06-26 Bruno Haible <bruno@clisp.org>
Update .gitignore after "gettext-runtime: Provide helper script to build against uninstalled binaries.".
2022-06-26 Sébastien Wilmet <swilmet@informatique-libre.be>
doc: change OpenOffice.org to LibreOffice
* gettext-tools/doc/gettext.texi (System Installation): Mention LibreOffice
instead of OpenOffice.org.
2022-06-25 Johannes Schindelin <johannes.schindelin@gmx.de>
intl: On native Windows, actually define the *wprintf functions.
In dcaf8c4d7 (Cygwin portability., 2003-09-17), the *wprintf() family of
functions in `gettext-runtime/intl/printf.c` were no longer guarded by
the constant `HAVE_WPRINTF`, but instead by `HAVE_FWPRINTF`.
This apparently worked even if the corresponding part in
`gettext-runtime/intl/libgnuintl.h.in` uses `HAVE_WPRINTF` to guard the
declarations of those functions.
However, in d84f20745 (Make sure that libintl.h declares the *wprintf
overrides on Windows., 2019-04-08), gettext introduced a change where it
would look for `wprintf()` instead of `fwprintf()`. As a consequence it
would no longer define the `HAVE_FWPRINTF` constant at all.
GCC apparently interprets `#if HAVE_FWPRINTF` as `#if 0` if the constant
has not even been defined.
This leads to the funny situation that previously, the *wprintf()
functions would be defined, but not be declared. Whereas now the
functions are not defined, but declared.
Also funny: Cygwin did not even export the `fwprintf()` function until
2009, as per Cygwin's 45e20e47ba (cygwin.din: Export wprintf,
fwprintf, swprintf, vwprintf, vfwprintf, vswprintf. [...] , 2009-03-06),
while the `wprintf()` function was exported already in 2003. So the
Cygwin portability patch from 2003 seems to have turned off all of the
*wprintf() functions in gettext.
Let's revert that "portability" patch, as it now only does harm and has
no benefit anymore.
[Bruno's summary]
Thank you for the analysis and explanation, Johannes!
The commits dcaf8c4d7 and f5ca7696d (2003-09-17) introduced a test for
fwprintf rather than wprintf. This was designed as a workaround to a
Cygwin problem that existed from 2003 to 2009.
The commit d84f20745 (2019-04-08) switched back from testing fwprintf
to testing wprintf, but did so incompletely: I forgot to modify printf.c.
So, since then, the *wprintf functions are declared but not defined.
2022-06-21 Bruno Haible <bruno@clisp.org>
intl: Add special hack for GCC.
Based on the commit
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=4a1493f0603262a7dc1114d9827353e9810e63dc
by Jakub Jelinek <jakub@redhat.com>.
* gettext-runtime/intl/configure.ac: Accept option --enable-host-shared.
Set PICFLAG.
* gettext-runtime/intl/Makefile.am (AM_CFLAGS): Add the PICFLAG.
* gnulib-local/modules/gettext-runtime-intl-misc (Makefile.am): Add the PICFLAG
to AM_CFLAGS.
2022-06-21 Bruno Haible <bruno@clisp.org>
gettext-runtime: Provide helper script to build against uninstalled binaries.
Prompted by <https://gcc.gnu.org/pipermail/gcc/2022-June/238929.html>.
* gettext-runtime/uninstalled-config.sh.in: New file.
* gettext-runtime/configure.ac: New variable ENABLE_SHARED. Generate
uninstalled-config.sh at configure time.
2022-06-20 Bruno Haible <bruno@clisp.org>
Fix "make distcheck" failure.
* check-copyright-headers: Exempt the JOIN-GNU file.
2022-06-20 Bruno Haible <bruno@clisp.org>
Don't check for java nor javac when --disable-java is specified.
This avoid annoying dialogs on macOS when Java has not been installed so far.
Reported by Iain Sandoe <idsandoe@googlemail.com> in
<https://gcc.gnu.org/pipermail/gcc/2022-June/238929.html>.
* gettext-runtime/configure.ac: When JAVA_CHOICE is 'no', bypass the gt_JAVACOMP
and JAR tests.
* gettext-tools/configure.ac: When JAVA_CHOICE is 'no', bypass the gt_JAVAEXEC,
gt_JAVACOMP, and JAR tests.
2022-06-20 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2022-06-20 Bruno Haible <bruno@clisp.org>
Update ISO_3166 transformation script.
* gettext-tools/doc/iso-3166.sed: Transform also 'ü'.
2022-06-03 Bruno Haible <bruno@clisp.org>
Update after Turkey changed its name.
* gettext-tools/doc/ISO_3166: Update country name.
* gettext-tools/doc/iso-3166.texi: Likewise.
* gettext-tools/doc/ISO_639-2: Update comments.
* gettext-runtime/intl/setlocale.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
2022-05-23 Bruno Haible <bruno@clisp.org>
Add GNU Project notice.
* JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
on the gnu-prog-discuss mailing list.
* README: Refer to it.
* Makefile.am (EXTRA_DIST): Add it.
2022-05-16 Bruno Haible <bruno@clisp.org>
Upgrade to libtool 2.4.7.
* m4/libtool.m4: Update from libtool-2.4.7, with modifications.
2017-10-21 Bruno Haible <bruno@clisp.org>
Fix -export-symbols and -export-symbols-regex support on Solaris 11.3.
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust symcode for Solaris.
* m4/ltoptions.m4: Likewise.
* m4/ltsugar.m4: Likewise.
* m4/ltversion.m4: Likewise.
* m4/lt~obsolete.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
2022-02-04 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* libtextstyle/gnulib-local/lib/termcap.h: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/lib/terminfo.h: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/lib/tparm.c: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/lib/tputs.c: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/m4/termcap.m4: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/m4/terminfo.m4: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/m4/curses.m4: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/modules/termcap: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/modules/termcap-h: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/modules/terminfo: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/modules/terminfo-h: Remove file (moved to gnulib).
* libtextstyle/Makefile.am (EXTRA_DIST): Remove these files.
2022-02-04 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2022-01-30 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix a comment.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Fix
typo in comment.
2022-01-30 Bruno Haible <bruno@clisp.org>
libtextstyle: Consider setupterm return code.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Don't
bother retrieving values if $TERM is an unknown terminal type.
2022-01-30 Bruno Haible <bruno@clisp.org>
libtextstyle: Try harder to avoid buffer overflow.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Double
the size of termcapbuf and termentrybuf.
2022-01-03 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2022-01-02 Bruno Haible <bruno@clisp.org>
xgettext: Deprecate option '--sort-output'.
Suggested by Lauri Nurmi <lanurmi@iki.fi> in
<https://savannah.gnu.org/bugs/?61249>.
* gettext-tools/src/xgettext.c (main): Warn when option '--sort-output' is used.
(usage): Mark the option '--sort-output' deprecated.
* gettext-tools/doc/xgettext.texi: Likewise.
* NEWS: Mention it.
2022-01-02 Bruno Haible <bruno@clisp.org>
NEWS: Mention the Unicode standard update (work done in gnulib).
2022-01-02 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/tests/msgcat-17: Update test for changed libunistring line
breaking behaviour.
* gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
* gettext-tools/tests/msgmerge-11: Likewise.
* gettext-tools/tests/xgettext-python-1: Likewise.
2022-01-02 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2022-01-02 Bruno Haible <bruno@clisp.org>
Fix lang-python-* test failures with Python 3.8.
* gettext-tools/tests/lang-python-1: Use syntax that works also with Python 3.
* gettext-tools/tests/lang-python-2: Likewise.
2021-12-22 Bruno Haible <bruno@clisp.org>
Fix an interference between libintl.h and C++ (boost) header files.
Reported by Marc Jeanmougin <marc@jeanmougin.fr> in
<https://lists.gnu.org/archive/html/bug-gettext/2021-12/msg00027.html>.
* gettext-runtime/intl/libgnuintl.in.h (libintl_fprintf, libintl_vfprintf,
libintl_printf, libintl_vprintf, libintl_sprintf, libintl_vsprintf,
libintl_snprintf, libintl_vsnprintf, libintl_asprintf, libintl_vasprintf,
libintl_fwprintf, libintl_vfwprintf, libintl_wprintf, libintl_vwprintf,
libintl_swprintf, libintl_vswprintf, libintl_newlocale, libintl_duplocale,
libintl_freelocale, libintl_setlocale): Inject also into the C++ std namespace.
2021-12-22 Bruno Haible <bruno@clisp.org>
intl: Improve indentation of generated libintl.h file.
* gettext-runtime/intl/libgnuintl.in.h: Indent preprocessor directives.
2021-12-20 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2021-12-07 Bruno Haible <bruno@clisp.org>
libtextstyle: Clarify rationale for gl_INIT_PACKAGE.
* libtextstyle/m4/init-package-version.m4: Add more comments.
2021-12-07 Bruno Haible <bruno@clisp.org>
doc: Document availability of Python brace format strings.
* gettext-tools/doc/lang-python.texi (Python): Show an example of a Python brace
format string.
2021-08-25 Bruno Haible <bruno@clisp.org>
Avoid a test failure of the intl-6 test on Cygwin.
* gettext-tools/tests/intl-6: On Cygwin, test only the LOCALE_FR_UTF8, not the
LOCALE_FR locale.
2021-08-22 Bruno Haible <bruno@clisp.org>
autopoint: Fix structure of man page.
Reported by Michio Matsuyama <michio.matsuyama@gmail.com> in
<https://savannah.gnu.org/bugs/?61065>.
* gettext-tools/misc/autopoint.in (func_version): Accept a boolean argument.
Adjust wording. Bump copyright year.
Accept an undocumented option '--version-without-config'.
* gettext-tools/man/Makefile.am ($(man_MAN1MISC)): When creating autopoint.1,
pass the option --version-without-config instead of --version to 'autopoint'.
2021-08-21 Bruno Haible <bruno@clisp.org>
Improve DEPENDENCIES and HACKING files.
* DEPENDENCIES: Update mono runtime package name.
* HACKING: Add pre-built package names. Recommend TeX Live instead of teTeX.
* libtextstyle/HACKING: Likewise.
2021-08-08 Bruno Haible <bruno@clisp.org>
libtextstyle: Make gl_INIT_PACKAGE work with Automake >= 1.16.4.
Reported and analyzed by Nicole Mazzuca <mazzucan@outlook.com> in
<https://lists.gnu.org/archive/html/bug-libunistring/2021-08/msg00002.html>.
* m4/init-package-version.m4 (gl_INIT_PACKAGE): Use a new macro gl_INIT_EMPTY.
(gl_INIT_DUMMY): Expand to empty in two steps, via a new macro gl_INIT_DUMMY2.
2021-07-25 Bruno Haible <bruno@clisp.org>
.gitignore: Ignore the generated config.cache files.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Move most of intl.m4 into gettext-runtime/intl/configure.ac, part 2.
* gettext-runtime/intl/configure.ac: Invoke gt_GLIBC2.
2021-06-20 Bruno Haible <bruno@clisp.org>
libgettextpo: Tidy up exported symbols.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS): Add an
-export-symbols-regex option.
2021-06-20 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix comment.
* libtextstyle/lib/Makefile.am: Fix outdated comment.
2021-06-20 Bruno Haible <bruno@clisp.org>
Improve conflict resolution between gnulib and textstyle.h.
* libtextstyle/lib/textstyle.h (libtextstyle_isatty): Don't override a Gnulib
override.
2021-06-20 Bruno Haible <bruno@clisp.org>
Improve conflict resolution between gnulib and libintl.h.
* gettext-runtime/intl/libgnuintl.in.h (fprintf, vfprintf, printf, vprintf,
sprintf, vsprintf, snprintf, vsnprintf, asprintf, vasprintf): Use Gnulib-
provided macros to test more reliably whether Gnulib overrides these functions.
2021-06-20 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
Previously, different gnulib-tool invocations within the scope of the same
configure.ac interfered with each other (through the GNULIB_* indicator macros,
used in the generated .h files), and libgrep relied on it. Now, each gnulib-tool
invocation needs its own copy of the generated .h files, in particular locale.h.
Needed for the localeconv() override on native Windows.
* autogen.sh: When invoking gnulib-tool for libgrep, don't avoid 'locale' and
the other header file modules.
* gettext-tools/configure.ac: Set GL_GRGL_GNULIB_SETLOCALE_NULL to 1.
2021-06-20 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/libasprintf/autosprintf.cc: Include <config.h>. This is
needed because of these new gnulib module dependencies:
vasnprintf -> free-posix -> stdlib -> unistd,
and the generated unistd.h gets included indirectly by <string> on OpenBSD 6.7
and gives a #error "Please include config.h first."
2021-06-20 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
* gnulib-local/lib/localename.c.diff: Remove file.
* gnulib-local/lib/localename-table.h.diff: Remove file.
* gnulib-local/lib/tsearch.c.diff: Remove file.
* gnulib-local/modules/tsearch.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
* libtextstyle/configure.ac: Update for changed naming convention of module
indicator variables.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Simplify further.
* gettext-runtime/intl/Makefile.am: Assume BUILD_INCLUDED_LIBINTL is true.
* gettext-runtime/intl/configure.ac: Remove BUILD_INCLUDED_LIBINTL conditional.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Don't set
BUILD_INCLUDED_LIBINTL.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Revert unneeded change.
* autogen.sh: Do the automake invocations bottom-up, as before.
2021-06-20 Bruno Haible <bruno@clisp.org>
intl: Assume strtoul exists.
* gettext-runtime/intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Assume
HAVE_STRTOUL to be 1.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for strtoul.
2021-06-20 Bruno Haible <bruno@clisp.org>
intl: Assume strdup exists.
* gettext-runtime/intl/bindtextdom.c (set_binding_values): Assume HAVE_STRDUP
to be 1.
* gettext-runtime/intl/finddomain.c (_nl_find_domain): Likewise.
* gettext-runtime/intl/textdomain.c (TEXTDOMAIN): Likewise.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for strdup.
2021-06-20 Bruno Haible <bruno@clisp.org>
intl: Assume <limits.h> exists.
* gettext-runtime/intl/dcigettext.c: Include <limits.h> always.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for limits.h.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Move most of intl.m4 into gettext-runtime/intl/configure.ac.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Don't invoke AM_INTL_SUBDIR.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR, gt_GL_ATTRIBUTE): Remove macros.
(gt_INTL_SUBDIR_CORE): Test for uselocale.
* gnulib-local/modules/gettext-runtime-intl-misc (configure.ac): Ensure
LOCALENAME_ENHANCE_LOCALE_FUNCS initialization.
* autogen.sh (GNULIB_MODULES_LIBINTL): Add lib-symbol-visibility, localename.
* gettext-runtime/intl/configure.ac: Set WINDRES. Invoke gt_INTL_SUBDIR_CORE.
Set HAVE_POSIX_PRINTF, HAVE_ASPRINTF, HAVE_SNPRINTF, HAVE_WPRINTF,
HAVE_NEWLOCALE. Test for features.h, _snprintf, _snwprintf.
Set ENHANCE_LOCALE_FUNCS, WOE32DLL.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Simplify the use of gnulib in libintl.
* gnulib-local/lib/localename-table.h.diff: New file.
* gnulib-local/lib/localename.c.diff: New file.
* gnulib-local/lib/tsearch.c.diff: New file.
* gnulib-local/modules/gettext-runtime-intl-misc: New file, based on
gettext-runtime/intl/Makefile.am.
* gnulib-local/modules/tsearch.diff: New file.
* gnulib-local/Makefile.am (EXTRA_DIST): Add them.
* autogen.sh (GNULIB_MODULES_LIBINTL, GNULIB_SETLOCALE_DEPENDENCIES): New
variables.
Invoke gnulib-tool for the gettext-runtime/intl/ directory.
Update 'aclocal' invocation for the gettext-runtime/intl/ directory.
* gettext-runtime/intl/configure.ac (enable_relocatable): Set to yes always.
Invoke gl_EARLY and gl_INIT. Don't invoke gl_USE_SYSTEM_EXTENSIONS,
AM_PROG_CC_C_O, gl_COMMON, gl_RELOCATABLE_LIBRARY explicitly.
Define IN_LIBINTL through config.h.
Rename __libc* macros and symbols through config.h.
Invoke AC_CONFIG_FILES for gnulib-lib/Makefile.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't rename __libc* macros and
symbols here.
(gt_INTL_SUBDIR_CORE): Don't test for tsearch.
* gettext-runtime/intl/arg-nonnull.h: Remove file.
* gettext-runtime/intl/attribute.h: Remove file.
* gettext-runtime/intl/filename.h: Remove file.
* gettext-runtime/intl/flexmember.h: Remove file.
* gettext-runtime/intl/localcharset.h: Remove file.
* gettext-runtime/intl/localcharset.c: Remove file.
* gettext-runtime/intl/localename.c: Remove file.
* gettext-runtime/intl/localename-table.in.h: Remove file.
* gettext-runtime/intl/localename-table.c: Remove file.
* gettext-runtime/intl/lock.h: Remove file.
* gettext-runtime/intl/lock.c: Remove file.
* gettext-runtime/intl/printf-args.h: Remove file.
* gettext-runtime/intl/printf-args.c: Remove file.
* gettext-runtime/intl/printf-parse.h: Remove file.
* gettext-runtime/intl/printf-parse.c: Remove file.
* gettext-runtime/intl/relocatable.h: Remove file.
* gettext-runtime/intl/relocatable.c: Remove file.
* gettext-runtime/intl/setlocale-lock.c: Remove file.
* gettext-runtime/intl/setlocale_null.h: Remove file.
* gettext-runtime/intl/setlocale_null.c: Remove file.
* gettext-runtime/intl/thread-optim.h: Remove file.
* gettext-runtime/intl/threadlib.c: Remove file.
* gettext-runtime/intl/tsearch.h: Remove file.
* gettext-runtime/intl/tsearch.c: Remove file.
* gettext-runtime/intl/vasnprintf.c: Remove file.
* gettext-runtime/intl/verify.h: Remove file.
* gettext-runtime/intl/windows-initguard.h: Remove file.
* gettext-runtime/intl/windows-mutex.h: Remove file.
* gettext-runtime/intl/windows-mutex.c: Remove file.
* gettext-runtime/intl/windows-once.h: Remove file.
* gettext-runtime/intl/windows-once.c: Remove file.
* gettext-runtime/intl/windows-recmutex.h: Remove file.
* gettext-runtime/intl/windows-recmutex.c: Remove file.
* gettext-runtime/intl/windows-rwlock.h: Remove file.
* gettext-runtime/intl/windows-rwlock.c: Remove file.
* gettext-runtime/intl/xsize.h: Remove file.
* gettext-runtime/intl/xsize.c: Remove file.
* gettext-runtime/intl/Makefile.am (ACLOCAL_AMFLAGS): Reference gnulib-m4 in
this directory.
(SUBDIRS): Add gnulib-lib.
(AM_CPPFLAGS): Add -I statements for the gnulib-lib directory. Don't define
BUILDING_DLL, IN_LIBINTL here. Don't parametrize the 'relocatable-lib-lgpl'
module here.
(EXTRA_DIST, LIBINTLSOURCES): Remove the said files.
(localename-table.h): Remove rule.
(*.lo): Remove rules and dependencies for the said files.
(libintl_la_LIBADD, libintl_la_DEPENDENCIES, libgnuintl_la_LIBADD,
libgnuintl_la_DEPENDENCIES): Add gnulib-lib/libgnu.la.
(OTHER_LDFLAGS): Don't export _libintl_* symbols.
(EXTRA_DIST): Add gnulib-m4/gnulib-cache.m4.
* gettext-runtime/intl/gettextP.h: Include glthread/lock.h, not lock.h.
(gl_locale_name_canonicalize, gl_locale_name_from_win32_LANGID,
gl_locale_name_from_win32_LCID, gl_locale_name_thread_unsafe,
gl_locale_name_thread, gl_locale_name_posix, gl_locale_name_environ,
gl_locale_name_default, gl_locale_name): Remove macros.
(_nl_locale_name_posix, _nl_locale_name_environ, _nl_locale_name_default):
Remove declarations.
* gettext-runtime/intl/plural-exp.h (FREE_EXPRESSION, PLURAL_PARSE,
GERMANIC_PLURAL, EXTRACT_PLURAL_EXPRESSION): Prefix these libintl-private
symbols with _libintl_, not libintl_.
* gettext-runtime/intl/bindtextdom.c: Include glthread/lock.h, not lock.h.
* gettext-runtime/intl/finddomain.c: Likewise.
* gettext-runtime/intl/loadmsgcat.c: Likewise.
* gettext-runtime/intl/localealias.c: Likewise.
* gettext-runtime/intl/log.c: Likewise.
* gettext-runtime/intl/textdomain.c: Likewise.
* gettext-runtime/intl/dcigettext.c: Include localename.h. Include
glthread/lock.h, not lock.h.
Include <search.h> always; don't include tsearch.c.
* gettext-runtime/intl/printf.c: Don't define libintl_vasprintf here. Instead,
use _libintl_vasprintf from gnulib-lib/vasnprintf.c. Define _libintl_vasnwprintf
instead of libintl_vasnwprintf.
* gettext-runtime/intl/setlocale.c: Include <errno.h>, localename.h.
(gl_locale_name_canonicalize): New declaration.
* Makefile.am (distcheck-hook): Remove the file comparisons for files in
gettext-runtime/intl/.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Add a separate configure.ac in gettext-runtime/intl/.
* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER): Remove bison. Instead, copy
bison.m4 explicitly.
Generate configure file also in gettext-runtime/intl/.
Do automake invocations top-down, not bottom-up.
* gettext-runtime/intl/Makefile.am (ACLOCAL_AMFLAGS, SUBDIRS): New variables.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Allow 'here' as INTLSYMBOL
argument.
* gettext-runtime/intl/configure.ac: New file, based on
gettext-runtime/configure.ac.
* gettext-runtime/intl/AUTHORS: New file.
* gettext-runtime/intl/NEWS: New file.
* gettext-runtime/intl/README: New file.
* gettext-runtime/intl/ABOUT-NLS: New file, copied from
gettext-runtime/ABOUT-NLS.
* gettext-runtime/intl/INSTALL: New file, copied from gettext-runtime/INSTALL.
* gettext-runtime/configure.ac: Define WINDRES. Pass third argument to
AM_GNU_GETTEXT. Remove conditionals USE_INCLUDED_LIBINTL,
BUILD_INCLUDED_LIBINTL, PRELOADABLE_LIBINTL. Invoke AC_CONFIG_SUBDIRS([intl]).
Don't create intl/Makefile from here.
* gettext-tools/configure.ac: Define WINDRES. Redefine __libc_lock_*, for use
in localealias.c. Invoke gt_GLIBC2.
2021-06-20 Bruno Haible <bruno@clisp.org>
Avoid lang-vala failure on Ubuntu 16.04 in 32-bit mode.
* gettext-tools/tests/lang-vala: Skip the test if the valac invocation on a
trivial program fails.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Restore installation of preloadable_libintl.so (regression 2021-06-15).
* gettext-tools/configure.ac (USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL,
PRELOADABLE_LIBINTL): Remove unused conditionals.
* gettext-runtime/configure.ac (PRELOADABLE_LIBINTL): Define as before in
gettext-tools/configure.ac.
* PACKAGING: Update regarding preloadable_libintl.so.
2021-06-20 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix build in locales other than the C locale (regression 2021-04-07).
* libtextstyle/lib/Makefile.am (config.h): Invoke join-v-1 in the C locale.
2021-06-20 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix compilation error with cc on Solaris 10.
* gnulib-local/lib/libxml/timsort.h: Use 'inline' instead of '__inline'.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Simplify further.
* autogen.sh: Don't create a directory gettext-tools/intl/ any more.
2021-06-20 Bruno Haible <bruno@clisp.org>
build: Simplify further.
* gettext-tools/src/Makefile.am (msginit_SOURCES): Remove Solaris workaround
(no longer needed).
2021-06-15 Bruno Haible <bruno@clisp.org>
build: Simplify: Don't build libintl+libgnuintl a second time in gettext-tools.
* PACKAGING: Document that gettext-tools cannot be built without
gettext-runtime.
* autogen.sh: Don't create gettext-tools/intl/Makefile.am.
* gettext-tools/Makefile.am (SUBDIRS): Remove 'intl'.
* gettext-runtime/intl/Makefile.am (dist-hook): Remove.
(install-data-local, uninstall-local, uninstall-sources): Moved ...
* gettext-tools/misc/Makefile.am (install-data-local, uninstall-local,
uninstall-sources): ... to here.
* gettext-runtime/configure.ac (PACKAGE_IS_GETTEXT_TOOLS): Remove conditional.
* gettext-tools/configure.ac: Add 3rd argument to AM_GNU_GETTEXT invocation.
(PACKAGE_IS_GETTEXT_TOOLS): Remove conditional.
Update reference to os2compat.h.
Don't create intl/Makefile from intl/Makefile.in.
* gettext-tools/gnulib-lib/Makefile.am (AM_CPPFLAGS): Use the built header files
in gettext-runtime/intl/.
* gettext-tools/libgrep/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/libgettextpo/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/gnulib-tests/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/tests/Makefile.am (AM_CPPFLAGS): Likewise.
(LDADD_yes, LDADD_no): Use the built libraries in gettext-runtime/intl/.
* gettext-tools/tests/lang-c: Use the built header files in gettext-runtime/intl/.
* gettext-tools/tests/lang-c++: Likewise.
* gettext-tools/tests/lang-objc: Likewise.
2021-06-15 Bruno Haible <bruno@clisp.org>
Fix build failure on AIX 7.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require gl_LOCALE_H_DEFAULTS
before gt_INTL_THREAD_LOCALE_NAME.
2021-06-15 Bruno Haible <bruno@clisp.org>
Avoid lang-vala failure on macOS with MacPorts.
* gettext-tools/tests/lang-vala: Skip the test if the valac invocation reports
that <glib.h> is not installed.
2021-06-15 Bruno Haible <bruno@clisp.org>
Handle known test failure on Alpine Linux.
* gettext-tools/tests/autopoint-3: Add comment regarding Alpine Linux.
2021-06-14 Bruno Haible <bruno@clisp.org>
build: Simplify the use of gnulib in libasprintf.
* autogen.sh (GNULIB_MODULES_LIBASPRINTF): Add vasnprintf. Remove attribute,
errno, verify, xsize.
Pass option '--source-base=gnulib-lib' instead of
'--source-base=. --makefile-name=Makefile.gnulib'.
Don't create any gettext-runtime/libasprintf/gnulib-m4/*.m4 file through simple
copy.
* gettext-runtime/libasprintf/printf-args.c: Remove file.
* gettext-runtime/libasprintf/printf-args.h: Remove file.
* gettext-runtime/libasprintf/printf-parse.c: Remove file.
* gettext-runtime/libasprintf/printf-parse.h: Remove file.
* gettext-runtime/libasprintf/vasnprintf.c: Remove file.
* gettext-runtime/libasprintf/vasnprintf.h: Remove file.
* gettext-runtime/libasprintf/lib-asprintf.c: Don't include printf-args.c,
printf-parse.c, vasnprintf.c, asnprintf.c.
(STATIC): Remove macro.
* gettext-runtime/libasprintf/configure.ac: Hide undesired symbols from the
global namespace.
(AC_CONFIG_FILES): Add gnulib-lib/Makefile.
* gettext-runtime/libasprintf/Makefile.am: Don't include Makefile.gnulib.
(SUBDIRS, AM_CPPFLAGS): New variable.
(libasprintf_la_SOURCES, lib_asprintf_EXTRASOURCES): Remove files that are now
in gnulib-lib/.
(LIBASPRINTF_EXPORTED_SYMBOLS_REGEX): New variable.
(libasprintf_la_LDFLAGS): Use it.
(libasprintf.la): Link with gnulib-lib/libgnu.la.
* Makefile.am (distcheck-hook): Don't check the files in
gettext-runtime/libasprintf/.
2021-04-07 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix the set of exported symbols on Alpine Linux.
* libtextstyle/build-aux/join-v-1: New file, from GNU libunistring.
* libtextstyle/Makefile.am (EXTRA_DIST): Add it.
* libtextstyle/lib/Makefile.am (config.h): Use it instead of 'join -v 1'.
2021-04-05 Bruno Haible <bruno@clisp.org>
Handle known test failures on musl libc.
* gettext-tools/tests/msgcat-22: Add comment regarding musl libc.
* gettext-tools/tests/msgconv-8: Likewise.
2021-04-04 Bruno Haible <bruno@clisp.org>
Use xalloc module from gnulib.
* gnulib-local/lib/xalloc.h: Remove file.
* gnulib-local/lib/xmalloc.c: Remove file.
* gnulib-local/lib/xstrdup.c: Remove file.
* gnulib-local/modules/xalloc: Remove file.
* gnulib-local/modules/xalloc-die: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
* libtextstyle/lib/misc.c (xmalloc_exit_failure): Remove declaration.
(libtextstyle_set_failure_exit_code): Don't set xmalloc_exit_failure.
2021-04-04 Bruno Haible <bruno@clisp.org>
doc: Document how file names with spaces are protected in PO files.
* gettext-tools/doc/gettext.texi (PO Files): Document how file names with spaces
are protected in PO files.
* NEWS: Mention the change.
2021-04-04 Bruno Haible <bruno@clisp.org>
msgcat: Handle protected file names with spaces.
* gettext-tools/src/msgl-cat.c: Include msgl-ofn.h.
(catenate_msgdomain_list): Handle references that contain file names with
spaces.
* gettext-tools/tests/msgcat-22: New file, based on
gettext-tools/tests/msgconv-8.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2021-04-04 Bruno Haible <bruno@clisp.org>
msgconv: Handle protected file names with spaces.
* gettext-tools/src/po-charset.h (po_lex_isolate_start, po_lex_isolate_end): New
declarations.
* gettext-tools/src/po-charset.c (po_lex_isolate_start, po_lex_isolate_end): New
variables.
(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Initialize
them.
* gettext-tools/woe32dll/gettextsrc-exports.c: Export also po_lex_isolate_start,
po_lex_isolate_end.
* gettext-tools/src/read-catalog-abstract.c: Include <stdbool.h>, po-charset.h.
(po_parse_comment_filepos): Parse the syntax of file names surrounded by control
characters.
* gettext-tools/src/msgl-iconv.c: Include msgl-ofn.h.
(iconv_msgdomain_list): Signal error if the target encoding does not contain the
control characters needed for escaping file names with spaces.
* gettext-tools/tests/msgconv-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2021-04-04 Bruno Haible <bruno@clisp.org>
xgettext: Protect file names with spaces through Unicode U+2068, U+2069.
* gettext-tools/src/pos.h: Include <stdbool.h>.
(pos_filename_has_spaces): New declaration.
* gettext-tools/src/pos.c: New file.
* gettext-tools/src/msgl-ofn.h: New file.
* gettext-tools/src/msgl-ofn.c: New file.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add msgl-ofn.h.
(COMMON_SOURCE): Add pos.c.
(libgettextsrc_la_SOURCES): Add msgl-ofn.c.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Likewise.
* gettext-tools/src/write-catalog.h (struct catalog_output_format): Add field
requires_utf8_for_filenames_with_spaces.
* gettext-tools/src/xgettext.c: Include pos.h, msgl-ofn.h.
(finalize_header): Convert the message domain to UTF-8 also when some message
has file names with spaces.
* gettext-tools/src/write-po.h (message_print_comment_filepos): Add charset
parameter.
* gettext-tools/src/write-po.c: Include pos.h.
(message_print_comment_filepos): Add charset parameter. If a file name has
spaces, enclose it in U+2068 and U+2069 characters.
(message_print, message_print_obsolete, output_format_po): Update.
* gettext-tools/src/write-properties.c (write_message,
output_format_properties): Update.
* gettext-tools/src/write-stringtable.c (output_format_stringtable): Update.
* gettext-tools/tests/xgettext-17: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2021-04-04 Bruno Haible <bruno@clisp.org>
Update after gnulib changed on 2017-06-17.
* gnulib-local/lib/diffseq.h.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.
2021-04-04 Bruno Haible <bruno@clisp.org>
Update NEWS.
* NEWS: Mention that a build failure on macOS 11/arm64 is now fixed (through
gnulib).
2021-03-01 Bruno Haible <bruno@clisp.org>
Update DEPENDENCIES.
* DEPENDENCIES: Update info regarding libiconv. List pre-built package names.
Add awk as a normal dependency of a package with an Autoconf-generated configure
file.
* libtextstyle/DEPENDENCIES: Likewise.
2021-02-21 Bruno Haible <bruno@clisp.org>
Support creating shared libraries on MidnightBSD.
Patch from <https://savannah.gnu.org/patch/?10007>.
* m4/libtool.m4: Treat MidnightBSD like FreeBSD.
* build-aux/ltmain.sh: Likewise.
2021-02-21 Bruno Haible <bruno@clisp.org>
Switch to autoconf-2.71.
* libtextstyle/autogen.sh: Update comments.
2021-01-31 Bruno Haible <bruno@clisp.org>
build: Avoid a warning in a configure test.
Reported through MacPorts.
* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Avoid shadowing the global 'nan()'
function.
2021-01-08 Bruno Haible <bruno@clisp.org>
Update copyright years.
* Makefile.am: Update copyright years.
2021-01-08 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test
gt_localename_enhances_locale_funcs instead of gt_nameless_locales. Set
ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES.
* gettext-runtime/intl/Makefile.am (libgnuintl.h, libintl.h): Substitute
ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES.
* gettext-runtime/intl/libgnuintl.in.h: Test ENHANCE_LOCALE_FUNCS, not
HAVE_NAMELESS_LOCALES.
* gettext-runtime/intl/localename.c: Update from gnulib.
* gettext-runtime/m4/iconv.m4: Likewise.
2021-01-07 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2021-01-01 Bruno Haible <bruno@clisp.org>
tests: Fix autopoint-1 test failure.
* gettext-tools/tests/autopoint-1: Update after 2020-12-28 commit.
2021-01-01 Bruno Haible <bruno@clisp.org>
tests: Add comments.
* gettext-tools/tests/init.cfg: More comments about the Solaris gettext() bug.
2021-01-01 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/verify.h: Update copyright years.
* gettext-runtime/intl/xsize.h: Likewise.
* gettext-runtime/m4/fcntl-o.m4: Likewise.
* gettext-runtime/m4/flexmember.m4: Likewise.
* gettext-runtime/m4/iconv.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/inttypes_h.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/progtest.m4: Likewise.
* gettext-runtime/m4/size_max.m4: Likewise.
* gettext-runtime/m4/stdint_h.m4: Likewise.
* gettext-runtime/m4/xsize.m4: Likewise.
* Makefile.am (distcheck-hook): Update.
2020-12-28 Bruno Haible <bruno@clisp.org>
build: Remove glibc21.m4 (unused since 2018-09-17).
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't require gl_GLIBC21.
* gettext-tools/configure.ac: Don't invoke gl_GLIBC21.
* gettext-runtime/m4/glibc21.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
2020-12-28 Bruno Haible <bruno@clisp.org>
autopoint: When both configure.ac and configure.in exist, use the former.
Reported by Eric Gallager <egall@gwmail.gwu.edu> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-12/msg00051.html>.
* gettext-tools/misc/autopoint.in (configure_in): Test for configure.ac before
testing for configure.in.
2020-12-28 Bruno Haible <bruno@clisp.org>
Update after gnulib changed: Fix link errors on native Windows.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
strdup-posix.
Avoid the *-list-tests, since they reference a variable, leading to a problem
with --enable-shared.
* gettext-tools/libgettextpo/Makefile.am (config.h): Undefine GNULIB_GETCWD and
REPLACE_FCHDIR that are defined in the parent config.h.
2020-12-25 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* libtextstyle/configure.ac: Set GNULIB_MDA_ISATTY. This fixes a link error on
native Windows.
2020-12-20 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
'free'.
* gnulib-local/lib/libxml/parser.in.h: Include <stdlib.h>.
* gettext-tools/src/format.h: Likewise.
* gettext-tools/tests/gettextpo-1-prg.c: Undefine free.
2020-12-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Add accessor functions.
* libtextstyle/gnulib-local/lib/fd-ostream.oo.h (fd_ostream): New methods
get_descriptor, get_filename, is_buffered.
* libtextstyle/gnulib-local/lib/fd-ostream.oo.c (fd_ostream::get_descriptor,
fd_ostream::get_filename, fd_ostream::is_buffered): New functions.
* libtextstyle/gnulib-local/lib/file-ostream.oo.h (file_ostream): New method
get_stdio_stream.
* libtextstyle/gnulib-local/lib/file-ostream.oo.c
(file_ostream::get_stdio_stream): New function.
* libtextstyle/gnulib-local/lib/html-ostream.oo.h (html_ostream): New method
get_destination.
* libtextstyle/gnulib-local/lib/html-ostream.oo.c
(html_ostream::get_destination): New function.
* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.h: Include
html-ostream.h.
(html_styled_ostream): New methods get_destination, get_html_destination,
get_css_filename.
* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream):
Add field 'css_filename'.
(html_styled_ostream::free): Free it.
(html_styled_ostream_create): Initialize it.
(html_styled_ostream::get_destination,
html_styled_ostream::get_html_destination,
html_styled_ostream::get_css_filename): New functions.
* libtextstyle/gnulib-local/lib/iconv-ostream.oo.h (iconv_ostream): New methods
get_from_encoding, get_to_encoding, get_destination.
* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c
(iconv_ostream::get_from_encoding, iconv_ostream::get_to_encoding,
iconv_ostream::get_destination): New functions.
* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.h (noop_styled_ostream):
New methods get_destination, is_owning_destination.
* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.c
(noop_styled_ostream::get_destination,
noop_styled_ostream::is_owning_destination): New functions.
* libtextstyle/gnulib-local/lib/term-ostream.oo.h (term_ostream): New methods
get_descriptor, get_filename, get_tty_control, get_effective_tty_control.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream): Add field
'tty_control'.
(term_ostream_create): Initialize it.
(term_ostream::get_descriptor, term_ostream::get_filename,
term_ostream::get_tty_control, term_ostream::get_effective_tty_control): New
functions.
* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.h (term_styled_ostream):
New methods get_destination, get_css_filename.
* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream):
Add field 'css_filename'.
(term_styled_ostream::free): Free it.
(term_styled_ostream_create): Initialize it.
(term_styled_ostream::get_destination, term_styled_ostream::get_css_filename):
New functions.
* libtextstyle/lib/textstyle.h (file_ostream_get_stdio_stream,
fd_ostream_get_descriptor, fd_ostream_get_filename, fd_ostream_is_buffered,
term_ostream_get_descriptor, term_ostream_get_filename,
term_ostream_get_tty_control, term_ostream_get_effective_tty_control,
iconv_ostream_get_from_encoding, iconv_ostream_get_to_encoding,
iconv_ostream_get_destination, html_ostream_get_destination,
term_styled_ostream_get_destination, term_styled_ostream_get_css_filename,
html_styled_ostream_get_destination, html_styled_ostream_get_html_destination,
html_styled_ostream_get_css_filename, noop_styled_ostream_get_destination,
noop_styled_ostream_is_owning_destination): New declarations.
* libtextstyle/tests/test-accessors.c: New file.
* libtextstyle/tests/Makefile.am: Arrange to compile it.
* libtextstyle/doc/libtextstyle.texi (Accessors): New subsection.
* libtextstyle/NEWS: Mention the new functions.
2020-12-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Doc update.
* libtextstyle/doc/libtextstyle.texi (The output stream hierarchy): Add
is_instance_of_* functions to the index.
2020-12-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Add is_instance_of_* predicates.
* libtextstyle/gnulib-local/lib/fd-ostream.oo.h (is_instance_of_fd_ostream): New
declaration.
* libtextstyle/gnulib-local/lib/fd-ostream.oo.c (is_instance_of_fd_ostream): New
function.
* libtextstyle/gnulib-local/lib/file-ostream.oo.h (is_instance_of_file_ostream):
New declaration.
* libtextstyle/gnulib-local/lib/file-ostream.oo.c (is_instance_of_file_ostream):
New function.
* libtextstyle/gnulib-local/lib/html-ostream.oo.h (is_instance_of_html_ostream):
New declaration.
* libtextstyle/gnulib-local/lib/html-ostream.oo.c (is_instance_of_html_ostream):
New function.
* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.h
(is_instance_of_html_styled_ostream): New declaration.
* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c
(is_instance_of_html_styled_ostream): New function.
* libtextstyle/gnulib-local/lib/iconv-ostream.oo.h
(is_instance_of_iconv_ostream): New declaration.
* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c
(is_instance_of_iconv_ostream): New function.
* libtextstyle/gnulib-local/lib/memory-ostream.oo.h
(is_instance_of_memory_ostream): New declaration.
* libtextstyle/gnulib-local/lib/memory-ostream.oo.c
(is_instance_of_memory_ostream): New function.
* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.h
(is_instance_of_noop_styled_ostream): New declaration.
* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.c
(is_instance_of_noop_styled_ostream): New function.
* libtextstyle/gnulib-local/lib/styled-ostream.oo.h
(is_instance_of_styled_ostream): New declaration.
* libtextstyle/gnulib-local/lib/styled-ostream.oo.c
(is_instance_of_styled_ostream): New function.
* libtextstyle/gnulib-local/lib/term-ostream.oo.h (is_instance_of_term_ostream):
New declaration.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (is_instance_of_term_ostream):
New function.
* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.h
(is_instance_of_term_styled_ostream): New declaration.
* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c
(is_instance_of_term_styled_ostream): New function.
* libtextstyle/lib/textstyle.h (is_instance_of_styled_ostream,
is_instance_of_file_ostream, is_instance_of_fd_ostream,
is_instance_of_term_ostream, is_instance_of_memory_ostream,
is_instance_of_iconv_ostream, is_instance_of_html_ostream,
is_instance_of_term_styled_ostream, is_instance_of_html_styled_ostream,
is_instance_of_noop_styled_ostream): New declarations.
* libtextstyle/tests/test-instanceof.c: New file.
* libtextstyle/tests/Makefile.am: Arrange to compile it.
* libtextstyle/doc/libtextstyle.texi (The output stream hierarchy): Mention the
is_instance_of_* predicates.
* libtextstyle/NEWS: Mention the new functions.
2020-12-14 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/threadlib.c: Update from gnulib.
2020-12-12 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/src/read-csharp.c (execute_and_read_po_output): Does not need
write access to the elements of prog_argv.
* gettext-tools/src/read-java.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-resources.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/write-resources.c (execute_writing_input): Likewise.
* gettext-tools/src/urlget.c (execute_it): Likewise.
(fetch): Update variable types and remove casts to 'char *'.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address, plural_forms): Likewise.
* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Likewise.
* gettext-tools/src/x-ruby.c (extract_ruby): Likewise.
* gettext-tools/src/msgexec.c (sub_argv): Change type to 'const char **'.
(main): Remove casts to 'char *'.
2020-12-12 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2020-12-10 Bruno Haible <bruno@clisp.org>
intl: Support the AIX 7 locale names.
* gettext-runtime/intl/explodename.c (_nl_find_language): Remove function.
(_nl_explode_name): Inline it here. On AIX, lowercase the language and map a
script identifier to a modifier.
* NEWS: Mention it.
2020-12-09 Bruno Haible <bruno@clisp.org>
build: Allow building with Autoconf 2.70.
* libtextstyle/autogen.sh: Update comment.
2020-12-04 Bruno Haible <bruno@clisp.org>
xgettext: Make --directory option work right with Ruby input files.
* gettext-tools/src/xgettext.c (extract_from_file_func): Add found_in_dir
argument.
(xgettext_find_file): Return also the directory that was used to find the file.
(extract_from_file): Pass the directory to the extractor.
* gettext-tools/src/x-ruby.h (extract_ruby): Add found_in_dir argument.
* gettext-tools/src/x-ruby.c (extract_ruby): Add found_in_dir argument. Pass the
logical_filename to rxgettext, and run rxgettext in the given directory.
* gettext-tools/tests/xgettext-16: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2020-12-04 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/po/POTFILES.in: Update.
2020-12-02 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-tools/src/urlget.c (execute_it, fetch): Update 'execute' invocations.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address, plural_forms): Update create_pipe_in invocations.
* gettext-tools/src/read-csharp.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-java.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-resources.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Likewise.
* gettext-tools/src/x-ruby.c (extract_ruby): Likewise.
* gettext-tools/src/msgexec.c (process_string): Update create_pipe_out
invocation.
* gettext-tools/src/write-resources.c (execute_writing_input): Likewise.
2020-12-02 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-11-27 Miguel Arruga Vivas <rosen644835@gmail.com>
tests: Fix typos on scheme-format test.
* gettext-tools/tests/format-scheme-2: Fix typos.
2020-11-21 Bruno Haible <bruno@clisp.org>
build: Remove the need for an autoconf test.
* gettext-runtime/intl/intl-exports.c (IMP): Use predefined preprocessor symbol
tests, not USER_LABEL_PREFIX_UNDERSCORE.
* gettext-runtime/configure.ac (INTL_EXPORTS_FLAGS): Remove variable.
* gnulib-local/modules/gettext-runtime-misc (Makefile.am): Don't use
INTL_EXPORTS_FLAGS.
* gettext-tools/woe32dll/export.h (IMP): Use predefined preprocessor symbol
tests, not USER_LABEL_PREFIX_UNDERSCORE.
* gettext-tools/configure.ac (GETTEXTLIB_EXPORTS_FLAGS): Don't define USER_LABEL_PREFIX_UNDERSCORE.
2020-11-14 Bruno Haible <bruno@clisp.org>
xgettext: Add support for gettext-like functions with wide string argument.
Reported by Érico Nogueira <ericonr@disroot.org> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-11/msg00013.html>.
* gettext-tools/src/x-c.c (phase5_get): Recognize also the string-literal
prefixes 'u', 'U', 'L'. Consider all types of C++ raw strings as relevant.
* gettext-tools/tests/xgettext-c-5: Add more test cases.
* gettext-tools/tests/xgettext-c-c++-1: Likewise.
* NEWS: Mention it.
2020-11-14 Bruno Haible <bruno@clisp.org>
build: Fix warnings emitted by autoconf-2.69d.
* gettext-tools/configure.ac: Use AC_LINK_IFELSE instead of AC_TRY_LINK. Don't
invoke AC_FUNC_VFORK.
* gettext-tools/m4/exported.m4 (gt_GLOBAL_SYMBOL_PIPE): Require LT_PATH_NM
instead of AC_PROG_NM.
* gnulib-local/m4/libxml.m4 (gl_LIBXML): Use AC_LINK_IFELSE instead of
AC_TRY_LINK. Use AC_PREPROC_IFELSE instead of AC_TRY_CPP.
* libtextstyle/configure.ac: Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER.
* libtextstyle/gnulib-local/m4/libcroco.m4 (gl_LIBCROCO): Use AC_LINK_IFELSE
instead of AC_TRY_LINK.
* libtextstyle/gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Use AC_LINK_IFELSE
instead of AC_TRY_LINK. Require AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE.
* libtextstyle/gnulib-local/m4/termcap.m4 (gl_TERMCAP_BODY): Use AC_LINK_IFELSE
instead of AC_TRY_LINK.
* libtextstyle/gnulib-local/m4/terminfo.m4 (gl_TERMINFO_BODY): Use
AC_LINK_IFELSE instead of AC_TRY_LINK.
* m4/woe32-dll.m4 (gl_WOE32_DLL): Use AC_LINK_IFELSE instead of AC_TRY_LINK.
2020-10-25 Bruno Haible <bruno@clisp.org>
build: Set permissions of test scripts consistently.
Reported by Khem Raj <raj.khem@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-09/msg00007.html>.
* gettext-tools/tests/msgmerge-29: Make executable.
2020-10-18 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/lib/hash.h.diff: Update.
* gnulib-local/lib/hash.c.diff: Likewise.
2020-10-18 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-10-18 Bruno Haible <bruno@clisp.org>
Fix "warning: implicit declaration of function 'open'/'read'/'close'".
* gettext-runtime/intl/loadmsgcat.c: Include <io.h>.
(open, read, close): New macros on native Windows.
2020-10-17 Bruno Haible <bruno@clisp.org>
Fix "warning: 'max' macro redefined".
* gettext-tools/src/x-javascript.c (max): Undefine first.
* gettext-tools/src/x-python.c (max): Likewise.
2020-10-12 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* autogen.sh: Don't copy attribute.h, as it would have the wrong copyright header.
* gettext-runtime/intl/attribute.h: New file, from gnulib.
* gettext-runtime/intl/arg-nonnull.h: Update from gnulib.
* gettext-runtime/intl/localename.c: Likewise.
* gettext-runtime/intl/vasnprintf.c: Likewise.
* gettext-runtime/intl/verify.h: Likewise.
* gettext-runtime/libasprintf/vasnprintf.c: Likewise.
* gettext-runtime/m4/fcntl-o.m4: Likewise.
* gettext-runtime/m4/iconv.m4: Likewise.
* gettext-runtime/intl/thread-optim.h: New file, from gnulib.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add thread-optim.h.
* Makefile.am (distcheck-hook): Check also thread-optim.h.
2020-10-12 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-10-04 Bruno Haible <bruno@clisp.org>
build: Modernize autoconf macros.
* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Improve m4 quoting.
* gettext-runtime/m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Improve indentation.
* gettext-tools/m4/hostname.m4 (gt_PREREQ_HOSTNAME): Improve m4 quoting. Use
AC_CACHE_CHECK and AC_COMPILE_IFELSE.
* gettext-tools/m4/siginfo.m4 (gt_SIGINFO): Improve m4 quoting. Use
AC_COMPILE_IFELSE.
2020-10-04 Bruno Haible <bruno@clisp.org>
build: Assume ANSI C declaration of 'setlocale'.
* gettext-tools/tests/setlocale.c (setlocale): Assume SETLOCALE_CONST is
'const'.
* gettext-tools/tests/format-c-3-prg.c: Likewise.
* gettext-tools/tests/format-c-4-prg.c: Likewise.
* gettext-tools/tests/plural-1-prg.c: Likewise.
* gettext-tools/tests/tstgettext.c: Likewise.
* gettext-tools/tests/tstngettext.c: Likewise.
* gettext-tools/configure.ac: Don't invoke gt_SETLOCALE.
* gettext-tools/m4/setlocale.m4: Remove file.
* gettext-tools/m4/Makefile.am (EXTRA_DIST): Remove it.
2020-10-04 Bruno Haible <bruno@clisp.org>
Improve code style.
* gettext-tools/src/cldr-plural-exp.c: Indent and parenthesize for better
readability.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: no previous extern declaration for non-static variable".
* gettext-tools/src/write-desktop.c (msgfmt_methods): Make 'static'.
* gettext-tools/src/x-desktop.c (extract_methods): Likewise.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: this function declaration is not a prototype".
* gnulib-local/lib/xgetcwd.c (xgetcwd): Use ANSI C prototype syntax.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: no previous prototype for function 'its_*_eval'".
* gettext-tools/src/its.c (its_translate_rule_eval,
its_localization_note_rule_eval, its_element_within_text_rule_eval,
its_preserve_space_rule_eval, its_extension_context_rule_eval,
its_extension_escape_rule_eval): Make 'static'.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: no previous prototype for function 'locating_rule_list_destroy'".
* gettext-tools/src/locating-rule.c (locating_rule_list_destroy): Make 'static'.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: no previous prototype for function 'xgetcwd'".
* gnulib-local/lib/xgetcwd.c: Include "xgetcwd.h".
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: unannotated fall-through between switch labels".
* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC,
GNULIB_MODULES_LIBGETTEXTPO): Add 'attribute'.
* libtextstyle/autogen.sh (GNULIB_MODULES): Likewise.
* gettext-runtime/intl/plural.y: Include attribute.h. Use FALLTHROUGH annotated
empty statements instead of /* FALLTHROUGH */ comments.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/src/format-boost.c: Likewise.
* gettext-tools/src/read-stringtable.c: Likewise.
* gettext-tools/src/write-csharp.c: Likewise.
* gettext-tools/src/write-java.c: Likewise.
* gettext-tools/src/write-po.c: Likewise.
* gettext-tools/src/x-awk.c: Likewise.
* gettext-tools/src/x-c.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-javascript.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-perl.c: Likewise.
* gettext-tools/src/x-php.c: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-smalltalk.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/x-ycp.c: Likewise.
* gettext-tools/tests/tstgettext.c: Likewise.
* gettext-tools/tests/tstngettext.c: Likewise.
* libtextstyle/gnulib-local/lib/tparm.c: Likewise.
* gettext-runtime/src/escapes.h: Use FALLTHROUGH annotated empty statements
instead of /* FALLTHROUGH */ comments.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".
* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::write_mem):
Add 'const'.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".
* libtextstyle/gnulib-local/lib/html-ostream.oo.c (html_ostream::write_mem): Add
'const'.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".
* libtextstyle/gnulib-local/lib/fd-ostream.oo.c (fd_ostream::write_mem): Add
'const'.
2020-10-04 Bruno Haible <bruno@clisp.org>
Fix "warning: cast ... drops const qualifier".
* gnulib-local/lib/markup.c (slow_name_validate): Add 'const'.
2020-09-06 Bruno Haible <bruno@clisp.org>
Fix "warning: cast from 'const void *' to 'struct pre_message *' drops const qualifier".
* gettext-tools/src/write-mo.c (compare_id): Add 'const'.
2020-09-06 Bruno Haible <bruno@clisp.org>
Fix "warning: cast from 'const char *' to 'char *' drops const qualifier".
* gettext-tools/src/str-list.h (string_list_append_unique_desc,
string_list_member_desc): New declarations.
* gettext-tools/src/str-list.c (string_list_append_unique_desc,
string_list_member_desc): New functions.
* gettext-tools/src/msgfmt.c (add_languages): Don't modify the contents of
'line'.
2020-09-06 Bruno Haible <bruno@clisp.org>
Fix "warning: cast from 'const void *' to 'struct compiled_kwset *' drops const qualifier".
* gettext-tools/libgrep/m-fgrep.c (Fexecute): Add 'const'.
2020-09-06 Bruno Haible <bruno@clisp.org>
Fix "warning: cast from 'const void *' to 'const char **' drops const qualifier".
* gettext-runtime/src/envsubst.c (cmp_string): Add 'const'.
2020-09-06 Bruno Haible <bruno@clisp.org>
msgfmt: Simplify code.
* gettext-tools/src/msgfmt.c (msgfmt_desktop_bulk): Simplify.
2020-09-06 Bruno Haible <bruno@clisp.org>
Fix matching of languages in the LINGUAS environment variable.
Setting LINGUAS e.g. to "frs" should not cause fr.mo to get installed,
because Frisian is not a variant of French.
Reported by <arfrever.fta@gmail.com> in <https://savannah.gnu.org/bugs/?59062>.
* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Don't
consider $desiredlang a variant of $presentlang unless it has the syntax of a
variant.
2020-09-06 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
* gettext-runtime/configure.ac (AC_PREREQ): Likewise.
* gettext-runtime/libasprintf/configure.ac (AC_PREREQ): Likewise.
* libtextstyle/configure.ac (AC_PREREQ): Likewise.
* gettext-tools/configure.ac (AC_PREREQ): Likewise.
* gettext-tools/examples/configure.ac (AC_PREREQ): Likewise.
2020-09-06 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-09-06 Bruno Haible <bruno@clisp.org>
build: Add support for clang on Windows.
* m4/woe32-dll.m4 (gl_WOE32_DLL): Set gl_cv_ld_autoimport to 'no' on
MSVC and MSVC/clang.
2020-08-16 Bruno Haible <bruno@clisp.org>
Optimize also for clang.
* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Set to 1
also on clang.
2020-08-16 Bruno Haible <bruno@clisp.org>
Optimize also for clang.
* gnulib-local/lib/gettext.h (pgettext_aux, npgettext_aux, dcpgettext_expr,
dcnpgettext_expr): Inline also on clang.
2020-08-16 Bruno Haible <bruno@clisp.org>
Fix quoting of AC_LANG_SOURCE arguments.
* gettext-tools/m4/locale-de.m4 (gt_LOCALE_DE_UTF8): Simplify m4 quoting.
2020-08-07 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/verify.h: Update from gnulib.
* gettext-runtime/intl/vasnprintf.c: Likewise.
* gettext-runtime/libasprintf/vasnprintf.c: Likewise.
2020-08-07 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2020-08-07 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-08-01 Bruno Haible <bruno@clisp.org>
Prefer documented autoconf macro 'm4_if' over 'ifelse'.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Use m4_if instead of ifelse.
* gettext-runtime/m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2020-08-01 Bruno Haible <bruno@clisp.org>
Add comment about test failures on Cygwin.
* gettext-tools/tests/msginit-3: Add comment about a possible test failure.
* gettext-tools/tests/msginit-4: Likewise.
2020-08-01 Bruno Haible <bruno@clisp.org>
Fix build failure with bison 3.7. Revisit bison Makefile rules.
* gettext-runtime/intl/Makefile.am ($(srcdir)/plural.c): Keep and distribute the
plural.h file. Don't use --output option.
* gettext-tools/src/Makefile.am (YACC): Removed unused variable.
(po-gram-gen.c, po-gram-gen.h): Correct the #line statements in the generated
files.
(po-gram-gen2.h): Likewise.
(cldr-plural.c, cldr-plural.h): Likewise.
2020-07-31 Michele Locati <michele@locati.it>
build: Fix build failure on Cygwin and mingw.
* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_ruby.
2020-07-29 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-07-28 Bruno Haible <bruno@clisp.org>
Fix build error on Solaris 11 in 32-bit mode.
Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-07/msg00034.html>.
* gnulib-local/lib/getopt-core.h.diff: Don't include <config.h> if it has
already been included. This fixes the compilation of vma-iter.c.
2020-07-28 Bruno Haible <bruno@clisp.org>
Fix -export-symbols and -export-symbols-regex support on Solaris 11.3.
Apply fix from <https://savannah.gnu.org/patch/?9467>.
On Solaris 11.3 (as opposed to Solaris 11.0), the output of /usr/bin/nm -p
on object files contains, for global variables without initializer, the
letter 'C' (it was 'D' in Solaris 11.0).
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust symcode for Solaris.
2020-07-27 Bruno Haible <bruno@clisp.org>
Update post-release steps.
2020-07-27 Bruno Haible <bruno@clisp.org>
Update release steps.
2020-07-27 Bruno Haible <bruno@clisp.org>
Prepare for 0.21 release.
* gettext-tools/examples/hello-*/configure.{ac,in.in}: Reference gettext
version 0.21.
2020-07-27 Bruno Haible <bruno@clisp.org>
PO file changes from "make distcheck".
2020-07-26 Bruno Haible <bruno@clisp.org>
Update translations (from the TP).
* gettext-runtime/po/*.po: Update.
* gettext-tools/po/*.po: Update.
* gettext-tools/examples/po/*.po: Update.
* gettext-tools/examples/po/LINGUAS: Add 'nn'.
* gettext-tools/examples/hello-*/po/LINGUAS: Likewise.
* gettext-tools/examples/Makefile.am (EXAMPLESPOFILES): Add nn.po.
2020-07-26 Bruno Haible <bruno@clisp.org>
Prepare for 0.21 release.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* gettext-runtime/po/Makefile.in.in: Bump Origin version.
* NEWS, libtextstyle/NEWS, gettext-runtime/NEWS: Update.
* libtextstyle/lib/Makefile.am (LTV_*): Bump to 1:1:1.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 10:0:2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:7:5.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.21.
* gettext-tools/misc/autopoint.in: Allow version 0.21.
2020-07-26 Bruno Haible <bruno@clisp.org>
doc: Tweak libgettextpo chapter.
* gettext-tools/doc/gettext.texi (libgettextpo): Very small tweaks.
2020-07-26 Bruno Haible <bruno@clisp.org>
doc: Make function declarations easier to read.
* gettext-tools/doc/gettext.texi: Inside the argument list of function
declarations, use no-break spaces instead of spaces, except directly after
a comma.
2020-07-26 Bruno Haible <bruno@clisp.org>
doc: Canonicalize source.
* gettext-tools/doc/gettext.texi: Prefer long lines to @<newline> breaks.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Add Checking API
* gettext-tools/doc/gettext.texi (Checking API): New subsection. Add
po_file_check_all, po_message_check_all, and po_message_check_format
documentation
(libgettextpo): Add entry to the menu.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Update po_message_t API (VI)
* gettext-tools/doc/gettext.texi (po_message_t API): Add previous
message contents accessors po_message_prev_msgctxt,
po_message_set_prev_msgctxt, po_message_prev_msgid,
po_message_set_prev_msgid, po_message_prev_msgid_plural, and
po_message_set_prev_msgid_plural documentation.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Add format type API
* gettext-tools/doc/gettext.texi (Format Type API): New subsection.
Add po_format_list and po_format_pretty_name documentation.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Update po_message_t API (V)
* gettext-tools/doc/gettext.texi (po_message_t API): Update references
to the variable from the function declaration.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Update po_message_t API (IV)
* gettext-tools/doc/gettext.texi (po_message_t API): Add
po_message_is_obsolete, po_message_set_obsolete, po_message_is_fuzzy,
po_message_set_fuzzy, po_message_is_format, po_message_set_format,
po_message_is_range, and po_message_set_range documentation.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Add po_filepos_t API
* gettext-tools/doc/gettext.texi (po_filepos_t API): New
subsection. Add po_message_filepos, po_message_remove_filepos, and
po_message_add_filepos documentation.
(libgettextpo): Add new subsection to the menu.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Add Header Entry API
* gettext-tools/doc/gettext.texi (PO Header Entry API): New
subsection. Add po_file_domain_header, po_header_field and
po_header_set_field documentation.
(libgettextpo): Add subsection to the menu.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Update po_message_t API (III)
* gettext-tools/doc/gettext.texi (po_message_t API): Add
po_message_set_msgctxt, po_message_set_msgid,
po_message_set_msgid_plural, po_message_set_msgstr,
po_message_set_msgstr_plural, po_message_set_comments, and
po_message_set_extracted_comments documentation.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Update po_message_t API (II)
* gettext-tools/doc/gettext.texi (po_message_t API): Add
po_message_msgctxt, po_message_comments, and
po_message_extracted_comments documentation.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Update po_message_t API (I)
* gettext-tools/doc/gettext.texi (po_message_t API): Add
po_message_create documentation.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Update libgettextpo example
* gettext-tools/doc/gettext.texi (libgettextpo): Update example to the
latest API.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Move libgettextpo example to the front subsection.
* gettext-tools/doc/gettext.texi (po_message_t API): Move example from
here...
(libgettextpo): ... back to here.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Split libgettextpo documentation into subsections
* gettext-tools/doc/gettext.texi (libgettextpo): Add a menu and split
the functions an types into separate subsections.
(Error Handling): New subsection.
(po_file_t API): New subsection
(po_message_iterator_t API). New subsection.
(po_message_t API): New subsection.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Add po_file_write documentation
* gettext-tools/doc/gettext.texi (libgettextpo): Add po_file_write
documentation.
* gettext-tools/doc/gettext-po.in.h (po_file_write): Update comment.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Update po_file_read documentation
* gettext-tools/doc/gettext.texi (libgettextpo): Update documentation
from po_file_read to the version 3 of the implementation.
* gettext-tools/libgettextpo/gettext-po.in.h (po_file_read): Update
comment.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Add po_xerror_handler_t documentation
* gettext-tools/doc/gettext.texi (libgettextpo): Add struct
po_xerror_handler and its callbacks to the manual.
2020-07-26 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
doc: Add po_file_create documentation
* gettext-tools/doc/gettext.texi (libgettextpo): Add po_file_create
documentation.
2020-07-26 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't require gt_INTTYPES_PRI.
* gettext-runtime/m4/inttypes-pri.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
* Makefile.am (distcheck-hook): Don't compare inttypes-pri.m4.
* gettext-runtime/m4/size_max.m4: Update from gnulib.
2020-07-26 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-07-26 Bruno Haible <bruno@clisp.org>
Drop portability to AIX 4.
* gettext-runtime/intl/loadmsgcat.c: Assume PRI_MACROS_BROKEN is not set.
* gettext-tools/tests/format-c-3-prg.c: Likewise.
* gettext-tools/tests/format-c-4-prg.c: Likewise.
2020-07-18 Bruno Haible <bruno@clisp.org>
msgmerge: Make --sort-by-file sort messages without file reference correctly.
Reported by <wangqr@wangqr.tk> in <https://savannah.gnu.org/bugs/?58778>.
* gettext-tools/src/write-catalog.c (cmp_by_filepos): When a->filepos_count and
b->filepos_count are both 0, compare the msgid strings.
* gettext-tools/tests/msgmerge-29: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2020-07-15 Bruno Haible <bruno@clisp.org>
build: Fix a "make install" failure in a VPATH build with OpenBSD 'make'.
* gettext-tools/misc/Makefile.am: Assume that archive.dir.tar is in $(srcdir).
2020-07-08 Bruno Haible <bruno@clisp.org>
Fix a test failure on MSVC.
* gettext-tools/tests/recode-sr-latin-1: Allow CRLF newlines in the output.
2020-07-08 Bruno Haible <bruno@clisp.org>
Fix build error on mingw (regression from 2020-07-05).
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add fdopen.
2020-07-08 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-07-06 Bruno Haible <bruno@clisp.org>
alloca-opt: Fix build error on AIX (regression from 2020-07-05).
* gnulib-local/lib/alloca.in.h: Don't include <alloca.h>, since it would be a
recursive include of the same file.
2020-07-06 Bruno Haible <bruno@clisp.org>
Fix compilation error on AIX (regression from 2019-01-06).
* gettext-runtime/intl/Makefile.am (localename-table.h): Fix insertion of
export.h.
2020-07-06 Bruno Haible <bruno@clisp.org>
doc: Fix typo.
Reported by Arun Isaac <arunisaac@systemreboot.net> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-07/msg00001.html>.
* gettext-tools/doc/gettext.texi (Prioritizing messages): Fix a typo.
2020-07-06 Bruno Haible <bruno@clisp.org>
msgfmt: Supersede, not overwrite, the output file of type '.mo'.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'supersede'.
* gettext-tools/src/write-mo.c: Include supersede.h.
(msgdomain_write_mo): When writing to a file, use fopen_supersede and
fwriteerror_supersede.
* NEWS: Mention the change.
2020-07-05 Bruno Haible <bruno@clisp.org>
Avoid possible future conflict with gnulib module 'dirname'.
* gnulib-local/lib/basename.c: Remove file.
* gnulib-local/lib/basename.h: Remove file.
* gnulib-local/modules/basename: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
* gnulib-local/lib/addext.c: Include basename-lgpl.h instead of basename.h.
(addext): Invoke last_component instead of basename.
* gnulib-local/lib/backupfile.c: Include basename-lgpl.h instead of basename.h.
(find_backup_file_name): Invoke last_component instead of basename.
* gnulib-local/modules/backupfile (Depends-on): Remove basename. Add
basename-lgpl.
* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC,
GNULIB_MODULES_LIBGETTEXTPO): Remove basename. Add basename-lgpl.
* gettext-runtime/src/envsubst.c: Include basename-lgpl.h instead of basename.h.
(main): Invoke last_component instead of basename.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/tests/tstgettext.c: Likewise.
* gettext-tools/tests/tstngettext.c: Likewise. Include <string.h>.
* gettext-tools/src/recode-sr-latin.c: Include basename-lgpl.h instead of
basename.h.
(main, process): Invoke last_component instead of basename.
* gettext-tools/src/locating-rule.c: Include basename-lgpl.h instead of
basename.h.
(locating_rule_match): Invoke last_component instead of basename.
* gettext-tools/src/msgl-cat.c: Include basename-lgpl.h instead of basename.h.
(catenate_msgdomain_list): Invoke last_component instead of basename.
* gettext-tools/src/msgl-charset.c: Include basename-lgpl.h instead of
basename.h.
(compare_po_locale_charsets): Invoke last_component instead of basename.
* gettext-tools/src/msgl-iconv.c: Include basename-lgpl.h instead of basename.h.
(iconv_message_list_internal): Invoke last_component instead of basename.
* gettext-tools/src/po-charset.c: Include basename-lgpl.h instead of basename.h.
(po_lex_charset_set): Invoke last_component instead of basename.
* gettext-tools/src/x-python.c: Include basename-lgpl.h instead of basename.h.
(set_current_file_source_encoding): Invoke last_component instead of basename.
* gettext-tools/src/x-javascript.c: Don't include basename.h.
2020-07-05 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/lib/clean-temp.c.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.
* gettext-tools/src/write-csharp.c (msgdomain_write_csharp): Update fopen_temp
invocation.
* gettext-tools/src/write-java.c (msgdomain_write_java): Likewise.
2020-07-05 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-07-05 Bruno Haible <bruno@clisp.org>
gettext.h: Update from gnulib.
* gnulib-local/lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined.
2020-07-05 Bruno Haible <bruno@clisp.org>
alloca-opt: Update from gnulib.
* gnulib-local/lib/alloca.in.h: Update from gnulib.
* gnulib-local/m4/alloca.m4: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.
2020-07-05 Bruno Haible <bruno@clisp.org>
Avoid possible future conflict with gnulib module 'hash'.
* gnulib-local/lib/hash.c.diff: New file.
* gnulib-local/lib/hash.h.diff: New file.
* gnulib-local/Makefile.am (EXTRA_DIST): Add them.
2020-07-05 Bruno Haible <bruno@clisp.org>
Remove some now unneeded gnulib-tool --avoid options.
* autogen.sh: Remove some --avoid=*-tests options.
* libtextstyle/autogen.sh: Likewise.
2020-07-04 Bruno Haible <bruno@clisp.org>
Avoid a module name and include file name collision with gnulib.
* gnulib-local/lib/mem-hash-map.h: Renamed from gnulib-local/lib/hash.h.
* gnulib-local/lib/mem-hash-map.c: Renamed from gnulib-local/lib/hash.c.
Include mem-hash-map.h instead of hash.h.
* gnulib-local/modules/mem-hash-map: Renamed from gnulib-local/modules/hash.
Update.
* gnulib-local/Makefile.am (EXTRA_DIST): Update.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO):
Update.
* libtextstyle/gnulib-local/modules/term-styled-ostream (Depends-on): Likewise.
* gettext-tools/src/its.c: Include mem-hash-map.h instead of hash.h.
* gettext-tools/src/locating-rule.c: Likewise.
* gettext-tools/src/message.c: Likewise.
* gettext-tools/src/message.h: Likewise.
* gettext-tools/src/read-desktop.h: Likewise.
* gettext-tools/src/write-mo.c: Likewise.
* gettext-tools/src/write-qt.c: Likewise.
* gettext-tools/src/x-c.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-desktop.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/xg-arglist-callshape.h: Likewise.
* gettext-tools/src/xg-arglist-context.h: Likewise.
* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c: Likewise.
2020-07-04 Bruno Haible <bruno@clisp.org>
Remove redundant code (redundant since 2008-10-19).
* gnulib-local/modules/wait-process.diff: Remove file.
* gnulib-local/m4/unionwait.m4: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
2020-07-03 Bruno Haible <bruno@clisp.org>
Remove redundant code.
* gettext-tools/src/write-mo.c (msgdomain_write_mo): Remove a redundant test.
* gettext-tools/src/write-qt.c (msgdomain_write_qt): Likewise.
2020-06-27 Bruno Haible <bruno@clisp.org>
Add comment.
* gettext-tools/src/plural-eval.c (sigfpe_handler): Add comment.
2020-06-27 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/modules/fnmatch.diff: Remove file.
* gnulib-local/lib/fnmatch.c.diff: Remove file.
* gnulib-local/lib/fnmatch_loop.c.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
* gettext-tools/src/read-properties.c (properties_parse): Update the fread_file
invocation.
* gettext-tools/po/POTFILES.in: Remove gnulib-lib/copy-acl.c,
gnulib-lib/set-acl.c.
* gettext-runtime/intl/localename.c: Update from gnulib.
* gettext-runtime/intl/relocatable.c: Likewise.
* gettext-runtime/intl/verify.h: Likewise.
* gettext-runtime/intl/windows-rwlock.c: Likewise.
2020-06-26 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-06-06 Bruno Haible <bruno@clisp.org>
FAQ: Update information about mailing lists.
Reported by Vincent Lefèvre <vincent@vinc17.net> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-06/msg00003.html>.
* gettext-tools/doc/FAQ.html: Don't mention bug-gnu-utils. Clarify what
bug-gnu-gettext is.
2020-06-06 Bruno Haible <bruno@clisp.org>
msgunfmt: Detect more cases of invalid .mo files.
* gettext-tools/src/read-mo.c: Include hash-string.h.
(read_mo_file): Verify the array of messages and the hash table.
* gettext-tools/src/write-mo.c (write_table): Fix typo in comment.
* gettext-tools/src/Makefile.am (msgunfmt_SOURCES): Add hash-string.c.
* gettext-tools/tests/overflow-7.mo: Renamed from
gettext-tools/tests/sysdep-without-nul.mo.
* gettext-tools/tests/sysdep-without-nul.mo: New file.
* gettext-tools/tests/msgunfmt-3: Test also overflow-7.mo.
* gettext-tools/tests/Makefile.am (EXTRA_DIST): Add overflow-7.mo.
2020-06-06 Bruno Haible <bruno@clisp.org>
po-mode: Fix syntax highlighting of comment lines with double-quotes.
Reported by Vincent Lefèvre <vincent@vinc17.net> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-06/msg00000.html>.
* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump.
(po-font-lock-keywords): Move the rules that recognize comments to the
beginning.
2020-05-10 Bruno Haible <bruno@clisp.org>
Reorder list of programming languages.
* gettext-tools/src/format.h: Reorder declarations.
* gettext-tools/src/format.c (formatstring_parsers): Reorder entries.
* gettext-tools/src/message.h (enum format_type): Reorder items.
* gettext-tools/src/message.c (format_language, format_language_pretty): Reorder
entries.
* gettext-tools/src/xgettext.c: Reorder includes.
(flag_table_*): Reorder declarations.
(main): Reorder init_flag_table_* invocations.
(xgettext_record_flag): Reorder switch statement.
(language_to_extractor, extension_to_language): Reorder table entries.
* gettext-tools/src/format-smalltalk.c: Renamed from
gettext-tools/src/format-ycp.c.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/Makefile.am (noinst_HEADERS, FORMAT_SOURCE,
xgettext_SOURCES): Update.
* gettext-tools/po/POTFILES.in: Update.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Update.
* gettext-tools/tests/Makefile.am (TESTS): Reorder.
2020-05-10 Bruno Haible <bruno@clisp.org>
i18n: Update list of files.
* gettext-tools/po/POTFILES.in: Add missing files.
2020-05-10 Bruno Haible <bruno@clisp.org>
doc: Reorder list of programming languages.
* gettext-tools/doc/lang-c.texi: New file, extracted from
gettext-tools/doc/gettext.texi.
* gettext-tools/doc/lang-python.texi: Likewise.
* gettext-tools/doc/lang-java.texi: Likewise.
* gettext-tools/doc/lang-csharp.texi: Likewise.
* gettext-tools/doc/lang-javascript.texi: Likewise.
* gettext-tools/doc/lang-scheme.texi: Likewise.
* gettext-tools/doc/lang-lisp.texi: Likewise.
* gettext-tools/doc/lang-clisp-c.texi: Likewise.
* gettext-tools/doc/lang-elisp.texi: Likewise.
* gettext-tools/doc/lang-librep.texi: Likewise.
* gettext-tools/doc/lang-ruby.texi: Likewise.
* gettext-tools/doc/lang-sh.texi: Likewise.
* gettext-tools/doc/lang-bash.texi: Likewise.
* gettext-tools/doc/lang-gawk.texi: Likewise.
* gettext-tools/doc/lang-lua.texi: Likewise.
* gettext-tools/doc/lang-pascal.texi: Likewise.
* gettext-tools/doc/lang-smalltalk.texi: Likewise.
* gettext-tools/doc/lang-vala.texi: Likewise.
* gettext-tools/doc/lang-wxwidgets.texi: Likewise.
* gettext-tools/doc/lang-tcl.texi: Likewise.
* gettext-tools/doc/lang-perl.texi: Likewise.
* gettext-tools/doc/lang-php.texi: Likewise.
* gettext-tools/doc/lang-pike.texi: Likewise.
* gettext-tools/doc/lang-gcc-source.texi: Likewise.
* gettext-tools/doc/lang-ycp.texi: Likewise.
* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add them.
* gettext-tools/doc/gettext.texi (List of Programming Languages): Reorder list
of programming languages, approximately according to decreasing importance.
(PO Files): Reorder list for format string markers accordingly.
(Translators for other Languages): Likewise.
2020-05-10 Daiki Ueno <ueno@gnu.org>
xgettext: Warn if a fallback ITS file is used
* src/xgettext.c (main): Warn if a fallback ITS file is used.
Suggested by Will Thompson in:
<https://savannah.gnu.org/bugs/?56455>.
2020-05-09 Bruno Haible <bruno@clisp.org>
Reduce explicit use of __attribute__.
* gnulib-local/lib/xalloc.h: Include noreturn.h.
(xalloc_die): Use _GL_NORETURN_FUNC.
* gnulib-local/modules/xalloc (Depends-on): Add noreturn.
2020-05-09 Bruno Haible <bruno@clisp.org>
Reduce explicit use of __attribute__.
* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC): Add noreturn.
* gettext-runtime/src/envsubst.c: Include noreturn.h.
(usage): Use _GL_NORETURN_FUNC.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/src/msggrep.c: Include noreturn.h.
(no_pass, usage): Use _GL_NORETURN_FUNC.
* gettext-tools/src/msgl-iconv.c: Include noreturn.h.
(conversion_error): Use _GL_NORETURN_FUNC.
* gettext-tools/tests/tstgettext.c: Include noreturn.h.
(usage): Use _GL_NORETURN_FUNC.
* gettext-tools/tests/tstngettext.c: Likewise.
2020-05-09 Bruno Haible <bruno@clisp.org>
build: Fix "make distcheck" failure.
* gettext-tools/src/Makefile.am (po-gram-gen.c, cldr-plural.c): Don't use
ylwrap.
(MOSTLYCLEANFILES): Augment accordingly.
* gettext-tools/configure.ac (YACC): Remove assignment.
2020-05-08 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* autogen.sh: Create gettext-runtime/intl/attribute.h.
(GNULIB_MODULES_LIBASPRINTF): Add 'attribute'.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add attribute.h.
* Makefile.am (distcheck-hook): Test also gettext-runtime/intl/attribute.h.
* gettext-runtime/intl/vasnprintf.c: Update from gnulib.
* gettext-runtime/intl/xsize.h: Likewise.
* gettext-runtime/libasprintf/vasnprintf.c: Likewise.
2020-05-08 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-05-08 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/modules/fnmatch.diff: Update.
2020-05-08 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-05-03 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Remove redundant argument to
gl_PROG_BISON.
* gettext-tools/configure.ac: Likewise.
2020-05-03 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-05-01 Bruno Haible <bruno@clisp.org>
Clarify minimum needed bison version.
* gettext-tools/src/cldr-plural.y: Add %require declaration.
2020-05-01 Bruno Haible <bruno@clisp.org>
Tweak last commit.
* gettext-tools/src/po-gram-gen.y: Move %define declaration after the first code
block. Add %require declaration.
2020-05-01 Akim Demaille <akim.demaille@gmail.com>
Solidify remapping of function names of bison-generated parsers.
* gettext-tools/src/po-gram-gen.y: Use Bison's api.prefix (introduced in Bison
2.6) instead of handling renaming by hand. New symbols would have been not
renamed.
2020-05-01 Bruno Haible <bruno@clisp.org>
Update copyright year.
* gettext-runtime/intl/plural.y: Update copyright year.
2020-05-01 Bruno Haible <bruno@clisp.org>
intl: Require bison 3.0 or newer.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Require bison >= 3.0, not
bison >= 2.7.
2020-05-01 Akim Demaille <akim.demaille@gmail.com>
intl: Fix grammar conflicts instead of accepting them.
The seven conflicts are related to "a ? b : c <op> d". In all the
cases we left the S/R conflict be resolved as a shift, i.e., "a ? b
: (c <op> d)". To make this explicit, give the rule of the ternary
operator a very low precedence. In fact give it the same precedence
as "?". Now, to resolve the conflict in "a ? b : c ? d : e" be parsed
as "a ? b : (c ? d : e)", make them right-associative.
* gettext-runtime/intl/plural.y: Require Bison 3.0, to use %precedence
instead of useless associativities such as %right.
Make '?' and ':' of the same precedence, right associative.
2020-05-01 Bruno Haible <bruno@clisp.org>
build: Fix VPATH build failures with old bison when the *.y files are modified.
* gettext-runtime/intl/Makefile.am (BISON): New variable.
(YACC): Use it.
(plural.c): Don't do the post-processing if a suitable version of bison was not
found.
* gettext-tools/src/Makefile.am (BISON): New variable.
(po-gram-gen.c, cldr-plural.c): Don't do the post-processing if a suitable
version of bison was not found.
2020-05-01 Bruno Haible <bruno@clisp.org>
build: Simplify bison detection.
* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER): Add bison.
* gettext-runtime/configure.ac: Don't invoke AC_PROG_YACC.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Invoke gl_PROG_BISON.
2020-05-01 Bruno Haible <bruno@clisp.org>
build: Fix a build failure with bison < 3.0 when cldr-plural.y is modified.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add bison.
* gettext-tools/configure.ac: Don't invoke AC_PROG_YACC. Instead, invoke
gl_PROG_BISON, set YACC, and invoke gl_BISON.
2020-05-01 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-05-01 Bruno Haible <bruno@clisp.org>
build: Fix link error in tests (regression from 2020-04-26).
Reported and fix by Akim Demaille <akim.demaille@gmail.com>.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
format-ruby.c.
2020-04-27 Bruno Haible <bruno@clisp.org>
xgettext: Add Ruby support.
* gettext-tools/src/x-ruby.h: New file.
* gettext-tools/src/x-ruby.c: New file.
* gettext-tools/src/xgettext.h (verbose): New declaration.
* gettext-tools/src/xgettext.c: Include x-ruby.h.
(verbose): New declaration.
(flag_table_ruby): New variable.
(long_options): Add '--verbose'.
(main): Update for Ruby. Handle '-v'/'--verbose' option.
(usage): Document the '-L Ruby' and '-v' options.
(xgettext_record_flag, language_to_extractor, extension_to_language): Update for
Ruby.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add x-ruby.h.
(xgettext_SOURCES): Add x-ruby.c.
* gettext-tools/src/FILES: Mention x-ruby.h, x-ruby.c.
* gettext-tools/tests/xgettext-ruby-1: New file.
* gettext-tools/tests/format-ruby-1: New file.
* gettext-tools/tests/format-ruby-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/doc/gettext.texi (Ruby): New section.
* gettext-tools/doc/xgettext.texi: Document the '-L Ruby' and '-v' options.
* HACKING: Document the recommended Ruby packages.
* NEWS: Mention the Ruby support.
2020-04-27 Bruno Haible <bruno@clisp.org>
xgettext: Define alternate parser signature for the Ruby support.
* gettext-tools/src/xgettext.c (extract_from_stream_func): Renamed from
extractor_func.
(extract_from_file_func): New type.
(struct extractor_ty): Rename field func to extract_from_stream. New field
extract_from_file.
(main): Consider both fields.
(xgettext_find_file): New function.
(extract_from_file): Add alternative code for when the other extraction function
is defined.
(language_to_extractor): In the table, rename field func to extract_from_stream,
and add new field extract_from_file.
* gettext-tools/src/x-*.h (SCANNERS_*): Update.
2020-04-27 Bruno Haible <bruno@clisp.org>
xgettext: Define functions for the Ruby support.
* gettext-tools/src/xg-message.h (decide_is_format, intersect_range,
decide_do_wrap, decide_syntax_check): New declarations.
* gettext-tools/src/xg-message.c (decide_is_format, intersect_range,
decide_do_wrap, decide_syntax_check): New functions. extracted from
remember_a_message.
(remember_a_message): Invoke these functions.
2020-04-27 Bruno Haible <bruno@clisp.org>
str-list: Add a remove function.
* gettext-tools/src/str-list.h (string_list_remove): New declaration.
* gettext-tools/src/str-list.c (string_list_remove): New function.
2020-04-27 Bruno Haible <bruno@clisp.org>
Add support for Ruby format strings.
* gettext-tools/src/message.h (enum format_type): Add format_ruby.
* gettext-tools/src/message.c (format_language, format_language_pretty): Add an
entry for format_ruby.
(NFORMATS): Increment.
* gettext-tools/src/format.h (formatstring_ruby): New declaration.
* gettext-tools/src/format.c (formatstring_parsers): Add an entry for
format_ruby.
* gettext-tools/src/format-ruby.c: New file, based on
gettext-tools/src/format-python.c.
* gettext-tools/src/FILES: Mention it.
* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-ruby.c.
* gettext-tools/doc/gettext.texi (PO Files): Mention ruby-format.
(ruby-format): New section.
2020-04-27 Bruno Haible <bruno@clisp.org>
xgettext: Fix a comment.
* gettext-tools/src/x-po.c: Fix a comment.
2020-04-27 Bruno Haible <bruno@clisp.org>
Reduce heap allocation in format string parsers.
* gettext-tools/src/format-awk.c (struct spec): Remove 'allocated' field.
(format_parse): Use a local variable instead.
* gettext-tools/src/format-boost.c: Likewise.
* gettext-tools/src/format-elisp.c: Likewise.
* gettext-tools/src/format-gcc-internal.c: Likewise.
* gettext-tools/src/format-java-printf.c: Likewise.
* gettext-tools/src/format-javascript.c: Likewise.
* gettext-tools/src/format-kde.c: Likewise.
* gettext-tools/src/format-librep.c: Likewise.
* gettext-tools/src/format-lua.c: Likewise.
* gettext-tools/src/format-perl-brace.c: Likewise.
* gettext-tools/src/format-python.c: Likewise.
* gettext-tools/src/format-sh.c: Likewise.
* gettext-tools/src/format-tcl.c: Likewise.
* gettext-tools/src/format-c-parse.h (struct spec): Remove 'allocated' field.
(format_parse_entrails): Use a local variable instead.
* gettext-tools/src/format-pascal.c (struct spec): Remove 'allocated' field.
(format_parse): Rename a local variable.
* gettext-tools/src/format-perl.c: Likewise.
* gettext-tools/src/format-php.c: Likewise.
* gettext-tools/src/format-gfc-internal.c (format_parse): Rename a local
variable.
2020-04-27 Bruno Haible <bruno@clisp.org>
examples: Improve code style.
* gettext-tools/examples/hello-*/configure.ac: Improve quoting.
2020-04-27 Bruno Haible <bruno@clisp.org>
Update .gitignore after 2020-04-19 change.
2020-04-25 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/libasprintf/vasnprintf.c: Update from gnulib.
2020-04-20 Bruno Haible <bruno@clisp.org>
build: Fix a warning (regression from 2020-01-05).
* gettext-tools/tests/tstgettext.c (setlocale): Declare after defining as
fake_setlocale.
* gettext-tools/tests/tstngettext.c (setlocale): Likewise.
* gettext-tools/tests/plural-1-prg.c (setlocale): Likewise.
* gettext-tools/tests/format-c-3-prg.c (setlocale): Likewise.
* gettext-tools/tests/format-c-4-prg.c (setlocale): Likewise.
2020-04-20 Bruno Haible <bruno@clisp.org>
intl: Support any Unicode characters in the locale dir on native Windows.
Reported at <https://savannah.gnu.org/bugs/?57714>.
* gettext-runtime/intl/libgnuintl.in.h (libintl_wbindtextdomain): New
declaration.
(wbindtextdomain): New redirect.
* gettext-runtime/intl/bindtextdom.c (set_binding_values): Accept a wdirnamep
argument. Set not only binding->dirname but also binding->wdirname.
(BINDTEXTDOMAIN, BIND_TEXTDOMAIN_CODESET): Pass NULL as wdirnamep.
(libintl_wbindtextdomain): New function.
* gettext-runtime/intl/loadinfo.h (struct loaded_l10nfile): Add a wfilename
field.
(_nl_make_l10nflist): On native Windows, accept wdirlist, wdirlist_len
parameters.
* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): On native Windows, use
_wopen() instead of open() to open a file with a name given as wchar_t[].
* gettext-runtime/intl/l10nflist.c: Include <wchar.h>.
(_nl_make_l10nflist): On native Windows, accept wdirlist, wdirlist_len
parameters. Construct abs_wfilename and use in the search for existing
'struct loaded_l10nfile' and when allocating a fresh 'struct loaded_l10nfile'.
* gettext-runtime/intl/gettextP.h (struct binding): Add a wdirname field.
(_nl_find_domain): On native Windows, accept a wdirname parameter.
* gettext-runtime/intl/finddomain.c (_nl_find_domain): On native Windows, accept
a wdirname parameter. Pass it to _nl_make_l10nflist.
* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Consider not only
binding->dirname but also binding->wdirname. On native Windows, use _wgetcwd
instead of getcwd. Pass also wdirname to _nl_find_domain.
* gettext-tools/tests/intl-6: New file, based on gettext-tools/tests/intl-1.
* gettext-tools/tests/intl-6-prg.c: New file, based on
gettext-tools/tests/intl-1-prg.c.
* gettext-tools/tests/Makefile.am (TESTS): Add intl-6.
(check_PROGRAMS): Add intl-6-prg.
(intl_6_prg_SOURCES, intl_6_prg_LDADD): New variables.
* gettext-tools/doc/gettext.texi (Ambiguities, src/Makefile,
Language Implementors, C): Document wbindtextdomain.
* gettext-runtime/NEWS: Mention the change.
* NEWS: Likewise.
2020-04-20 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/vasnprintf.c: Update from gnulib.
2020-04-20 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-04-19 Bruno Haible <bruno@clisp.org>
intl: Add comment regarding debugging printf.
* gettext-runtime/intl/printf.c (ENABLE_WCHAR_FALLBACK): New commented
definition.
2020-04-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix a memory leak.
Reported by José E. Marchesi <jemarch@gnu.org>.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream::free): Free
also the stream's attrbuffer.
2020-04-14 Bruno Haible <bruno@clisp.org>
Update NEWS files after version 0.20.2 was released.
2020-04-14 Bruno Haible <bruno@clisp.org>
Fix typo in release steps.
2020-04-14 Bruno Haible <bruno@clisp.org>
Merge from 0.20.x branch: Update translations (from the TP).
* gettext-runtime/po/*.po: Update.
* gettext-tools/po/*.po: Update.
* gettext-tools/examples/po/*.po: Update.
* gettext-tools/examples/po/LINGUAS: Add 'sq'.
* gettext-tools/examples/hello-*/po/LINGUAS: Likewise.
* gettext-tools/examples/Makefile.am (EXAMPLESPOFILES): Add sq.po.
2020-04-14 Bruno Haible <bruno@clisp.org>
Merge from 0.20.x branch: examples: Use infrastructure from gettext version 0.20.2.
* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
version 0.20.2.
* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
2020-04-14 Bruno Haible <bruno@clisp.org>
Merge from 0.20.x branch: Prepare for 0.20.2 release.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 9:7:1.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.20.2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:6:5.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* gettext-runtime/src/envsubst.c: Update copyright years in --version output.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/gettext.sh.in: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/misc/convert-archive.in: Likewise.
* gettext-tools/misc/gettextize.in: Likewise.
* gettext-tools/misc/autopoint.in: Likewise. Handle version 0.20.2.
2020-04-14 Bruno Haible <bruno@clisp.org>
maint: Update download location of jdom-1.0.jar.
2020-04-14 Bruno Haible <bruno@clisp.org>
build: Fix the generation of hello-c-gnome3.pot (regression from 2019-10-04).
* gettext-tools/examples/po/Makefile.am (USE_BUILT_PROGS): Set also
GETTEXTDATADIR.
2020-04-13 Bruno Haible <bruno@clisp.org>
Fix a compilation error (regression from 2019-12-24).
* gettext-tools/src/write-desktop.c: Include <stdint.h>.
2020-04-12 Bruno Haible <bruno@clisp.org>
intl: Drop argz processing outside of glibc.
* gettext-runtime/intl/l10nflist.c: Don't test HAVE_ARGZ_H.
(__argz_count, __argz_stringify, __argz_next): Remove definitions.
(_nl_make_l10nflist): Simplify !_LIBC case.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for <argz.h>,
argz_count, argz_stringify, argz_next.
2020-04-12 Bruno Haible <bruno@clisp.org>
intl: Improve comments.
* gettext-runtime/intl/Makefile.am: Add an overview of the code.
* gettext-runtime/intl/loadinfo.h (_nl_make_l10nflist): Improve comment.
* gettext-runtime/intl/dcigettext.c (guess_category_value): Likewise.
* gettext-runtime/intl/finddomain.c (_nl_find_domain): Likewise.
2020-04-11 Bruno Haible <bruno@clisp.org>
po: Emit a warning when creating a tarball without POT file.
* gettext-runtime/po/Makefile.in.in (dist2): Emit a warning when the POT file
does not exist.
* gettext-tools/examples/hello-*/po/Makefile.am (distdir1): Likewise.
2020-04-11 Bruno Haible <bruno@clisp.org>
libtextstyle: Update .gitignore after 2019-12-24 change.
2020-04-11 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-04-10 Bruno Haible <bruno@clisp.org>
xgettext: Fix a report by an undefined-behaviour sanitizer.
Reported by Jeffrey Walton <noloader@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-01/msg00029.html>.
* gettext-tools/src/read-properties.c (read_escaped_string): Don't call memcpy
with a NULL argument.
2020-04-06 Bruno Haible <bruno@clisp.org>
xgettext: Improve JSX support in JavaScript.
Reported by Vaclav Slavik <vaclav@slavik.io> in
<https://savannah.gnu.org/bugs/?57927>.
* gettext-tools/src/x-javascript.c (enum token_type_ty): Add some more types.
(is_after_expression): New function.
(phase5_get): Distinguish the "other" tokens in more detail. Use
'is_after_expression ()' when interpreting a '<' or '/' character.
(extract_balanced): Don't let commas in braced expressions and in XML elements
disturb the argument processing outside.
(extract_javascript): Update.
* gettext-tools/tests/xgettext-javascript-6: Enhance the test.
* NEWS: Mention the change.
2020-04-06 Bruno Haible <bruno@clisp.org>
xgettext: Freshly initialize all static variables for each input file.
* gettext-tools/src/x-c.c (extract_whole_file): Initialize
phase1_pushback_length, phase2_pushback_length, phase3_pushback_length,
phase5_pushback_length, phase6_pushback_length.
* gettext-tools/src/x-csharp.c (extract_csharp): Initialize
phase1_pushback_length, phase2_pushback_length, phase3_pushback_length,
phase5_pushback_length, phase6_pushback_length, phase7_pushback_length.
* gettext-tools/src/x-java.c (extract_java): Initialize phase1_pushback_length,
phase2_pushback_length, phase3_pushback_length, phase5_pushback_length,
phase6_pushback_length.
* gettext-tools/src/x-javascript.c (continuation_or_nonblank_line,
last_token_type): Remove static initialization.
(extract_javascript): Initialize phase1_pushback_length, phase2_pushback_length,
phase5_pushback_length, last_token_type.
* gettext-tools/src/x-lua.c (first_character): Change type to 'bool'. Remove
static initialization.
(extract_lua): Initialize phase1_pushback_length, first_character,
phase3_pushback_length, phase4_last, phase4_pushback_length.
* gettext-tools/src/x-perl.c (extract_perl): Reorder initializations.
* gettext-tools/src/x-php.c (extract_php): Initialize phase1_pushback_length,
phase3_pushback_length, phase4_pushback_length.
* gettext-tools/src/x-python.c (continuation_or_nonblank_line): Remove static
initialization.
(extract_python): Initialize phase1_pushback_length, phase2_pushback_length,
phase5_pushback_length.
* gettext-tools/src/x-sh.c (extract_sh): Initialize phase1_pushback_length,
phase2_pushback_length.
* gettext-tools/src/x-smalltalk.c (extract_smalltalk): Initialize
phase2_pushback_length, phase3_pushback_length.
* gettext-tools/src/x-tcl.c (extract_tcl): Initialize phase1_pushback_length,
phase2_pushback_length.
* gettext-tools/src/x-vala.c (last_token_type): Remove static initialization.
(extract_vala): Initialize phase1_pushback_length, phase3_pushback_length,
last_token_type.
* gettext-tools/src/x-ycp.c (extract_ycp): Initialize phase2_pushback_length,
phase5_pushback_length, phase8_pushback_length.
2020-04-05 Bruno Haible <bruno@clisp.org>
po, examples: In the .po -> .gmo rules, really consider the newest changes to the POT file.
Reported by Petr Ovtchenkov <ptr@void-ptr.info> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00000.html>.
Helped by Paul Smith.
* gettext-runtime/po/Makefile.in.in (.po.gmo): Write dependency on the POT file
as a target rule, since inference rules don't support prerequisites.
* gettext-tools/examples/hello-*/po/Makefile.am: Likewise, also for the .po.qm
rule.
* NEWS: Mention the fix.
2020-04-04 Bruno Haible <bruno@clisp.org>
The gettext library is under LGPL 2.1, not 2.0.
* gettext-runtime/m4/intl.m4: Fix comments regarding the gettext library.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
* gettext-runtime/m4/progtest.m4: Likewise.
2020-04-04 Bruno Haible <bruno@clisp.org>
The next release will be 0.20.2, not 0.21.
* gettext-runtime/m4/gettext.m4: Update header comment.
* gettext-runtime/m4/intdiv0.m4: Likewise.
* gettext-tools/m4/exported.m4: Likewise.
2020-03-29 Bruno Haible <bruno@clisp.org>
doc: Don't recommend to use the reserved identifier '_' in Java.
Reported by Akim Demaille <akim.demaille@gmail.com>.
* gettext-tools/doc/gettext.texi (Java): Use i18n instead _ as magic identifier.
2020-03-28 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/lib/regex_internal.h.diff: Update.
* gnulib-local/lib/unistd.in.h.diff: Update.
* gettext-runtime/intl/filename.h: New file, from gnulib.
* gettext-runtime/intl/dcigettext.c (ISSLASH, HAS_DEVICE, IS_ABSOLUTE_PATH,
IS_PATH_WITH_DIR): Remove macros. Instead, include filename.h.
(IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New
macros.
(DCIGETTEXT): Use IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR.
* gettext-runtime/intl/l10nflist.c (ISSLASH, HAS_DEVICE, IS_ABSOLUTE_PATH):
Remove macros. Instead, include filename.h.
(IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
(_nl_make_l10nflist): Use IS_RELATIVE_FILE_NAME.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add filename.h.
(l10nflist.lo, dcigettext.lo): Depend on it.
* Makefile.am (distcheck-hook): Check also gettext-runtime/intl/filename.h.
* gettext-runtime/intl/lock.c: Update from gnulib.
* gettext-runtime/intl/lock.h: Likewise.
* gettext-runtime/intl/relocatable.c: Likewise.
* gettext-tools/src/locating-rule.c (locating_rule_list_locate): Use
IS_RELATIVE_FILE_NAME instead of IS_ABSOLUTE_PATH.
* gettext-tools/src/open-catalog.c (try_open_catalog_file): Likewise.
* gettext-tools/src/xgettext.c (main, xgettext_open): Likewise.
* libtextstyle/lib/color.c (style_file_lookup): Use IS_FILE_NAME_WITH_DIR
instead of IS_PATH_WITH_DIR.
2020-03-28 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2020-02-24 Bruno Haible <bruno@clisp.org>
urlget: Follow the "privacy by design" principle.
* gettext-tools/src/urlget.c (fetch): Override the User-Agent string, so as not
to reveal the program version to the server. For wget, use long options.
2020-02-23 Bruno Haible <bruno@clisp.org>
urlget: Follow the "privacy by design" principle.
* gettext-tools/src/gnu/gettext/GetURL.java (fetch): Override the User-Agent
string, so as not to reveal the Java version to the server.
2020-01-21 Bruno Haible <bruno@clisp.org>
libtextstyle: Prepare intermediate release 0.20.5.
* libtextstyle/version.sh: Update version number.
* libtextstyle/lib/Makefile.am (LTV_*): Bump to 1:0:1.
* libtextstyle/NEWS: Update.
* NEWS: Likewise.
2020-01-05 Bruno Haible <bruno@clisp.org>
build: Tweak configure.ac.
* gettext-runtime/configure.ac: Move AH_BOTTOM invocation, for consistency with
gettext-tools/configure.ac.
2020-01-05 Bruno Haible <bruno@clisp.org>
build: Fix link error on MSVC with --disable-shared.
* gettext-tools/tests/setlocale.c (setlocale): Define to fake_setlocale on
native Windows.
* gettext-tools/tests/format-c-3-prg.c (setlocale): Likewise.
* gettext-tools/tests/format-c-4-prg.c (setlocale): Likewise.
* gettext-tools/tests/plural-1-prg.c (setlocale): Likewise.
* gettext-tools/tests/tstgettext.c (setlocale): Likewise.
* gettext-tools/tests/tstngettext.c (setlocale): Likewise.
2020-01-05 Bruno Haible <bruno@clisp.org>
build: Fix build error on MSVC with --disable-shared.
* gettext-tools/configure.ac (AH_BOTTOM): On MSVC with --disable-shared, even
when compiling with option -MD, define DLL_VARIABLE to empty.
2020-01-05 Dmitry V. Levin <ldv@altlinux.org>
libtextstyle: Enable large files and, on Linux, 64-bit inodes support.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add 'largefile' to enable
large files support on systems where this is not the default and 64-bit
inodes in 32-bit applications on Linux.
2020-01-05 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2020-01-02 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/localcharset.c: Update from gnulib.
* gettext-runtime/intl/setlocale-lock.c: Likewise.
2020-01-02 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-12-24 Bruno Haible <bruno@clisp.org>
Fix a test failure of msgfmt-desktop-2 on HP-UX with cc.
* gettext-tools/src/write-desktop.c (msgfmt_desktop_handle_pair): Don't cast
directly from 'void *' to 'bool'.
2019-12-24 Bruno Haible <bruno@clisp.org>
Update after gnulib changed: Support building with --enable-threads=isoc.
* gettext-runtime/intl/dcigettext.c (lock): Move outside _nl_find_msg.
* gettext-runtime/intl/finddomain.c (lock): Move outside _nl_find_domain.
* gettext-runtime/intl/loadmsgcat.c (lock): Move outside _nl_load_domain.
2019-12-24 Bruno Haible <bruno@clisp.org>
Update after gnulib changed: Fix test failures on FreeBSD, NetBSD, macOS.
* gettext-tools/tests/setlocale.c (setlocale): Undefine.
2019-12-24 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Add
setlocale-null.
* gettext-runtime/intl/localcharset.h: Update from gnulib.
* gettext-runtime/intl/localcharset.c: Likewise.
* gettext-runtime/intl/localename.c: Likewise.
* gettext-runtime/intl/setlocale_null.h: New file, from gnulib.
* gettext-runtime/intl/arg-nonnull.h: New file, from gnulib.
* gettext-runtime/intl/setlocale_null.c: New file, from gnulib.
* gettext-runtime/intl/setlocale-lock.c: New file, from gnulib.
* gettext-runtime/intl/lock.h: Update from gnulib.
* gettext-runtime/intl/lock.c: Likewise.
* gettext-runtime/intl/threadlib.c: Likewise.
* gettext-runtime/intl/vasnprintf.c: Likewise.
* gettext-runtime/intl/verify.h: Likewise.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add arg-nonnull.h,
setlocale_null.h.
(LIBINTLSOURCES): Add setlocale-lock.c, setlocale_null.c.
(setlocale-lock.lo, setlocale_null.lo): New rules.
(localename.lo, setlocale-lock.lo, setlocale_null.lo): Update dependencies.
* Makefile.am (distcheck-hook): Check the new files in gettext-runtime/intl/.
* gettext-runtime/libasprintf/vasnprintf.c: Update from gnulib.
* gettext-tools/libgettextpo/Makefile.am (DEFS): Define OMIT_SETLOCALE_LOCK.
* gettext-runtime/NEWS: Mention the multithread-safety fix in localcharset.c.
* NEWS: Likewise.
2019-12-24 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-12-24 Bruno Haible <bruno@clisp.org>
Fix test failures on Haiku.
* gettext-tools/tests/init.cfg (func_filter_POT_Creation_Date): New function.
* gettext-tools/tests/xgettext-*: Use it.
2019-12-24 Bruno Haible <bruno@clisp.org>
build: Fix build failures on HP-UX 11.31/hppa with cc.
* gnulib-local/lib/libxml/parser.c (struct _xmlDefAttrs): Don't use ISO C 99
syntax with this compiler.
* gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): Set to 0 with
this compiler.
2019-12-24 Bruno Haible <bruno@clisp.org>
libtextstyle: Don't erase the .sym.in file if 'sed' is not GNU sed.
* libtextstyle/lib/Makefile.am (libtextstyle.sym.in): Test the exit status of
the declared.sh command. Preserve the existing libunistring.sym if it failed.
2019-11-25 Bruno Haible <bruno@clisp.org>
libcroco: Improve copyright headers.
The copyright headers should be unambiguous even if a single file is copied from
the GNU gettext package and used elsewhere. Reported by John Darrington.
* libtextstyle/gnulib-local/lib/libcroco/*: Inline the COPYRIGHT file where
applicable. Add copyright header.
* libtextstyle/gnulib-local/lib/libcroco/libcroco-config.h: Add copyright header.
2019-11-24 Bruno Haible <bruno@clisp.org>
libxml: Improve copyright headers.
The copyright headers should be unambiguous even if a single file is copied from
the GNU gettext package and used elsewhere. Reported by John Darrington.
* gnulib-local/lib/libxml/*: Inline this directory's COPYING file where
applicable. Add FSF copyright header.
* gnulib-local/lib/libxml/trionan.c: Add copyright header.
2019-11-24 Bruno Haible <bruno@clisp.org>
glib: Improve copyright headers.
The copyright headers should be unambiguous even if a single file is copied from
the GNU gettext package and used elsewhere. Reported by John Darrington.
* libtextstyle/gnulib-local/lib/glib*: Add FSF copyright header.
2019-10-28 Bruno Haible <bruno@clisp.org>
libtextstyle: Add test for ostream_printf.
* libtextstyle/gnulib-local/tests/test-memory-ostream.c: New file.
* libtextstyle/gnulib-local/modules/memory-ostream-tests: New file.
* libtextstyle/Makefile.am (EXTRA_DIST): Add them.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add 'memory-ostream-tests'.
2019-10-28 Bruno Haible <bruno@clisp.org>
libtextstyle: Add ostream_printf, ostream_vprintf functions.
Suggested by José Marchesi.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add 'vasprintf-posix'.
* libtextstyle/gnulib-local/lib/ostream.oo.h: Include <stdarg.h>.
(ostream_printf, ostream_vprintf): New declarations.
* libtextstyle/gnulib-local/lib/ostream.oo.c: Include <stdio.h>.
(ostream_printf, ostream_vprintf): New functions.
* libtextstyle/gnulib-local/lib/styled-ostream.oo.h: Update comments.
* libtextstyle/gnulib-local/lib/term-ostream.oo.h: Likewise.
* libtextstyle/gnulib-local/lib/html-ostream.oo.h: Likewise.
* libtextstyle/lib/textstyle.h: Include <stdio.h>.
(ostream_printf, ostream_vprintf): New functions.
(styled_ostream_flush_to_current_style, term_ostream_flush_to_current_style,
html_ostream_flush_to_current_style): Update comments.
* libtextstyle/doc/libtextstyle.texi (The ostream class): Document
ostream_printf, ostream_vprintf.
(The styled_ostream class, The term_ostream class, The html_ostream class):
Update comments.
* libtextstyle/NEWS: Mention it.
* NEWS: Likewise.
2019-10-28 Bruno Haible <bruno@clisp.org>
libtextstyle: Clarify memory_stream_contents function.
* libtextstyle/gnulib-local/lib/memory-ostream.oo.h (memory_stream::contents):
Clarify extent of return values.
* libtextstyle/doc/libtextstyle.texi (The memory_ostream class): Likewise.
2019-10-28 Bruno Haible <bruno@clisp.org>
build: Fix typo in comment.
* gettext-tools/gnulib-tests/Makefile.am: Fix typo.
* libtextstyle/adhoc-tests/Makefile.am: Likewise.
* libtextstyle/tests/Makefile.am: Likewise.
2019-10-20 Bruno Haible <bruno@clisp.org>
doc: Add more info for language implementors.
* gettext-tools/doc/gettext.texi (Language Implementors): Add more details.
2019-10-13 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/localcharset.c: Update from gnulib.
* gettext-runtime/intl/verify.h: Likewise.
2019-10-13 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2019-10-07 Bruno Haible <bruno@clisp.org>
doc: Mention continuous integration.
* HACKING: Mention continuous integration.
2019-10-06 Bruno Haible <bruno@clisp.org>
build: Fix failure to build the doc in a VPATH build.
* gettext-tools/doc/Makefile.am ($(srcdir)/stamp-vti): Create version.texi in
the source directory.
2019-10-06 Bruno Haible <bruno@clisp.org>
xgettext: Fix bug in shell script parser (regression from 2019-09-15).
* gettext-tools/src/x-sh.c (read_command): Set matters_for_argparser = false
when context_iter is not being initialized.
2019-10-06 Bruno Haible <bruno@clisp.org>
Correct indentation.
* gettext-tools/src/x-scheme.c (read_object): Correct indentation.
2019-10-05 Bruno Haible <bruno@clisp.org>
doc: Mention packages needed for Javascript support.
* HACKING: Mention the gir1.2-gtk-3.0 package alongside with gjs.
2019-10-04 Bruno Haible <bruno@clisp.org>
doc: Don't need an ar_SA locale.
* HACKING: Remove command that creates an ar_SA locale.
2019-10-04 Bruno Haible <bruno@clisp.org>
doc: Update list of external dependencies.
* DEPENDENCIES: Don't list glib2 and libcroco (not needed any more since
2019-02-15).
2019-10-04 Bruno Haible <bruno@clisp.org>
build: Fix the build error in gettext-tools/examples/po.
Reported by Nick Alcock <nix@esperi.org.uk>
at <https://savannah.gnu.org/bugs/?56529>.
* gettext-tools/examples/po/Makefile.am (USE_BUILT_PROGS): New variable.
(hello-*.pot): Use it.
($(srcdir)/../hello-*/po/$(LL).po): Likewise.
* HACKING: Remove the workaround.
2019-10-04 Bruno Haible <bruno@clisp.org>
Make it easier to build the code when the documentation tools don't work.
* libtextstyle/Makefile.am (SUBDIRS): Move 'doc' to the end.
2019-10-04 Bruno Haible <bruno@clisp.org>
libxml: Simplify autoconf macro.
* gnulib-local/m4/libxml.m4 (gl_LIBXML): Don't test for dlopen and shlload.
The test for dlopen failed, because it would require linking with '-ldl'.
The test for shlload failed, because the function on HP-UX is called 'shl_load'
and it would require linking with '-ldld'.
2019-10-04 Bruno Haible <bruno@clisp.org>
build: Don't fetch gnulib a second time in libtextstyle.
* autogen.sh: Set GNULIB_SRCDIR when invoking libtextstyle/autogen.sh.
* libtextstyle/autogen.sh: Remove all git operations. Look at the GNULIB_SRCDIR
environment variable. Ignore the GNULIB_TOOL environment variable.
2019-10-04 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix failure to download texinfo.tex.
* libtextstyle/autogen.sh: Create build-aux directory.
2019-09-30 Bruno Haible <bruno@clisp.org>
Update NEWS file.
* NEWS: Include the news about libtextstyle.
2019-09-29 Bruno Haible <bruno@clisp.org>
xgettext: Signal a warning when the same msgid is used with and without plural.
* gettext-tools/src/xg-message.h (remember_a_message): Add pluralp argument.
* gettext-tools/src/xg-message.c (remember_a_message): Likewise. Signal a
warning when the same msgid is used with and without plural.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Update
remember_a_message invocation.
* gettext-tools/src/xgettext.c (xgettext_its_extract_callback): Update
remember_a_message invocations.
* gettext-tools/src/x-awk.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-c.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-desktop.c (extract_desktop_handle_pair): Likewise.
* gettext-tools/src/x-elisp.c (read_object): Likewise.
* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
* gettext-tools/src/x-librep.c (read_object): Likewise.
* gettext-tools/src/x-lisp.c (read_object): Likewise.
* gettext-tools/src/x-lua.c (extract_balanced): Likewise.
* gettext-tools/src/x-perl.c (extract_variable, interpolate_keywords,
extract_balanced): Likewise.
* gettext-tools/src/x-php.c (extract_balanced): Likewise.
* gettext-tools/src/x-python.c (extract_balanced): Likewise.
* gettext-tools/src/x-rst.c (extract_rst, extract_rsj): Likewise.
* gettext-tools/src/x-scheme.c (read_object): Likewise.
* gettext-tools/src/x-sh.c (read_word, read_command): Likewise.
* gettext-tools/src/x-tcl.c (read_command): Likewise.
* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
* gettext-tools/src/x-smalltalk.c (phase3_pushback, phase3_pushback_length): New
variables.
(phase3_get): Renamed from x_smalltalk_lex. Handle pushback.
(phase3_unget): New function.
(extract_smalltalk): Update remember_a_message invocations through a lookahead
of one token.
* gettext-tools/src/x-ycp.c (phase8_pushback, phase8_pushback_length): New
variables.
(phase8_get): Handle pushback.
(phase8_unget): New function.
(extract_parenthesized): Update remember_a_message invocations through a
lookahead of one token.
* gettext-tools/tests/xgettext-15: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2019-09-29 Bruno Haible <bruno@clisp.org>
msgcat: Signal error when the same msgid is used with and without msgid_plural.
Suggested by Mikko Rantalainen <mikko.rantalainen@peda.net>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-09/msg00020.html>.
* gettext-tools/src/msgl-cat.c (catenate_msgdomain_list): Signal an error when
the same msgid is used with and without msgid_plural.
* gettext-tools/src/msgcat.c (main): Exit with failure code if there was an
error.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/tests/msgcat-21: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2019-09-29 Bruno Haible <bruno@clisp.org>
libxml: Fix buffer overrun.
Reported by GCC 8 -Wformat-truncation warning.
* gnulib-local/lib/libxml/parser.c (xmlParseReference): Increase size of buffer
'out' to 12 bytes.
2019-09-29 Bruno Haible <bruno@clisp.org>
xgettext: Fix parsing of XML tags.
* gettext-tools/src/x-javascript.c (phase5_get): Fix lexical_context after
decrementing xml_element_depth.
2019-09-29 Bruno Haible <bruno@clisp.org>
xgettext: Fix parsing of XML tags that end in /> and have attributes.
Reported by Matej Marusak <marusak.matej@gmail.com>
in <https://savannah.gnu.org/bugs/?56848>.
* gettext-tools/src/x-javascript.c (phase5_get): After reading a string, reset
the lexical_context to the previous one, not to lc_outside. When reading /> at
the end of an XML element, decrement xml_element_depth.
* gettext-tools/tests/xgettext-javascript-6: Add a test.
2019-09-29 Bruno Haible <bruno@clisp.org>
xgettext: Recognize text blocks in Java parser.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add
unictype/syntax-java-whitespace.
* gettext-tools/src/x-java.c: Include unictype.h.
(strip_indent): New function.
(phase5_get): Parse text blocks (Java 13 syntax).
* gettext-tools/tests/xgettext-java-2: Add tests of text blocks.
* gettext-tools/doc/gettext.texi (Java): Mention the text block syntax.
* NEWS: Mention the change.
2019-09-29 Bruno Haible <bruno@clisp.org>
xgettext: Verify parsing of JavaScript template literals inside objects.
Reported by Andy Holmes <andrew.g.r.holmes@gmail.com>
in <https://savannah.gnu.org/bugs/?50920>.
* gettext-tools/tests/xgettext-javascript-7: Test template literals inside an
object.
2019-09-16 Bruno Haible <bruno@clisp.org>
xgettext: Recognize 'env' and assignments in Shell scripts.
Reported by Jason Vas Dias <jason.vas.dias@gmail.com>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-08/msg00032.html>.
* gettext-tools/src/x-sh.c (enum word_type): Add t_assignment.
(read_word): Recognize assignments.
(read_command): In a function position, ignore assignments and 'env' tokens.
* gettext-tools/tests/xgettext-sh-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* NEWS: Mention the change.
2019-09-16 Bruno Haible <bruno@clisp.org>
Document improvement done on 2019-05-20.
* gettext-runtime/NEWS: Document improvement.
* NEWS: Likewise.
2019-09-14 Bruno Haible <bruno@clisp.org>
build: Install gettext.h with the LGPL license header, not with the GPL header.
Reported by Joachim Metz <joachim.metz@gmail.com>
in <https://lists.gnu.org/archive/html/bug-gettext/2012-09/msg00000.html>.
* gettext-tools/gnulib-lib/Makefile.am (gettextsrcdir, gettextsrc_DATA): Remove
variables.
* gnulib-local/Makefile.am (gettextsrcdir, gettextsrc_DATA): Define them here.
2019-09-14 Bruno Haible <bruno@clisp.org>
Clarify license of gettext.m4.
* gettext-runtime/m4/gettext.m4: Update comments: libintl is under LGPLv2.1+.
2019-09-14 Bruno Haible <bruno@clisp.org>
build: Avoid failing a configure test due to CFLAGS="-Werror".
Reported by Florian Weimer <fweimer@redhat.com>.
* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): In the test program, include
<unistd.h>, for the declaration of _exit().
2019-09-01 Bruno Haible <bruno@clisp.org>
build: Add support for shallow-cloning of subdirectories.
* gitsub.sh (func_usage): Document allowed git options with 'git pull'.
(func_pull): Accept GIT_OPTIONS argument.
(pull): Parse git options before complaining about too many arguments.
Pass the git options to func_pull.
2019-08-25 Bruno Haible <bruno@clisp.org>
xgettext: Assume that Python source files are in UTF-8 by default.
Reported by ilias iliadis <apiuano-bugs@yahoo.gr>
at <https://savannah.gnu.org/bugs/?55231>.
* gettext-tools/src/xg-encoding.h (xgettext_global_source_encoding): Allow a
NULL value.
* gettext-tools/src/xg-encoding.c (xgettext_global_source_encoding): Likewise.
* gettext-tools/src/xgettext.c (main): Initialize
xgettext_global_source_encoding with NULL, not "ASCII". Handle a NULL
xgettext_global_source_encoding.
(extract_from_file): Use ASCII as default for xgettext_global_source_encoding.
* gettext-tools/src/x-javascript.c (extract_javascript): Likewise.
* gettext-tools/src/x-python.c (phase2_getc): Signal an error when encountering
an invalid or incomplete UTF-8 character.
(set_current_file_source_encoding): In the error message, use
xgettext_current_file_source_encoding instead of
xgettext_global_source_encoding.
(extract_python): Use UTF-8 as default for xgettext_global_source_encoding.
* gettext-tools/tests/xgettext-python-3: Verify that if the source file has no
magic coding comment but is UTF-8 encoded, xgettext succeeds.
* NEWS: Mention the change.
2019-08-25 Bruno Haible <bruno@clisp.org>
Add support for Java format strings in the Formatter syntax.
* gettext-tools/src/message.h (format_type): Add format_java_printf.
(NFORMATS): Increment.
* gettext-tools/src/message.c (format_language, format_language_pretty): Add
entry for format_java_printf.
* gettext-tools/src/format.h (formatstring_java_printf): New declaration.
* gettext-tools/src/format-java.c: Update comments.
* gettext-tools/src/format-java-printf.c: New file.
* gettext-tools/src/format.c (formatstring_parsers): Add entry for
format_java_printf.
* gettext-tools/src/x-java.h (SCANNERS_JAVA): Use formatstring_java_printf.
* gettext-tools/src/x-java.c (init_flag_table_java): Add entries relevant to
format strings in Formatter syntax.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Add support for
format_java_printf.
* gettext-tools/src/FILES: Add format-java-printf.c.
* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-java-printf.c.
* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_java_printf.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Likewise.
* gettext-tools/tests/xgettext-6 (xg-test6.java): Add test for recognition of
format strings in Formatter syntax.
* gettext-tools/tests/format-java-printf-1: New file.
* gettext-tools/tests/format-java-printf-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/tests/lang-java: Add two uses of String.format to the program.
* gettext-tools/doc/gettext.texi (PO Files): Document java-printf-format and
no-java-printf-format.
(java-format): Describe both kinds of format strings. Update URLs.
(Java): Mention the second kind of format string as well.
* NEWS: Mention the improvement.
2019-08-25 Bruno Haible <bruno@clisp.org>
tests: Remove comments about GCJ.
We don't support GCJ any more since 2017-05-04.
* gettext-tools/tests/lang-java: Remove comment about failure with GCJ.
* gettext-tools/tests/msgunfmt-java-1: Likewise.
2019-08-25 Bruno Haible <bruno@clisp.org>
Update compile-command in comments.
* gettext-tools/src/format-*.c: Fix -I options in compile-command.
2019-08-25 Bruno Haible <bruno@clisp.org>
desktop: Small parser fix.
* gettext-tools/src/read-desktop.c (desktop_lex): Fix handling of control
characters in group names.
2019-08-25 Bruno Haible <bruno@clisp.org>
code style: Avoid gratuitous 'continue;' statements.
* gettext-tools/src/file-list.c (read_names_from_file): Use 'if' instead of
'continue'.
* gettext-tools/src/its.c (its_rule_list_add_from_doc): Likewise.
* gettext-tools/src/locating-rule.c (locating_rule_list_add_from_file):
Likewise.
* gettext-tools/src/msgfmt.c (get_languages): Likewise.
* gettext-tools/src/x-javascript.c (phase5_scan_xml_markup): Likewise.
* gettext-tools/src/x-lua.c (phase2_getc): Likewise.
* gettext-tools/src/read-desktop.c (desktop_lex): Use 'if' instead of 'switch'
with few alternatives. Test for EOF first.
2019-08-24 Bruno Haible <bruno@clisp.org>
autogen.sh: Make more reliable.
* autogen.sh: Really bail out if gnulib-tool fails to copy config.{guess,sub}.
2019-08-22 Bruno Haible <bruno@clisp.org>
xgettext: Handle newlines in Lua long bracket literal strings correctly.
Reported by Frans de Jonge <fransdejonge@gmail.com>
at <https://savannah.gnu.org/bugs/?56794>.
* gettext-tools/src/x-lua.c (phase3_get): Test for EOF first. After an opening
long bracket, swallow one newline.
* gettext-tools/tests/xgettext-lua-1: Add tests for newlines in long brackets.
* gettext-tools/tests/xgettext-lua-2: Update comment.
2019-08-19 Bruno Haible <bruno@clisp.org>
xgettext: Recognize gettext -e invocations in shell parser.
Reported by Eugene V. Lyubimkin <jackyf.devel@gmail.com>
in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507091>.
* gettext-runtime/src/escapes.h: New file, extracted from
gettext-runtime/src/gettext.c.
* gettext-runtime/src/gettext.c: Include escapes.h.
(expand_escape): Remove function.
(inhibit_added_newline): New variable.
(add_newline): Remove variable.
(main): Initialize inhibit_added_newline. Invoke expand_escapes instead of
expand_escape.
* gettext-runtime/src/ngettext.c: Include escapes.h.
(expand_escape): Remove function.
(main): Invoke expand_escapes instead of expand_escape.
* gettext-runtime/src/Makefile.am (gettext_SOURCES, ngettext_SOURCES): Add
escapes.h.
* gettext-tools/tests/tstgettext.c: Include escapes.h.
(expand_escape): Remove function.
(inhibit_added_newline): New variable.
(add_newline): Remove variable.
(main): Initialize inhibit_added_newline. Invoke expand_escapes instead of
expand_escape.
* gettext-tools/tests/Makefile.am (tstgettext_SOURCES): Add escapes.h.
* gettext-tools/src/x-sh.c: Include escapes.h.
(read_command): Recognize a '-e' option in the argument list of gettext and
ngettext.
* gettext-tools/src/Makefile.am (xgettext_SOURCES): Add escapes.h.
* gettext-tools/tests/xgettext-sh-1: Test the recognition of gettext -e
arguments.
* NEWS: Mention the change.
2019-08-19 Bruno Haible <bruno@clisp.org>
doc: Fix documentation of gettext, ngettext programs.
* gettext-runtime/doc/rt-gettext.texi: Clarify when the additional newline is
emitted.
* gettext-runtime/doc/rt-ngettext.texi: Remove '\c' from the list of recognized
escape sequences.
2019-08-19 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/localcharset.c: Update from gnulib.
* gettext-runtime/intl/verify.h: Likewise.
2019-08-19 Bruno Haible <bruno@clisp.org>
gettext, ngettext: Fix the expansion of '\\' and octal escape sequences.
* gettext-runtime/src/gettext.c (expand_escape): Don't swallow the expansion
of '\\' and octal escape sequences.
* gettext-runtime/src/ngettext.c (expand_escape): Likewise.
* gettext-tools/tests/tstgettext.c (expand_escape): Likewise.
* NEWS: Mention the change.
2019-08-19 Bruno Haible <bruno@clisp.org>
xgettext: Fix parsing of escaped single-quote characters in shell parser.
Reported by Markus Gothe <nietzsche@lysator.liu.se>
at <https://savannah.gnu.org/bugs/?49809>.
* gettext-tools/src/x-sh.c (phase2_getc): Handle the case c == '\''
&& !open_singlequote && !open_doublequote differently.
* gettext-tools/tests/xgettext-sh-1: Add test with an escape single-quote.
2019-08-19 Bruno Haible <bruno@clisp.org>
xgettext: Fix endless loop in shell parser.
Reported by Hanno Boeck at <https://savannah.gnu.org/bugs/?45408>.
Based on patch by Daiki Ueno.
* gettext-tools/src/x-sh.c (read_word): React on CLOSING_BACKQUOTE even when we
are currently not looking for a closing backquote.
2019-08-18 Bruno Haible <bruno@clisp.org>
build: Don't use an obsolete libtool macro.
* gettext-tools/m4/exported.m4 (gt_GLOBAL_SYMBOL_PIPE): Require
_LT_CMD_GLOBAL_SYMBOLS, not AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE.
2019-08-18 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2019-08-18 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix VPATH build (regression from yesterday).
* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Search also the glib subdirectory
of the build dir.
2019-08-18 Bruno Haible <bruno@clisp.org>
Don't extract Icon values from .desktop files into POT files.
Reported by Piotr Drąg <piotrdrag@gmail.com>
at <https://savannah.gnu.org/support/?108887>
and by Will Thompson <wjt@endlessm.com>
at <https://savannah.gnu.org/bugs/?56543>.
There was a discussion starting at
<https://lists.freedesktop.org/archives/xdg/2019-June/014158.html>.
The most interesting posts in this thread were
<https://lists.freedesktop.org/archives/xdg/2019-June/014164.html>
<https://lists.freedesktop.org/archives/xdg/2019-June/014167.html>.
* gettext-tools/doc/gettext.texi (Icons): New subsubsection.
* gettext-tools/src/read-desktop.c (desktop_add_default_keywords): Don't add
"Icon".
* gettext-tools/src/x-desktop.c: Update comments.
* gettext-tools/doc/xgettext.texi (Desktop): Remove 'Icon' from the list of
extracted keys.
* gettext-tools/tests/xgettext-desktop-2: New file.
* gettext-tools/tests/msgfmt-desktop-3: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* NEWS: Mention the change.
2019-08-18 Bruno Haible <bruno@clisp.org>
maint: Document how to deal with the build error in gettext-tools/examples/po.
Reported by Nick Alcock <nix@esperi.org.uk>
at <https://savannah.gnu.org/bugs/?56529>.
* HACKING (Building off the Git repository): Explain the common build error and
how to fix it.
2019-08-17 Bruno Haible <bruno@clisp.org>
libtextstyle: Upgrade to libcroco-0.6.13.
This fixes a couple of warnings.
Reported by Frank Hunleth <fhunleth@troodon-software.com>
at <https://savannah.gnu.org/bugs/?55356>.
* libtextstyle/gnulib-local/lib/libcroco/*: Upgrade to version 0.6.13.
* libtextstyle/gnulib-local/modules/libcroco: Update.
* libtextstyle/gnulib-local/lib/glib/gmacros.in.h: New file, based on
glib-2.12.4/glib/gmacros.h.
* libtextstyle/gnulib-local/lib/glib/gprintfint.in.h: New file, based on
glib-2.12.4/glib/gprintfint.h.
* libtextstyle/Makefile.am (EXTRA_DIST): Add them.
* libtextstyle/gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Add glib/gmacros.h and
glib/gprintfint.h to LIBGLIB_H.
* libtextstyle/gnulib-local/modules/libglib (Files): Add lib/glib/gmacros.in.h,
lib/glib/gprintfint.in.h.
(Depends-on): Add snprintf-posix.
(glib/gmacros.h, glib/gprintfint.h): New rules.
(MOSTLYCLEANFILES): Add glib/gmacros.h, glib/gprintfint.h.
* libtextstyle/gnulib-local/lib/glib.in.h: Include glib/gmacros.h.
* libtextstyle/gnulib-local/lib/glib/gstrfuncs.in.h (g_ascii_dtostr,
g_ascii_formatd, g_ascii_strcasecmp): Enable declarations.
* libtextstyle/gnulib-local/lib/glib/gstrfuncs.c: Include gprintfint.h.
(g_ascii_dtostr, g_ascii_formatd): Enable.
(ISSPACE, ISUPPER, ISLOWER, ISALPHA, TOUPPER, TOLOWER): Move out of function
g_parse_long_long.
(g_ascii_strcasecmp): Enable.
2019-08-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Document the hyperlink support.
* libtextstyle/doc/libtextstyle.texi (The NO_TERM_HYPERLINKS variable): New
section.
(Hyperlinks): New subsection.
(The abstract styled_ostream class): Document styled_ostream_get_hyperlink_ref,
styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink.
(The term_ostream class): Document term_ostream_get_hyperlink_ref,
term_ostream_get_hyperlink_id, term_ostream_set_hyperlink.
(The html_ostream class): Document html_ostream_get_hyperlink_ref,
html_ostream_set_hyperlink_ref.
* libtextstyle/NEWS: Mention it.
2019-08-14 Bruno Haible <bruno@clisp.org>
libtextstyle: styled-ostream: Add hyperlink support.
* libtextstyle/gnulib-local/lib/styled-ostream.oo.h (struct styled_ostream): Add
methods get_hyperlink_ref, get_hyperlink_id, set_hyperlink.
* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c
(term_styled_ostream::get_hyperlink_ref, term_styled_ostream::get_hyperlink_id,
term_styled_ostream::set_hyperlink): New functions.
* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c
(struct html_styled_ostream): Add field hyperlink_id.
(html_styled_ostream::free): Free the hyperlink_id field.
(html_styled_ostream::get_hyperlink_ref, html_styled_ostream::get_hyperlink_id,
html_styled_ostream::set_hyperlink): New functions.
(html_styled_ostream_create): Initialize the hyperlink_id field.
* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.c
(struct noop_styled_ostream): Add fields hyperlink_ref, hyperlink_id.
(noop_styled_ostream::free): Free the hyperlink_ref and hyperlink_id fields.
(noop_styled_ostream::get_hyperlink_ref, noop_styled_ostream::get_hyperlink_id,
noop_styled_ostream::set_hyperlink): New functions.
(noop_styled_ostream_create): Initialize the hyperlink_ref and hyperlink_id
fields.
* libtextstyle/lib/textstyle.h (styled_ostream_get_hyperlink_ref,
styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
term_styled_ostream_get_hyperlink_ref, term_styled_ostream_get_hyperlink_id,
term_styled_ostream_set_hyperlink, html_styled_ostream_get_hyperlink_ref,
html_styled_ostream_get_hyperlink_id, html_styled_ostream_set_hyperlink,
noop_styled_ostream_get_hyperlink_ref, noop_styled_ostream_get_hyperlink_id,
noop_styled_ostream_set_hyperlink): New declarations.
* libtextstyle/adhoc-tests/hello.c (main): Invoke styled_ostream_set_hyperlink.
2019-08-14 Bruno Haible <bruno@clisp.org>
libtextstyle: html-ostream: Add hyperlink support.
* libtextstyle/gnulib-local/lib/html-ostream.oo.h (struct html_ostream): Add
methods get_hyperlink_ref, set_hyperlink_ref.
* libtextstyle/gnulib-local/lib/html-ostream.oo.c (struct html_ostream): Add
field hyperlink_ref;
(write_attribute_value): New function.
(html_ostream::free): Emit an anchor end if needed.
(html_ostream::get_hyperlink_ref, html_ostream::set_hyperlink_ref): New
functions.
(html_ostream_create): Initialize the hyperlink_ref field.
* libtextstyle/lib/textstyle.h (html_ostream_get_hyperlink_ref,
html_ostream_set_hyperlink_ref): New declarations.
2019-08-14 Bruno Haible <bruno@clisp.org>
libtextstyle: term-ostream: Add hyperlink support.
* libtextstyle/gnulib-local/lib/term-ostream.oo.h (struct term_ostream): Add
methods get_hyperlink_ref, get_hyperlink_id, set_hyperlink.
* libtextstyle/gnulib-local/lib/term-ostream.oo.c: Include <stdint.h>,
<sys/time.h>, get_ppid_of.h, get_progname_of.h, xgethostname.h.
(hyperlink_t): New type.
(free_hyperlink): New function.
(attributes_t): Add 'hyperlink' field.
(equal_attributes): Compare also the 'hyperlink' field.
(struct term_ostream): Add fields supports_hyperlink, restore_hyperlink,
hostname_hash, start_time, id_serial, hyperlinks_array, hyperlinks_count,
hyperlinks_allocated, active_attr_hyperlink.
(simplify_attributes): Deal with 'hyperlink' field.
(generate_hyperlink_id): New function.
(out_hyperlink_change): New function.
(out_attr_change): Set active_attr_hyperlink. Invoke out_hyperlink_change.
(restore, async_restore): Use stream->restore_hyperlink.
(async_set_attributes_from_default): Invoke out_hyperlink_change.
(output_buffer): At the end, free the unused hyperlink_t objects.
(term_ostream::free): Free the hyperlinks_array and its contents.
(term_ostream::get_hyperlink_ref, term_ostream::get_hyperlink_id,
term_ostream::set_hyperlink): New functions.
(get_terminal_emulator_progname, should_enable_hyperlinks): New functions.
(term_ostream_create): Set the fields supports_hyperlink, restore_hyperlink,
hostname_hash, start_time, id_serial, hyperlinks_array, hyperlinks_count,
hyperlinks_allocated.
* libtextstyle/gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Test for
getsid function.
* libtextstyle/gnulib-local/modules/term-ostream (Depends-on): Add gettimeofday,
get_ppid_of, get_progname_of, stdint, xgethostname.
* libtextstyle/lib/textstyle.h (term_ostream_get_hyperlink_ref,
term_ostream_get_hyperlink_id, term_ostream_set_hyperlink): New declarations.
2019-08-14 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2019-08-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Support the NO_COLOR environment variable.
It follows the specification at https://no-color.org/.
The support is in the example programs, not in the function
styled_ostream_create, so that it can be overridden through the command-line
option --color=always.
We only test whether the environment variable is set, not whether its value
is non-empty. POSIX-specified environment variables are treated like unset
when their value is empty; this is because in the old days it was not possible
to unset an environment variable. But nowadays:
- all shells support the 'unset' built-in,
- all platforms that have the setenv() function also have the unsetenv()
function, and
- the 'env' program from GNU coreutils supports --unset=VARIABLE to unset a
variable.
This makes it possible to unset an environment variable that is set by the
parent process.
* libtextstyle/adhoc-tests/hello.c (main): Do not emit styling when the
environment variable NO_COLOR is set.
* libtextstyle/examples/color-filter/filter.c (main): Likewise.
* libtextstyle/examples/color-hello/hello.c (main): Likewise.
* gettext-tools/src/write-catalog.c (msgdomain_list_print): Likewise.
* libtextstyle/doc/libtextstyle.texi (The NO_COLOR variable): New section.
* libtextstyle/NEWS: Mention it.
2019-08-12 Bruno Haible <bruno@clisp.org>
xalloc: Add x2realloc function, from gnulib.
* gnulib-local/lib/xalloc.h (x2realloc): New declaration, from
gnulib/lib/xalloc.h.
* gnulib-local/lib/xmalloc.c (x2nrealloc): New function, from
gnulib/lib/xalloc.h.
(x2realloc): New function, from gnulib/lib/xmalloc.c.
* gnulib-local/modules/xalloc (configure.ac): Require AC_C_INLINE.
2019-08-12 Bruno Haible <bruno@clisp.org>
Drop our xalloc_oversized macro in favour of gnulib's xalloc_oversized macro.
* gnulib-local/lib/xalloc.h: Include xalloc-oversized.h.
(xalloc_oversized): Remove macro.
* gnulib-local/modules/xalloc (Depends-on): Add 'xalloc-oversized'.
2019-07-28 Bruno Haible <bruno@clisp.org>
xgettext: Fix parsing of JavaScript template literals inside functions.
Reported by Dmitry Vinnik <vinnik.dmitry07@gmail.com>
in <https://savannah.gnu.org/bugs/?56678>.
* gettext-tools/src/x-javascript.c (brace_depths, brace_depths_alloc): New
variables.
(brace_depth): Remove variable.
(new_brace_depth_level): New function.
(phase5_get): Invoke it. Access the top of the brace_depths stack.
(extract_javascript): Don't set brace_depth. Invoke new_brace_depth_level
instead.
* gettext-tools/tests/xgettext-javascript-7: Test template literals inside a
function.
2019-07-28 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2019-07-21 Bruno Haible <bruno@clisp.org>
Fix test failure on MSVC.
* gettext-tools/tests/lang-c++: On MSVC, use <iostream>, not <iostream.h>.
2019-07-21 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Add
windows-rwlock.
* gettext-runtime/intl/windows-rwlock.h: New file, from gnulib.
* gettext-runtime/intl/windows-rwlock.c: New file, from gnulib.
* gettext-runtime/intl/windows-initguard.h: New file, from gnulib.
* gettext-runtime/intl/windows-spinlock.h: Remove file.
* gettext-runtime/intl/lock.h: Update from gnulib.
* gettext-runtime/intl/lock.c: Likewise.
* gettext-runtime/intl/verify.h: Likewise.
* gettext-runtime/intl/windows-mutex.h: Likewise.
* gettext-runtime/intl/windows-recmutex.h: Likewise.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add windows-rwlock.h,
windows-initguard.h. Remove windows-spinlock.h.
(LIBINTLSOURCES): Conditionally add windows-rwlock.c.
(windows-rwlock.lo): New rule.
(*.lo): Update dependencies.
* Makefile.am (distcheck-hook): Check that gettext-runtime/intl/windows-*.[hc]
are up-to-date.
* gnulib-local/lib/libxml/threads.c: Test HAVE_PTHREAD_H, HAVE_WIN32_THREADS,
HAVE_BEOS_THREADS only if LIBXML_THREAD_ENABLED is defined; otherwise use a
fallback suitable for single-threaded applications.
2019-07-20 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2019-07-19 Bruno Haible <bruno@clisp.org>
build: Avoid warnings from bison versions >= 3.3.
Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
* gettext-runtime/intl/Makefile.am (YACC): Remove option '-y'.
2019-07-19 Bruno Haible <bruno@clisp.org>
intl: Make autoconf macro more robust.
Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't make assumptions about
the version numbers of future Bison versions.
2019-07-17 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix link error when compiled with GCC 3.3.x.
Reported by Jeffrey Walton <noloader@gmail.com>.
* gnulib-local/lib/libxml/timsort.h (CLZ): Don't define based on __builtin_clzll
in GCC versions < 3.4.
2019-07-07 Bruno Haible <bruno@clisp.org>
intl: Don't export the glwthread* symbols from libintl on native Windows.
* gettext-runtime/intl/Makefile.am (OTHER_LDFLAGS): Add an -export-symbols-regex
option.
2019-07-04 Bruno Haible <bruno@clisp.org>
build: Fix build errors with MSVC.
* gettext-tools/src/lang-table.h (language_table, language_variant_table):
Declare with C linkage.
* gettext-tools/src/read-po.h (input_format_po): Likewise.
* gettext-tools/src/read-properties.h (input_format_properties): Likewise.
* gettext-tools/src/read-stringtable.h (input_format_stringtable): Likewise.
* gettext-tools/src/write-properties.h (output_format_properties): Likewise.
* gettext-tools/src/write-stringtable.h (output_format_stringtable): Likewise.
2019-07-04 Bruno Haible <bruno@clisp.org>
build: Fix build error with MSVC.
* gettext-runtime/intl/Makefile.am (INTL_WINDOWS_LIBS): New variable.
(OTHER_LDFLAGS): Add it.
2019-07-04 Bruno Haible <bruno@clisp.org>
build: Fix build error with MSVC.
* gettext-runtime/intl/export.h (LIBINTL_DLL_EXPORTED): Define differently for
MSVC.
2019-07-04 Bruno Haible <bruno@clisp.org>
build: Fix build errors with MSVC.
* gettext-tools/libgettextpo/exported.sh.in: Remove one level of eval.
* gettext-tools/libgettextpo/Makefile.am (config.h): Redirect compiler output to
stderr. Remove symbols that contain an '@'.
* libtextstyle/lib/Makefile.am (config.h): Likewise.
2019-07-04 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Add
windows-mutex, windows-once, windows-recmutex.
* gettext-runtime/m4/flexmember.m4: Update from gnulib.
* gettext-runtime/intl/flexmember.h: Likewise.
* gettext-runtime/intl/localcharset.c: Likewise.
* gettext-runtime/intl/windows-mutex.h: New file, from gnulib.
* gettext-runtime/intl/windows-mutex.c: New file, from gnulib.
* gettext-runtime/intl/windows-once.h: New file, from gnulib.
* gettext-runtime/intl/windows-once.c: New file, from gnulib.
* gettext-runtime/intl/windows-recmutex.h: New file, from gnulib.
* gettext-runtime/intl/windows-recmutex.c: New file, from gnulib.
* gettext-runtime/intl/windows-spinlock.h: New file, from gnulib.
* gettext-runtime/intl/lock.h: Update from gnulib.
* gettext-runtime/intl/lock.c: Likewise.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add windows-*.h.
(LIBINTLSOURCES): Conditionally add windows-*.c.
(windows-mutex.lo, windows-recmutex.lo, windows-once.lo): New rules.
(*.lo): Update dependencies.
* gettext-runtime/configure.ac: New condition WINDOWS_NATIVE.
* gettext-tools/configure.ac: Likewise.
* Makefile.am (distcheck-hook): Check that gettext-runtime/intl/windows-*.[hc]
are up-to-date.
2019-07-04 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2019-05-20 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/setlocale.c (search): Optimize away a redundant strcmp()
invocation.
(locales_with_principal_territory): New array.
(langcmp, get_main_locale_with_same_language): New functions.
(locales_with_principal_language): New array.
(terrcmp, get_main_locale_with_same_territory): New functions.
(rpl_setlocale): When setlocale_single failed, try again with a locale that is
more likely to exist. Don't warn if the environment variable SETLOCALE_VERBOSE
is not set.
2019-05-20 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for
CFLocaleCopyCurrent.
* gettext-runtime/intl/localename.c: Remove includes for
HAVE_CFLOCALECOPYCURRENT.
(gl_locale_name_environ, gl_locale_name_default): Remove code for
HAVE_CFLOCALECOPYCURRENT.
2019-05-20 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2019-05-20 Bruno Haible <bruno@clisp.org>
msginit: Define default territory for some more languages.
* gettext-tools/src/msginit.c (catalogname_for_locale): Add information about
Bislama, Kyrgyz, Mauritian Creole, Chichewa, Kinyarwanda, Tok Pisin.
2019-05-20 Bruno Haible <bruno@clisp.org>
Update a country name.
* gettext-tools/doc/ISO_3166: Write "North Macedonia", not "Macedonia".
* gettext-tools/doc/iso-3166.texi: Likewise.
* gettext-tools/src/msginit.c (catalogname_for_locale): Likewise.
2019-05-20 Bruno Haible <bruno@clisp.org>
build: Avoid endless "config.status --recheck" loop (regression from yesterday).
* gettext-tools/configure.ac: Use AC_MSG_WARN instead of AC_MSG_ERROR.
2019-05-20 Bruno Haible <bruno@clisp.org>
intl: Work around setlocale bug on Android 4.3.
* gettext-runtime/intl/setlocale.c (setlocale_unixlike): New wrapper for
Android.
2019-05-19 Bruno Haible <bruno@clisp.org>
msgmerge: Fix behaviour of --for-msgfmt on PO files with no translations.
Reported by Don Lawrence <dlawrence@iecok.com>
in <https://lists.freedesktop.org/archives/p11-glue/2019-May/000700.html>
via Daiki Ueno
in <https://lists.gnu.org/archive/html/bug-gettext/2019-05/msg00124.html>.
* gettext-tools/src/msgmerge.c (main): Treat force_po like true if for_msgfmt
is true.
* gettext-tools/tests/msgmerge-26: Add test of PO file with no translations.
2019-05-19 Bruno Haible <bruno@clisp.org>
build: Restore the ability to build gettext-tools separately, part 2.
* gettext-tools/configure.ac: New option --with-installed-csharp-dll.
(USE_INSTALLED_CSHARP_DLL): New conditional.
* gettext-tools/src/Makefile.am (CSHARP_DLL_DIR): New variable.
(msgunfmt.net.exe): Use it.
* configure.ac: Filter out --with-installed-csharp-dll from inherited --help
output.
* PACKAGING: Document that gettext-tools's configure needs to be invoked with
--with-installed-csharp-dll.
2019-05-19 Bruno Haible <bruno@clisp.org>
build: Restore the ability to build gettext-tools separately, part 1.
Reported by Hanspeter Niederstrasser <nieder@users.sourceforge.net>
in <https://savannah.gnu.org/bugs/?56333>.
Code based on patch by Miguel Ángel Arruga Vivas <rosen644835@gmail.com>.
* autogen.sh: Copy libtextstyle.m4 for use by gettext-tools.
* gettext-tools/configure.ac: New option --with-installed-libtextstyle.
(USE_INSTALLED_LIBTEXTSTYLE): New conditional.
* gettext-tools/src/Makefile.am (textstyle.h): Disable rule if
USE_INSTALLED_LIBTEXTSTYLE is true.
(LT_LIBTEXTSTYLE): New variable.
(libgettextsrc_la_LDFLAGS): Use it instead of hardcoding a relative filename of
libtextstyle.la.
* configure.ac: Filter out --with-installed-libtextstyle from inherited --help
output.
* Makefile.am (distcheck-hook): Compare different copies of libtextstyle.m4.
* PACKAGING: Document that gettext-tools's configure needs to be invoked with
--with-installed-libtextstyle.
2019-05-19 Bruno Haible <bruno@clisp.org>
libtextstyle: Complete commit from 2019-04-28.
* libtextstyle/Makefile.am (EXTRA_DIST): Add
test-term-ostream-xterm-freebsd-italic.out.
2019-05-19 Bruno Haible <bruno@clisp.org>
build: Avoid the use of mingw winpthreads for multithreading.
* gettext-runtime/configure.ac: Invoke gl_AVOID_WINPTHREAD.
* gettext-tools/configure.ac: Likewise.
2019-05-19 Bruno Haible <bruno@clisp.org>
Update to the newest gnulib.
2019-05-18 Bruno Haible <bruno@clisp.org>
build: Avoid trouble on mingw caused by mingw's *printf functions.
Reported by Michele Locati <michele@locati.it>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-05/msg00103.html>.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Define __USE_MINGW_ANSI_STDIO
to 0.
* gettext-runtime/libasprintf/Makefile.am (DEFS): Likewise.
* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Likewise.
2019-05-18 Bruno Haible <bruno@clisp.org>
libasprintf: Avoid compilation error on mingw with -D__USE_MINGW_ANSI_STDIO=1.
* gettext-runtime/libasprintf/lib-asprintf.c (asprintf, vasprintf): Don't define
on mingw when __USE_MINGW_ANSI_STDIO is non-zero.
2019-05-18 Bruno Haible <bruno@clisp.org>
doc: Don't mention trademarks.
Reported by John Darrington <john@darrington.wattle.id.au>
in <https://savannah.gnu.org/bugs/?56340>.
* gettext-tools/doc/gettext.texi (catgets): Drop trademark annotation.
2019-05-18 Bruno Haible <bruno@clisp.org>
build: Fix typo in comment.
* check-copyright-headers: Fix typo in comment.
2019-05-12 Bruno Haible <bruno@clisp.org>
build: Fix "make install" failure with --disable-shared on glibc systems.
Reported by Gabor Z. Papp <gzp@papp.hu>.
This is a regression from 2018-11-25.
* gettext-tools/configure.ac (PRELOADABLE_LIBINTL): Set to false if
--disable-shared was specified.
2019-05-12 Bruno Haible <bruno@clisp.org>
Update translations (from the TP).
2019-05-12 Bruno Haible <bruno@clisp.org>
Update release steps.
2019-05-12 Bruno Haible <bruno@clisp.org>
intl: Fix wrong libtool versioning information.
Reported by Ken Takata <ktakata65536@gmail.com>
in <https://savannah.gnu.org/bugs/?56305>.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 9:6:1, not 9:6:2.
* NEWS: Mention the change.
2019-05-12 Bruno Haible <bruno@clisp.org>
Update bug reporting instructions.
* README: Tell users to report bugs in the bug tracker or by email. Use the
mailing list address, not the alias.
* gettext-runtime/libasprintf/README: Likewise.
* gettext-tools/doc/gettext.texi (Introduction): Likewise.
(Plural forms): Use the mailing list address, not the alias.
* configure.ac (AC_INIT): Use the mailing list address, not the alias.
* gettext-runtime/configure.ac (AC_INIT): Likewise.
* gettext-tools/configure.ac (AC_INIT): Likewise.
* gettext-tools/examples/configure.ac (AC_INIT): Likewise.
* gettext-runtime/po/Makevars (MSGID_BUGS_ADDRESS): Use the mailing list
address, not the alias.
* gettext-tools/po/Makevars (MSGID_BUGS_ADDRESS): Likewise.
* gettext-tools/examples/po/Makefile.am (MSGID_BUGS_ADDRESS): Likewise.
* gettext-tools/examples/hello-*/po/Makevars (MSGID_BUGS_ADDRESS): Likewise.
* gettext-tools/examples/hello-*/po/Makefile.am (MSGID_BUGS_ADDRESS): Likewise.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile (MSGID_BUGS_ADDRESS):
Likewise.
* gettext-tools/examples/hello-c++-kde/hello.cc (main): Likewise.
* gettext-runtime/src/envsubst.c (main): Move URL out of translatable string.
(usage): Tell users to report bugs in the bug tracker or by email. Use the
mailing list address, not the alias.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/tests/tstgettext.c: Likewise.
* gettext-tools/tests/tstngettext.c: Likewise.
* gettext-tools/misc/autopoint.in (func_usage): Tell users to report bugs in the
bug tracker or by email. Use the mailing list address, not the alias.
* gettext-tools/misc/convert-archive.in (func_usage): Likewise.
* gettext-tools/misc/gettextize.in (func_usage): Likewise.
2019-05-11 Bruno Haible <bruno@clisp.org>
doc: Recommend to avoid literal URLs in translatable strings.
Suggested by John Darrington <john@darrington.wattle.id.au>
in <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00033.html>.
* gettext-tools/doc/gettext.texi (Preparing Strings): Add recommendation against
embedded URLs. Add sub-headers.
2019-05-11 Bruno Haible <bruno@clisp.org>
build: Fix build failure with parallel make.
Reported by Lars Wendler <polynomial-c@gentoo.org>.
* gettext-tools/src/Makefile.am (.NOTPARALLEL): Add this special target.
2019-05-11 Bruno Haible <bruno@clisp.org>
intl: Remove obsolete code.
* gettext-runtime/intl/plural.y: Assume bison >= 2.0.
2019-05-11 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* autogen.sh: Don't copy intl.m4.
* Makefile.am (distcheck-hook): Don't check glibc2.m4, glibc21.m4, intdiv0.m4,
intl.m4, intmax.m4, printf-posix.m4, uintmax_t.m4, visibility.m4.
* gettext-runtime/intl/verify.h: Update from gnulib.
2019-05-11 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-05-09 Bruno Haible <bruno@clisp.org>
Update release steps.
2019-05-08 Bruno Haible <bruno@clisp.org>
examples: Use infrastructure from gettext version 0.20.
* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
version 0.20.
* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
* gettext-tools/examples/hello-*/m4/Makefile.am: Update .m4 file list.
* gettext-tools/examples/hello-*/autoclean.sh: Likewise.
2019-05-08 Bruno Haible <bruno@clisp.org>
Update translations (from the TP).
2019-05-08 Bruno Haible <bruno@clisp.org>
Prepare for 0.20 release.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* libtextstyle/version.sh: Update RELEASE_DATE.
2019-05-07 Bruno Haible <bruno@clisp.org>
libtextstyle: examples: Enable --color=html, for debuggability.
Reported by Akim Demaille.
* libtextstyle/examples/color-hello/hello.c (main): Handle color_html case.
* libtextstyle/examples/color-filter/filter.c (main): Likewise.
2019-05-05 Bruno Haible <bruno@clisp.org>
examples: hello-c++-widgets: Update build infrastructure.
Gnulib changed on 2018-11-11: asm-underscore.m4 is no longer needed for havelib.
* gettext-tools/examples/hello-c++-widgets/autogen.sh: Don't pull in
asm-underscore.m4.
* gettext-tools/examples/hello-c++-widgets/autoclean.sh: Don't remove
asm-underscore.m4.
2019-05-05 Bruno Haible <bruno@clisp.org>
Add unit test for libintl_version.
* gettext-tools/tests/intl-version-prg.c: New file.
* gettext-tools/tests/intl-version: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
(check_PROGRAMS): Add intl-version-prg.
(intl_version_prg_SOURCES, intl_version_prg_LDADD): New variables.
2019-05-05 Bruno Haible <bruno@clisp.org>
msginit: Avoid error messages when run on mingw.
Reported by Michele Locati <michele@locati.it>.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address): Don't even attempt to run the shell script.
2019-05-05 Bruno Haible <bruno@clisp.org>
libtextstyle: Document debugging tricks.
Reported by Akim Demaille <akim@lrde.epita.fr>.
* libtextstyle/doc/libtextstyle.texi (Debugging style files): New subsection.
(Debugging the styling code): New section.
2019-05-01 Bruno Haible <bruno@clisp.org>
msginit: Fix invocation of helper programs on Windows.
Reported by Michele Locati <michele@locati.it>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00058.html>.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add configmake.
* gettext-tools/src/msginit.c: Include configmake.h.
(main): Add BINDIR to the PATH.
2019-05-01 Bruno Haible <bruno@clisp.org>
msginit: Improvements for Cygwin and Android.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add sh-filename.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address): Use BOURNE_SHELL instead of hardcoding /bin/sh.
2019-04-29 Bruno Haible <bruno@clisp.org>
libtextstyle: Document one more terminal emulator.
* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Mention QTerminal.
2019-04-28 Bruno Haible <bruno@clisp.org>
Fix msginit-4 test failure on mingw.
* gettext-tools/src/Makefile.am (DEFS): Define EXEEXT.
* gettext-tools/src/msginit.c (plural_forms): On Windows, invoke
"cldr-plurals.exe", not "cldr-plurals".
2019-04-28 Bruno Haible <bruno@clisp.org>
In the POT files, talk about the "GNU gettext package".
Reported by Benno Schulenberg <coordinator@translationproject.org>.
* gettext-runtime/po/Makevars (XGETTEXT_OPTIONS): Add --package-name option.
* gettext-tools/po/Makevars (XGETTEXT_OPTIONS): Likewise.
* gettext-tools/examples/po/Makefile.am (XGETTEXT_OPTIONS): New variable.
2019-04-28 Bruno Haible <bruno@clisp.org>
po: Make it possible to override xgettext options from Makefile.in.in.
* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): List the
XGETTEXT_OPTIONS and the XGETTEXT_EXTRA_OPTIONS after all other options.
* gettext-tools/examples/po/Makefile.am ($(DOMAIN).pot-update): Likewise.
* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update):
Likewise.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
($(DOMAIN).pot-update): Likewise.
* NEWS: Mention the change.
* gettext-tools/doc/gettext.texi (po/Makevars): Fix typo.
2019-04-28 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix test-term-ostream-xterm test failure on TrueOS and Trident.
The xterm description on these platforms includes support for italics.
Reported by Nelson H. F. Beebe.
* libtextstyle/gnulib-local/tests/test-term-ostream-xterm-freebsd-italic.out:
New file.
* libtextstyle/gnulib-local/tests/test-term-ostream-xterm.sh: Use it as possible
expected result.
* libtextstyle/gnulib-local/modules/term-ostream-tests (Files): Add it.
2019-04-28 Bruno Haible <bruno@clisp.org>
libxml: Avoid gcc warnings.
Avoids "warning: too many arguments for format".
* gnulib-local/lib/libxml/xmlerror.in.h (__xmlSimpleError): Remove
LIBXML_ATTR_FORMAT annotation, because this function may be called with a
NULL msg.
2019-04-28 Bruno Haible <bruno@clisp.org>
libxml: Avoid build failure due to "implicit declaration of function".
* gnulib-local/lib/libxml/libxml.h: Include xmlstring.h only after config.h is
included.
2019-04-28 Bruno Haible <bruno@clisp.org>
libxml: Update included libxml2 to version 2.9.9.
* gnulib-local/lib/libxml/*: Update from libxml2 2.9.9.
* gnulib-local/m4/libxml.m4 (gl_LIBXML): Don't test for _stat.
2019-04-28 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-04-28 Bruno Haible <bruno@clisp.org>
Fix lang-csharp test failure on DragonFly BSD.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/lang-csharp: For the locale with ISO-8859-1 encoding,
allow an expected result in UTF-8 encoding.
2019-04-28 Bruno Haible <bruno@clisp.org>
Add comment about a test that may fail.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/lang-csharp: Add comment about possible test failure.
2019-04-28 Bruno Haible <bruno@clisp.org>
Add comments about tests that fail on Alpine Linux.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/msgconv-2: Add comment about musl libc.
* gettext-tools/tests/msgmerge-compendium-6: Likewise.
* gettext-tools/tests/xgettext-python-3: Likewise.
2019-04-28 Bruno Haible <bruno@clisp.org>
build: Remove duplicate copy of test-lock.
The master copy lives in gnulib now.
* gettext-runtime/tests/test-lock.c: Remove file.
* gettext-runtime/tests/Makefile.am (TESTS, check_PROGRAMS): Remove test-lock.
(test_lock_SOURCES, test_lock_LDADD): Remove variables.
2019-04-28 Bruno Haible <bruno@clisp.org>
build: Verify that intl/threadlib.c is in sync with gnulib.
* Makefile.am (distcheck-hook): Compare also intl/threadlib.c.
2019-04-28 Bruno Haible <bruno@clisp.org>
Fix autopoint-3 test failure on many platforms.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/autopoint-3: Create dummy ltmain.sh file before invoking
"automake -a -c".
2019-04-28 Bruno Haible <bruno@clisp.org>
Avoid lang-guile test failure on many platforms.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/lang-guile: Skip the test if the guile version is < 2.0.
2019-04-28 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2019-04-28 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-04-27 Bruno Haible <bruno@clisp.org>
intl: Use the lookup optimization also on platforms without per-thread locales.
This bug was introduced on 2007-01-27.
* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Fix #ifdef/#endif chain.
2019-04-27 Bruno Haible <bruno@clisp.org>
po-mode: Fix warning.
* gettext-tools/emacs/po-mode.el (entry-buffer): Declare as variable.
2019-04-27 Bruno Haible <bruno@clisp.org>
libgettextpo: Don't rely on the undocumented variable libgettextpo_program_name.
* gnulib-local/lib/xerror.c: If IN_LIBGETTEXTPO is defined, include
getprogname.h instead of progname.h and define program_name as a macro.
* gnulib-local/lib/error-progname.c: Likewise.
* gettext-tools/src/po-xerror.c: Likewise.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Remove progname.
Pass --avoid=progname to gnulib-tool invocation for libgettextpo.
2019-04-27 Bruno Haible <bruno@clisp.org>
libgettextpo: Fix crash when iconv() does not support the PO file's encoding.
* gettext-tools/src/po-charset.c (po_lex_charset_set): When IN_LIBGETTEXTPO is
defined, don't use program_name.
2019-04-27 Bruno Haible <bruno@clisp.org>
libgettextpo: Fix gcc warnings.
* gettext-tools/src/write-po.c (begin_css_class, end_css_class): At least,
evaluate the classname argument.
2019-04-27 Bruno Haible <bruno@clisp.org>
Fix a gcc warning.
* gettext-tools/src/urlget.c (java_exitcode, execute_it): Don't define if
USEJAVA is 0.
2019-04-27 Bruno Haible <bruno@clisp.org>
Fix a gcc warning on mingw.
* gettext-tools/src/msginit.c (get_user_pwd): Don't define if HAVE_PWD_H is not
set.
(get_user_fullname): Don't call get_user_pwd if HAVE_PWD_H is not set.
2019-04-27 Bruno Haible <bruno@clisp.org>
Fix gcc warnings on mingw and IRIX 6.5.
* gettext-tools/src/msgexec.c (process_message): Don't assume that fprintf
supports %zu.
* gettext-tools/src/msgfilter.c (process_message): Likewise.
2019-04-27 Bruno Haible <bruno@clisp.org>
Fix gcc warnings on mingw.
* gettext-tools/src/msgexec.c (close): Undefine before redefinition.
* gettext-tools/src/msggrep.c (close): Likewise.
2019-04-27 Bruno Haible <bruno@clisp.org>
Fix a gcc warning (regression from 2017-05-04).
* gettext-tools/src/read-java.c (msgdomain_read_java): Remove unused variable.
2019-04-27 Bruno Haible <bruno@clisp.org>
search-path.c: Improve code style.
* gettext-tools/src/search-path.h (get_search_path): Clarify memory allocation.
* gettext-tools/src/search-path.c (struct path_array_ty): Add comment.
(foreach_elements): Fix comment.
(get_search_path): Improve comments. Perform each getenv() only once. Reduce
scope of variables. Fix gcc warning.
2019-04-27 Bruno Haible <bruno@clisp.org>
libxml: Fix width of fprintf argument on native Windows.
* gnulib-local/lib/libxml/timsort.h (TIM_SORT_RESIZE): Cast fprintf argument to
'unsigned long'.
2019-04-27 Bruno Haible <bruno@clisp.org>
intl: Fix a gcc warning.
* gettext-runtime/intl/langprefs.c (_nl_language_preferences_win32_95): Declare
data as BYTE array, not char array.
2019-04-26 Bruno Haible <bruno@clisp.org>
build: Fix build failure on mingw with --disable-shared --enable-relocatable.
Reported by Michele Locati <michele@locati.it>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00052.html>.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Map 'relocate2' to a different
symbol.
2019-04-26 Bruno Haible <bruno@clisp.org>
Document the OUTPUT_CHARSET environment variable.
Reported by Václav Slavík <vaclav@slavik.io>
via Michele Locati <michele@locati.it>.
* gettext-tools/doc/gettext.texi (Working in a Windows console): New section.
2019-04-14 Bruno Haible <bruno@clisp.org>
Update translations (from the TP).
* gettext-runtime/po/*.po: Update.
* gettext-runtime/po/LINGUAS: Add 'ast'.
* gettext-tools/po/*.po: Update.
* gettext-tools/examples/po/*.po: Update.
* gettext-tools/examples/po/LINGUAS: Add 'ta'.
* gettext-tools/examples/hello-*/po/LINGUAS: Likewise.
* gettext-tools/examples/Makefile.am (EXAMPLESPOFILES): Add ta.po.
2019-04-14 Bruno Haible <bruno@clisp.org>
Prepare for 0.20 release.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Update.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Update.
* gettext-runtime/m4/gettext.m4: Bump version number in comment.
* gettext-runtime/m4/intl.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
(GETTEXT_MACRO_VERSION): Bump to 0.20.
* gettext-runtime/po/Makefile.in.in (GETTEXT_MACRO_VERSION): Likewise.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 9:6:2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:5:5.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Set to 0.20.
* gettext-tools/misc/autopoint.in: Accept version 0.20.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
output.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main): Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* gettext-runtime/src/gettext.sh.in (func_version): Update copyright year.
* gettext-tools/misc/convert-archive.in (func_version): Likewise.
* gettext-tools/misc/gettextize.in (func_version): Likewise.
* libtextstyle/version.sh: Use version number 0.20 here as well.
* gettext-runtime/NEWS: Mention changes (from main NEWS).
* libtextstyle/NEWS: Mention changes.
2019-04-14 Bruno Haible <bruno@clisp.org>
autopoint: Reject AM_GNU_GETTEXT without 'external' for versions >= 0.20.
* gettext-tools/misc/autopoint.in: Fail if AM_GNU_GETTEXT without 'external' is
specified with a gettext version >= 0.20.
* gettext-tools/tests/autopoint-2: Update. Add two more scenarios.
* gettext-tools/tests/autopoint-3: Don't test AM_GNU_GETTEXT([use-libtool]) nor
--with-included-gettext. Don't use libtoolize.
2019-04-14 Bruno Haible <bruno@clisp.org>
build: Fix Makefile.am formatting.
* gettext-runtime/man/Makefile.am: Start every indented line with a tab.
2019-04-14 Bruno Haible <bruno@clisp.org>
build: Don't fail copyright header check on archive.dir.tar.
* check-copyright-headers (func_check_file): Succeed for the archive.dir.tar
file.
2019-04-14 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-04-13 Bruno Haible <bruno@clisp.org>
cldr-plurals: Fix a test failure on IRIX 6.5.
* gettext-tools/src/cldr-plural-exp.c (cldr_plural_rule_list_print): Don't
assume that fprintf supports %zu.
2019-04-13 Bruno Haible <bruno@clisp.org>
build: Fix build failure when perl exists but not perl's Locale::gettext module.
* gettext-runtime/man/x-to-1.in: Remove file.
* gettext-tools/man/x-to-1.in: Remove file.
* autogen.sh: Copy x-to-1.in from gnulib.
2019-04-13 Bruno Haible <bruno@clisp.org>
build: Fix build failure with a preinstalled libxml (regression from 2019-04-02).
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Remove -I options that point into
libtextstyle/lib.
(textstyle.h): New rule.
(BUILT_SOURCES, MOSTLYCLEANFILES): Add textstyle.h and textstyle/*.h.
2019-04-13 Bruno Haible <bruno@clisp.org>
build: Don't link libgettextlib and libgettextsrc against libgomp.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add openmp-init. Remove openmp.
* gettext-tools/configure.ac: Invoke AC_OPENMP.
2019-04-13 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-04-12 Bruno Haible <bruno@clisp.org>
msgfmt: Fix another buffer overrun.
Reported and patch by Joshua Root <jmr@macports.org>
at <https://savannah.gnu.org/bugs/?56126>.
* gettext-tools/src/write-java.c (write_java_msgid): Allocate memory for the
trailing NUL byte as well.
* gettext-tools/src/write-csharp.c (write_csharp_msgid): Likewise.
2019-04-11 Bruno Haible <bruno@clisp.org>
build: Explicitly request some more gnulib modules.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add localtime, unsetenv.
2019-04-11 Bruno Haible <bruno@clisp.org>
build: Fix build failure on mingw (regression from 2019-04-02).
* gettext-tools/woe32dll/gettextlib-exports.c: Remove
gl_array_list_implementation, styled_ostream_typeinfo.
* gettext-tools/woe32dll/gettextsrc-exports.c: Remove color_mode,
color_test_mode, style_file_name.
* autogen.sh: Don't import the gnulib array-list-tests and linkedhash-list-tests
modules.
2019-04-11 Bruno Haible <bruno@clisp.org>
build: Fix build failure on mingw (regression from 2019-04-02).
* libtextstyle/autogen.sh: Pass a --macro-prefix option to gnulib-tool.
* libtextstyle/configure.ac: Update accordingly.
2019-04-11 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix build failure on mingw (regression from 2019-03-17).
* libtextstyle/lib/Makefile.am (config.h): Emit a line that ensures that
isatty.c defines the symbol 'libtextstyle_isatty', not 'isatty'.
2019-04-11 Bruno Haible <bruno@clisp.org>
build: Fix build failure on mingw.
For some reason, Automake puts a definition of CXXLD in
gettext-tools/src/Makefile.in but not in
gettext-tools/gnulib-lib/Makefile.in.
* gettext-tools/gnulib-lib/Makefile.am (CXXLD): Define.
2019-04-10 Bruno Haible <bruno@clisp.org>
msgfmt: Fix a buffer overrun.
Reported by Tobi Schäfer at <https://trac.macports.org/ticket/58323>,
via Ryan Schmidt <@ryandesign.com> at <https://savannah.gnu.org/bugs/?56112>.
Patch proposed by Joshua Root.
* gettext-tools/src/write-java.c (msgid_hashcode): Allocate memory for the
trailing NUL byte as well.
2019-04-09 Bruno Haible <bruno@clisp.org>
Fix test failures on AIX 7.2.
* gettext-tools/tests/intl-thread-1-prg.c: Test HAVE_WORKING_USELOCALE instead
of HAVE_USELOCALE.
* gettext-tools/tests/intl-thread-2-prg.c: Likewise.
* gettext-tools/tests/intl-thread-3-prg.c: Likewise.
2019-04-09 Bruno Haible <bruno@clisp.org>
msgmerge: Fix crash on 32-bit AIX 7.2.
* gettext-tools/src/msgmerge.c: Include <omp.h>.
(main): Invoke openmp_init().
2019-04-09 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-04-08 Bruno Haible <bruno@clisp.org>
Make sure that libintl.h declares the *wprintf overrides on Windows.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test for wprintf, not fwprintf.
2019-04-08 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-04-08 Bruno Haible <bruno@clisp.org>
autopoint: Don't risk failing because of user or system git configurations.
Reported by Jamie Kirkpatrick <jkp@kirkconsulting.co.uk>
in <https://savannah.gnu.org/support/?107689>.
* gettext-tools/misc/autopoint.in: Set/unset environment variables, so that git
does not read the user's git configuration nor the system's git configuration.
* gettext-tools/misc/convert-archive.in: Likewise.
2019-04-08 Bruno Haible <bruno@clisp.org>
xgettext: Recognize ECMAScript-262 6th edition template literals.
Reported by Philip Chimento <philip.chimento@gmail.com>
in <https://savannah.gnu.org/bugs/index.php?50920>.
* gettext-tools/src/x-javascript.c (P7_TEMPLATE_START_OF_EXPRESSION): New macro.
(enum token_type_ty): Add token_type_template, token_type_ltemplate,
token_type_mtemplate, token_type_rtemplate.
(free_token): Treat token_type_template like token_type_string.
(phase7_getuc): Add support for backquote quote_char.
(brace_depth, template_literal_depth): New variables.
(phase5_get): Parse template literals.
(x_javascript_lex): Treat token_type_template like token_type_string. Handle the
combination of symbol followed by template.
(extract_balanced): Treat token_type_template like token_type_string, and
token_type_ltemplate, token_type_mtemplate, token_type_rtemplate like
token_type_other.
(extract_javascript): Initialize brace_depth, template_literal_depth.
* gettext-tools/tests/xgettext-javascript-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/gettext.texi (JavaScript): Mention the template literal
syntax for strings.
* NEWS: Mention the improvement.
2019-04-08 Bruno Haible <bruno@clisp.org>
xgettext: Make JavaScript parser more robust.
* gettext-tools/src/x-javascript.c (extract_javascript): Initialize
inside_embedded_js_in_xml.
2019-04-07 Bruno Haible <bruno@clisp.org>
build: Verify that newly added files have an appropriate copyright notice.
* check-copyright-headers: New file.
* Makefile.am (EXTRA_DIST): Add it.
(distcheck-hook): Run check-copyright-headers and fail if it fails.
2019-04-07 Bruno Haible <bruno@clisp.org>
doc: Add copyright notices in several files.
Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-runtime/doc/nls.texi: Add delegating copyright notice.
* gettext-runtime/doc/rt-*.texi: Likewise.
* gettext-tools/doc/autopoint.texi: Likewise.
* gettext-tools/doc/gettextize.texi: Likewise.
* gettext-tools/doc/msg*.texi: Likewise.
* gettext-tools/doc/xgettext.texi: Likewise.
2019-04-07 Bruno Haible <bruno@clisp.org>
build: Unify the three copies of texi2html.
* build-aux/texi2html: Moved to here from libtextstyle/build-aux/texi2html.
* libtextstyle/autogen.sh: Copy texi2html.
* gettext-runtime/libasprintf/texi2html: Remove file.
* gettext-runtime/libasprintf/Makefile.am (TEXI2HTML): Use build-aux/texi2html.
(EXTRA_DIST): Remove texi2html.
* gettext-tools/doc/texi2html: Remove file.
* gettext-tools/doc/Makefile.am (TEXI2HTML): Use build-aux/texi2html.
(EXTRA_DIST): Remove texi2html.
* Makefile.am (EXTRA_DIST): Add build-aux/texi2html.
(distcheck-hook): Update.
2019-04-07 Bruno Haible <bruno@clisp.org>
doc: Use a version of texi2html which is under a good license.
Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-tools/doc/texi2html: Copied from texi2html-1.78, with changes made in
libunistring/build-aux/texi2html and then in libtextstyle/build-aux/texi2html.
* gettext-tools/doc/gettext.texi: Enable the Top node during texi2html
processing.
* gettext-tools/doc/Makefile.am (gettext.html): Use texi2html options
-no-sec-nav -no-menu -toc-links.
(gettext_toc.html): Likewise. Pull out generated files out of subdirectory.
2019-04-07 Bruno Haible <bruno@clisp.org>
libasprintf: Use a version of texi2html which is under a good license.
Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-runtime/libasprintf/texi2html: Copied from texi2html-1.78, with
changes made in libunistring/build-aux/texi2html and then in
libtextstyle/build-aux/texi2html.
* gettext-runtime/libasprintf/fdl.texi: New file, copied from
gettext-tools/doc/fdl.texi.
* gettext-runtime/libasprintf/gpl.texi: New file, copied from
gnulib/doc/gpl-2.0.texi.
* gettext-runtime/libasprintf/lgpl.texi: New file, copied from
gnulib/doc/lgpl-2.1.texi.
* gettext-runtime/libasprintf/autosprintf.texi: Invoke @contents. Enable the
Top node during texi2html processing.
(Licenses): New appendix.
* gettext-runtime/libasprintf/Makefile.am (TEXINCLUDES): New variable.
(MAKEINFOFLAGS): Use it.
(autosprintf_TEXINFOS): New variable.
(autosprintf_all.html): Depend on it. Use texi2html options -no-sec-nav -no-menu
-toc-links.
2019-04-07 Bruno Haible <bruno@clisp.org>
libtextstyle: Tweak style of HTML documentation.
* libtextstyle/build-aux/texi2html (BIG_RULE): Set to empty.
2019-04-07 Bruno Haible <bruno@clisp.org>
Add copyright notices in several files.
Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-tools/doc/FAQ.html: Fix copyright notice added on 2019-04-04.
* gettext-tools/doc/tutorial.html: Add GFDL copyright notice. Permission given
by Gora Mohanty <gora_mohanty@yahoo.co.in> through private email on 2004-11-13.
* gettext-tools/po/Makevars.template: Don't mention the file name, since this
file is meant to be copied and renamed to 'Makevars'.
* gettext-tools/examples/hello-*/po/Makevars: Add all-permissive copyright
notice.
* gettext-tools/examples/hello-c-gnome3/hello.ui: Add public-domain notice.
* gettext-tools/examples/hello-c-gnome3/hello.gresource.xml: Likewise.
* gettext-tools/examples/hello-c-gnome3/hello.gschema.xml: Likewise.
* gettext-tools/examples/hello-java-awt/m4/TestAWT.java: Likewise.
* gettext-tools/examples/hello-java-swing/m4/TestAWT.java: Likewise.
* gettext-tools/examples/hello-java-qtjambi/m4/Test15.java: Likewise.
* gettext-tools/examples/check-examples: Add GPLv3+ copyright notice.
* gettext-tools/examples/installpaths.in: Likewise.
* gettext-tools/examples/po/mmsmallpo.sh: Likewise.
* gettext-tools/examples/po/xsmallpot.sh: Likewise.
* gettext-tools/its/glade.loc: Likewise.
* gettext-tools/its/gsettings.loc: Likewise.
* gettext-tools/its/metainfo.its: Likewise.
* gettext-tools/its/metainfo.loc: Likewise.
* gettext-tools/src/filters.h: Add missing copyright line.
2019-04-04 Bruno Haible <bruno@clisp.org>
Reduce ABOUT-NLS to just a hyperlink.
The common way to distribute information, nowadays, is through the web,
not by including files in tarballs of packages. Also, the current
contents of ABOUT-NLS is outdated.
Reported by Samuel Thibault in <https://savannah.gnu.org/bugs/?54809>.
* gettext-runtime/ABOUT-NLS: Replace text with a reference to the online
documentation.
* gettext-runtime/Makefile.am (MAKEINFO): Remove variable.
(all-local, ABOUT-NLS): Remove rules.
* gettext-tools/src/msginit.c (main): Point the user to the online documentation
instead of the ABOUT-NLS file.
* gettext-tools/doc/gettext.texi (Installing Localizations, Prerequisites,
Makefile): Don't mention ABOUT-NLS any more.
* gettext-tools/doc/gettextize.texi: Update description of ABOUT-NLS.
* gettext-tools/doc/FAQ.html: Refer to the online documentation instead of the
ABOUT-NLS file.
* README: Don't mention ABOUT-NLS any more.
2019-04-04 Bruno Haible <bruno@clisp.org>
doc: Include the contents of ABOUT-NLS in the documentation.
* gettext-runtime/doc/nls.texi (The original ABOUT-NLS): Renamed from
'Translation Intro'. Turn into a section. Mark section as historical.
* gettext-tools/doc/gettext.texi: Include nls.texi.
* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add nls.texi and
matrix.texi.
2019-04-04 Bruno Haible <bruno@clisp.org>
doc: Update ISO 639 list.
* gettext-tools/doc/iso-639.texi: Regenerated.
2019-04-04 Bruno Haible <bruno@clisp.org>
Add copyright notices in several files.
Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-runtime/m4/Makefile.am: Add GPL copyright notice.
* gettext-tools/m4/Makefile.am: Likewise.
* gettext-tools/doc/iso-639.sed: Likewise.
* gettext-tools/doc/iso-639-2.sed: Likewise.
* gettext-tools/doc/iso-3166.sed: Likewise.
* gettext-tools/its/glade1.its: Likewise.
* gettext-tools/its/glade2.its: Likewise.
* gettext-tools/its/gsettings.its: Likewise.
* gettext-tools/its/gtkbuilder.its: Likewise.
* gettext-tools/misc/cvsuser.c: Likewise.
* gettext-tools/projects/team-address: Likewise.
* gettext-tools/projects/GNOME/team-address: Likewise.
* gettext-tools/projects/GNOME/trigger: Likewise.
* gettext-tools/projects/KDE/team-address: Likewise.
* gettext-tools/projects/KDE/trigger: Likewise.
* gettext-tools/projects/TP/team-address: Likewise.
* windows/windres-options: Likewise.
* gettext-runtime/po/insert-header.sin: Add copyright notice, based on the one
in Rules-quot.
* gettext-tools/doc/FAQ.html: Add copyright notice, suitable for documentation.
2019-04-03 Bruno Haible <bruno@clisp.org>
Mention the support for Java 11.
This support was added in gnulib on 2018-09-26.
* NEWS: Mention the support for Java 11.
2019-04-03 Bruno Haible <bruno@clisp.org>
libtextstyle: Clean up old TODO item.
* libtextstyle/Makefile.am: Remove obsolete comment.
2019-04-02 Bruno Haible <bruno@clisp.org>
libtextstyle: Distribute two more files.
* libtextstyle/Makefile.am (EXTRA_DIST): Add
gnulib-local/lib/libxml/xmlversion.in.h.diff, gnulib-local/modules/libxml.diff.
2019-04-02 Bruno Haible <bruno@clisp.org>
build: Move local gnulib modules that are only needed in libtextstyle.
* libtextstyle/gnulib-local/*: Many files moved to here from gnulib-local/*.
* libtextstyle/gnulib-local/modules/libglib: Apply diff.
* libtextstyle/gnulib-local/modules/libglib.diff: Remove file.
* libtextstyle/gnulib-local/modules/libcroco: Apply diff.
* libtextstyle/gnulib-local/modules/libcroco.diff: Remove file.
* libtextstyle/gnulib-local/modules/term-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/term-styled-ostream.diff: Remove file.
* libtextstyle/gnulib-local/modules/html-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/html-styled-ostream.diff: Remove file.
* libtextstyle/gnulib-local/modules/noop-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: Remove file.
* libtextstyle/woe32dll/c++term-styled-ostream.cc: Remove file.
* libtextstyle/woe32dll/c++html-styled-ostream.cc: Remove file.
* libtextstyle/woe32dll/c++noop-styled-ostream.cc: Remove file.
* gettext-tools/woe32dll/c++term-styled-ostream.cc: Remove file.
* gettext-tools/woe32dll/c++html-styled-ostream.cc: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove the files that were moved away.
* libtextstyle/Makefile.am (EXTRA_DIST): Add the files that were moved to
libtextstyle/gnulib-local/. Add build-aux/moopp.
* Makefile.am (EXTRA_DIST): Remove build-aux/moopp.
2019-04-02 Bruno Haible <bruno@clisp.org>
libgettextpo: Avoid closing a FILE stream when it will still be used.
* gettext-tools/src/write-catalog.c (msgdomain_list_print): Don't call
ostream_free if we're using the dummy <textstyle.h>.
2019-04-02 Bruno Haible <bruno@clisp.org>
libgettextpo: Use a dummy replacement for libtextstyle.
* gnulib-local/modules/libtextstyle-dummy: New file, based on gnulib's
modules/libtextstyle-optional.
* gnulib-local/Makefile.am (EXTRA_DIST): Add it.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add libtextstyle-dummy. Remove
file-ostream, ostream.
* gettext-tools/src/write-catalog.h: Include <textstyle.h> always.
* gettext-tools/src/write-catalog.c: Likewise.
* gettext-tools/src/write-po.h: Likewise.
* gettext-tools/src/write-po.c: Likewise.
2019-04-02 Bruno Haible <bruno@clisp.org>
Link the msg* and xgettext programs against libtextstyle.
* libtextstyle/autogen.sh: Don't generate lib/color.h and lib/color.c.
* libtextstyle/lib/color.h: Moved to here from gettext-tools/src/color.h.
* libtextstyle/lib/color.c: Moved to here from gettext-tools/src/color.c.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove fd-ostream, file-ostream,
html-styled-ostream, ostream, styled-ostream, term-styled-ostream. Add libxml.
* gettext-tools/gnulib-lib/Makefile.am (MOOPPFLAGS): Remove customization.
* gettext-tools/gnulib-tests/Makefile.am (test_term_ostream_LDADD): Remove
customization.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove color.h.
(AM_CPPFLAGS): Add -I directives to the libtextstyle/lib directory.
(libgettextsrc_la_SOURCES): Remove color.c.
(libgettextsrc_la_LDFLAGS): Link with libtextstyle.la.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/write-catalog.h: Include <textstyle.h> instead of ostream.h.
* gettext-tools/src/write-catalog.c: Include <textstyle.h> instead of color.h
and *-ostream.h.
(msgdomain_list_print): Use styled_ostream_create and
noop_styled_ostream_create.
* gettext-tools/src/write-po.h: Include <textstyle.h> instead of ostream.h.
* gettext-tools/src/write-po.c: Include <textstyle.h> instead of *-ostream.h.
(is_stylable): Remove function.
(begin_css_class, end_css_class): Update. Mark as inline.
* gettext-tools/src/write-properties.c: Include <textstyle.h> instead of
ostream.h.
* gettext-tools/src/write-stringtable.c: Likewise.
* gettext-tools/src/msgattrib.c: Include <textstyle.h> instead of color.h.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
2019-04-02 Bruno Haible <bruno@clisp.org>
libtextstyle: Generalize fd-styled-ostream to noop-styled-ostream.
* gnulib-local/lib/noop-styled-ostream.oo.h: New file, based on
gnulib-local/lib/fd-styled-ostream.oo.h.
* gnulib-local/lib/noop-styled-ostream.oo.c: New file, based on
gnulib-local/lib/fd-styled-ostream.oo.c.
* gnulib-local/modules/noop-styled-ostream: New file, based on
gnulib-local/modules/fd-styled-ostream.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove lib/fd-styled-ostream.oo.[hc]
and modules/fd-styled-ostream. Add lib/noop-styled-ostream.oo.[hc] and
modules/noop-styled-ostream.
* libtextstyle/woe32dll/c++noop-styled-ostream.cc: New file, based on
libtextstyle/woe32dll/c++fd-styled-ostream.cc.
* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: New file, based
on libtextstyle/gnulib-local/modules/fd-styled-ostream.diff.
* gnulib-local/lib/fd-styled-ostream.oo.h: Remove file.
* gnulib-local/lib/fd-styled-ostream.oo.c: Remove file.
* gnulib-local/modules/fd-styled-ostream: Remove file.
* libtextstyle/woe32dll/c++fd-styled-ostream.cc: Remove file.
* libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: Remove file.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add noop-styled-ostream. Remove
fd-styled-ostream.
* libtextstyle/lib/misc.c: Include noop-styled-ostream.h, fd-ostream.h.
(styled_ostream_create): Call fd_ostream_create and noop_styled_ostream_create
instead of fd_styled_ostream_create.
* libtextstyle/lib/textstyle.h (noop_styled_ostream_t): New type.
(noop_styled_ostream_*): New declarations.
* libtextstyle/doc/libtextstyle.texi (The noop_styled_ostream class): New
subsection.
2019-04-02 Bruno Haible <bruno@clisp.org>
build: Build and install libtextstyle.
* autogen.sh: Recurse into libtextstyle directory.
* configure.ac: Likewise.
* Makefile.am (SUBDIRS): Add libtextstyle.
* DEPENDENCIES: Mention that libiconv and ncurses are also used by libtextstyle.
* PACKAGING: Recommend to ship libtextstyle as a third binary package.
* NEWS: Mention that libtextstyle is installed.
2019-04-02 Bruno Haible <bruno@clisp.org>
build: Separate git operations from build operations.
* gitsub.sh: New file, from gnulib.
* autogen.sh: Remove all git operations and the --no-git option. Look at the
GNULIB_SRCDIR environment variable. Ignore the GNULIB_TOOL environment variable.
* HACKING: Explain when to use gitsub.sh.
2019-04-02 Bruno Haible <bruno@clisp.org>
libtextstyle: Bump version number.
2019-04-01 Daiki Ueno <ueno@gnu.org>
desktop: Fix whitespace handling around '='
While the spec only allows spaces before and after '=',
xgettext/msgfmt previously accepted all whitespaces including '\n'.
That was causing unwanted concatenation of desktop lines.
Reported by Bastien Nocera in:
https://lists.gnu.org/archive/html/bug-gettext/2019-03/msg00017.html
* gettext-tools/src/read-desktop.c (desktop_lex): Properly handle
space characters before and after '='.
* gettext-tools/tests/msgfmt-desktop-1: Add a test case.
2019-04-01 Bruno Haible <bruno@clisp.org>
libtextstyle: Bump version number.
2019-03-31 Bruno Haible <bruno@clisp.org>
libtextstyle: Add support for true-color terminals.
* gnulib-local/lib/term-ostream.oo.c (colormodel_t): Add cm_xtermrgb.
(rgb_to_color_xtermrgb): New function.
(attributes_t): Extend the color fields to 25 bits.
(struct term_ostream): New fields active_attr_color, active_attr_bgcolor.
(out_color_change, out_bgcolor_change, term_ostream::rgb_to_color): Handle
cm_xtermrgb.
(out_attr_change): Set also active_attr_color, active_attr_bgcolor.
(async_set_attributes_from_default): Fetch also active_attr_color,
active_attr_bgcolor.
(term_ostream_create): Accept all $TERM values that end in -direct.
* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Document the
prerequisites for true-color support.
* libtextstyle/NEWS: Mention the change.
2019-03-31 Bruno Haible <bruno@clisp.org>
maint: Make code more "git diff"-friendly.
* gettext-runtime/src/envsubst.c: Prefer long lines to lines that start with a
non-whitespace character.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/format.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msgl-cat.c: Likewise.
* gettext-tools/src/msgl-charset.c: Likewise.
* gettext-tools/src/msgl-check.c: Likewise.
* gettext-tools/src/msgl-iconv.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/po-lex.c: Likewise.
* gettext-tools/src/read-stringtable.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/write-catalog.c: Likewise.
* gettext-tools/src/write-java.c: Likewise.
* gettext-tools/src/write-po.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-javascript.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-perl.c: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/xg-encoding.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
2019-03-31 Bruno Haible <bruno@clisp.org>
libtextstyle: Improve documentation regarding the TERM value.
* libtextstyle/doc/libtextstyle.texi (The TERM variable): Many more details.
(Terminal emulators, Consoles): New subsections.
2019-03-31 Bruno Haible <bruno@clisp.org>
libtextstyle: Support for terminal types with 256 colors.
* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Accept all $TERM
values that end in -16color or -256 color (such as Eterm-256color,
mlterm-256color, or putty-256color).
* libtextstyle/NEWS: Mention the change.
2019-03-30 Takesi Ayanokoji <ayanokoji.takesi@gmail.com>
po-mode: Enable highlighting of #, lines.
* gettext-tools/emacs/po-mode.el (po-font-lock-keywords): Add rule for #, lines.
2019-03-30 Bruno Haible <bruno@clisp.org>
po-mode: Remove support for Emacs versions < 22.
Emacs 22 is the oldest version still in use, see
<https://repology.org/project/emacs/versions>.
* gettext-tools/emacs/po-compat.el: Remove conditional code for Emacs < 22.
* gettext-tools/emacs/po-mode.el: Likewise.
(po-rehighlight): Remove function.
(po-check-all-pending-edits, po-check-for-pending-edit): Update.
* gettext-tools/emacs/start-po.el: Update comment.
2019-03-30 Bruno Haible <bruno@clisp.org>
po-mode: Remove support for XEmacs.
* gettext-tools/emacs/po-mode.el: Remove conditional code for XEmacs.
* gettext-tools/emacs/po-compat.el: Likwise.
2019-03-30 Bruno Haible <bruno@clisp.org>
build: Move the Emacs package sources to subdirectory gettext-tools/emacs/.
* gettext-tools/emacs/*.el: Moved here from gettext-tools/misc/.
* gettext-tools/emacs/Makefile.am: New file, based on
gettext-tools/misc/Makefile.am.
* gettext-tools/misc/Makefile.am (lisp_LISP): Remove variable.
* gettext-tools/configure.ac (AC_CONFIG_FILES): Add emacs/Makefile.
* gettext-tools/Makefile.am (SUBDIRS): Add 'emacs'.
2019-03-30 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2019-03-27 Bruno Haible <bruno@clisp.org>
libtextstyle: Add support for Windows consoles.
* gnulib-local/lib/term-ostream.oo.c: Include <windows.h>, msvc-nothrow.h,
<io.h>.
(struct term_ostream): Add fields handle, is_windows_console,
default_console_attributes, current_console_attributes.
(out_color_change, out_bgcolor_change, out_underline_change, out_attr_change,
restore, async_restore, async_set_attributes_from_default, term_ostream::flush):
Add separate code path for Windows consoles.
(term_ostream_create): On Windows, test whether the handle refers to a console,
and initialize the new fields.
* gnulib-local/modules/term-ostream (Depends-on): Add msvc-nothrow.
* libtextstyle/NEWS: Mention it.
2019-03-27 Bruno Haible <bruno@clisp.org>
libtextstyle: Make the SIGCONT handler work more reliably.
* gnulib-local/lib/term-ostream.oo.c (out_attr_change): Modify active_attr
before emitting the escape sequences, not afterwards.
* libtextstyle/NEWS: Mention the fix.
2019-03-27 Bruno Haible <bruno@clisp.org>
libtextstyle: Mention fixes.
* libtextstyle/NEWS: Mention two fixes done in the gnulib module
'term-style-control'.
2019-03-27 Bruno Haible <bruno@clisp.org>
libtextstyle: Small fix for last commit.
* gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Mark fd volatile.
2019-03-27 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-03-27 Bruno Haible <bruno@clisp.org>
its: Simplify code.
Suggested by Daiki Ueno.
* gettext-tools/src/its.c (normalize_whitespace): Remove local variable.
2019-03-26 Bruno Haible <bruno@clisp.org>
its: Fix test failure.
* gettext-tools/src/its.c (normalize_whitespace): Fix detection of paragraph
boundary. Get rid of initial trim() call.
* gettext-tools/tests/xgettext-its-1: Fix typo. Verify removal of whitespace
at the end of the last paragraph.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add memchr.
2019-03-26 Bruno Haible <bruno@clisp.org>
build: Use gnulib module 'strchrnul' explicitly.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add strchrnul.
2019-03-24 Bruno Haible <bruno@clisp.org>
libtextstyle: Use gnulib module 'term-style-control'.
* gnulib-local/lib/term-ostream.oo.h: Include term-style-control.h.
(ttyctl_t): Remove type.
* gnulib-local/lib/term-ostream.oo.c (DEBUG_SIGNALS): Remove macro.
Don't include <signal.h>, <stdio.h>, <sys/stat.h>, fatal-signal.h,
sig-handler.h, same-inode.h.
(SIZEOF): Remove macro.
(nonintr_tcgetattr, nonintr_tcsetattr): Remove functions.
(log_message, sprintf_integer, simple_errno_string, simple_signal_string,
log_signal_handler_called): Remove functions.
(struct term_ostream): Remove fields tty_control, same_as_stderr,
non_default_active. Add control_data field instead.
(get_control_data): New function.
(BLOCK_SIGNALS_DURING_NON_DEFAULT_STYLE_OUTPUT): Remove macro.
(term_fd): Remove variable.
(pgrp_status_t): Remove type.
(pgrp_status): Remove variable.
(update_pgrp_status): Remove function.
(out_filename): Remove variable.
(out_error): Use out_stream instead of out_filename.
(restore, tcsetattr_failed): Remove functions.
(orig_lflag_set, orig_lflag): Remove variables.
(clobber_local_mode, restore_local_mode): Remove functions.
(job_control_signals): Remove variable.
(num_job_control_signals): Remove macro.
(relevant_signal_set, relevant_signal_set_initialized): Remove variables.
(init_relevant_signal_set, block_relevant_signals, unblock_relevant_signals,
is_ignored, show_signal_marker, fatal_or_stopping_signal_handler,
fatal_signal_handler, stopping_signal_handler, continuing_signal_handler,
ensure_continuing_signal_handler, ensure_other_signal_handlers): Remove
functions.
(out_attr_change): Set out_stream and out_fd.
(activate_non_default_attr, deactivate_non_default_attr): Remove functions.
(restore, async_restore, async_set_attributes_from_default): New functions.
(controller): New variable.
(activate_default_attr, output_buffer): Update.
(term_ostream::free): Invoke deactivate_term_style_controller.
(term_ostream_create): Invoke activate_term_style_controller.
* gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Don't test for tcgetattr().
* gnulib-local/modules/term-ostream (Depends-on): Add term-style-control. Remove
fatal-signal, sigaction, sigprocmask, same-inode.
2019-03-24 Bruno Haible <bruno@clisp.org>
moopp: Allow forward references to the <class>_representation type.
* gnulib-local/build-aux/moopp (func_version): Bump copyright year.
(func_emit_source_c): Move the <class>_representation type alias to the top
of the file.
2019-03-20 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix a memory access from a signal handler.
* gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Mark active_attr
field as volatile.
2019-03-20 Bruno Haible <bruno@clisp.org>
libtextstyle: Bump version number.
2019-03-20 Bruno Haible <bruno@clisp.org>
Use _GL_ASYNC_SAFE from gnulib.
* gettext-tools/src/plural-eval.h (sigfpe_code): Mark as volatile.
* gettext-tools/src/plural-eval.c (sigfpe_code): Likewise.
(sigfpe_handler): Mark as _GL_ASYNC_SAFE.
* gnulib-local/lib/term-ostream.oo.c (ASYNC_SAFE): Remove macro.
Use _GL_ASYNC_SAFE instead.
2019-03-20 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-03-20 Bruno Haible <bruno@clisp.org>
Update .gitignore after 2019-03-12 change.
2019-03-17 Bruno Haible <bruno@clisp.org>
libtextstyle: Bump version number.
2019-03-17 Bruno Haible <bruno@clisp.org>
libtextstyle: Bump version number.
2019-03-17 Bruno Haible <bruno@clisp.org>
libtextstyle: Implement reliable tty control.
* gnulib-local/lib/term-ostream.oo.c (DEBUG_SIGNALS): New macro.
Include <stdio.h>, <sys/stat.h>.
(NOFLSH): Define fallback value.
Include sig-handler.h, same-inode.h.
(ASYNC_SAFE): New macro.
(color_bgr): Mark as ASYNC_SAFE.
(nonintr_tcgetattr, nonintr_tcsetattr): New functions.
(log_message, sprintf_integer, simple_errno_string, simple_signal_string,
log_signal_handler_called): New functions.
(struct term_ostream): Add fields restore_colors, restore_weight,
restore_posture, restore_underline, tty_control, same_as_stderr.
(BLOCK_SIGNALS_DURING_NON_DEFAULT_STYLE_OUTPUT): New macro.
(term_fd): New variable.
(pgrp_status_t): New type.
(pgrp_status): New variable.
(update_pgrp_status): New function.
(out_stream): New variable.
(restore_colors, restore_weight, restore_posture, restore_underline): Remove
variables.
(out_color_change, out_bgcolor_change, out_weight_change, out_posture_change,
out_underline_change): New functions, extracted from out_attr_change.
(out_attr_change): Call these functions.
(restore): Use out_stream.
(tcsetattr_failed): New function.
(orig_lflag_set, orig_lflag): New variables.
(clobber_local_mode, restore_local_mode): New functions.
(job_control_signals): Renamed from stopping_signals. Add SIGCONT.
(num_job_control_signals): Renamed from num_stopping_signals.
(relevant_signal_set): Replaces stopping_signal_set.
(relevant_signal_set_initialized): New variable.
(init_relevant_signal_set): Replaces init_stopping_signal_set.
(block_relevant_signals): Replaces block_stopping_signals.
(unblock_relevant_signals): Replaces unblock_stopping_signals.
(is_ignored): New function.
(show_signal_marker): New function.
(fatal_or_stopping_signal_handler, fatal_signal_handler,
stopping_signal_handler, continuing_signal_handler,
ensure_continuing_signal_handler, ensure_other_signal_handlers): New functions.
(activate_non_default_attr, deactivate_non_default_attr): Rewritten.
(term_ostream::free): Unset term_fd and call update_pgrp_status.
(term_ostream_create): Initialize the fields restore_colors, restore_weight,
restore_posture, restore_underline, tty_control, same_as_stderr. Call
init_relevant_signal_set. Set term_fd and call ensure_continuing_signal_handler
and update_pgrp_status.
* gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Check for tcgetattr.
* gnulib-local/modules/term-ostream (Depends-on): Add sigaction, same-inode.
* libtextstyle/NEWS: Mention the change.
2019-03-17 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix build failure on Cygwin (regression from 2019-03-15).
* libtextstyle/lib/Makefile.am ($(srcdir)/libtextstyle.sym.in): Renamed
from $(srcdir)/libtextstyle.sym.
(libtextstyle.sym): New rule.
(MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST): Update accordingly.
(config.h): Depend on libtextstyle.sym in the build directory.
(libtextstyle_la_LDFLAGS: Use libtextstyle.sym in the build directory.
2019-03-17 Bruno Haible <bruno@clisp.org>
libtextstyle: Clean up leftovers from 2019-03-13 commit.
* libtextstyle/lib/Makefile.am (libtextstyle_la_LINK): Remove variable.
2019-03-16 Bruno Haible <bruno@clisp.org>
libtextstyle: Complete styled_ostream_flush_to_current_style declaration.
* libtextstyle/lib/textstyle.h (term_styled_ostream_flush_to_current_style,
html_styled_ostream_flush_to_current_style): New declarations.
2019-03-16 Bruno Haible <bruno@clisp.org>
libtextstyle: Protect better against EINTR.
* gnulib-local/lib/fd-ostream.oo.c (nonintr_tcdrain): New function.
(fd_ostream::flush): Use it instead of tcdrain.
* gnulib-local/lib/file-ostream.oo.c: Include <errno.h>.
(nonintr_tcdrain): New function.
(file_ostream::flush): Use it instead of tcdrain.
* gnulib-local/lib/term-ostream.oo.c (nonintr_tcdrain): New function.
(term_ostream::flush): Use it instead of tcdrain.
2019-03-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Reexport isatty() override from gnulib.
This is necessary for programs that are compiled for native Windows and
run in a Cygwin console.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add 'isatty'.
* libtextstyle/configure.ac: Set GNULIB_ISATTY to 0.
* libtextstyle/lib/textstyle.h (libtextstyle_isatty): New declaration.
(isatty): Redirect to libtextstyle_isatty.
2019-03-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Use less code from libxml.
* libtextstyle/gnulib-local/lib/libxml/xmlversion.in.h.diff: New file.
* gnulib-local/lib/libxml/save.h (xmlEncodeAttributeEntities): Declare also when
LIBXML_OUTPUT_ENABLED is 0.
2019-03-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix "make clean" failure in VPATH builds.
* libtextstyle/lib/Makefile.am (CLEANDIRS_NOT_IN_SRCDIR): Remove 'textstyle'.
(DISTCLEANDIRS_NOT_IN_SRCDIR): Add 'textstyle'.
2019-03-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Make sure we get new versions also of mdate-sh.
* libtextstyle/autogen.sh: Erase more files in build-aux.
2019-03-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Remove unused code for exporting variables from Windows DLLs.
Here we use the third approach listed in gettext-tools/woe32dll/export.h, not
the fourth approach.
* libtextstyle/Makefile.am: Remove code that was never enabled.
* libtextstyle/lib/Makefile.am: Likewise.
* libtextstyle/configure.ac (false): Remove conditional.
2019-03-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Add metainformation for Windows.
2019-03-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Add metainformation for Windows.
* libtextstyle/lib/libtextstyle.rc: New file.
* libtextstyle/lib/Makefile.am (EXTRA_DIST): Add it.
(WOE32_LIBADD): New variable.
(libtextstyle.res.lo): New rule.
(libtextstyle_la_LIBADD, libtextstyle_la_DEPENDENCIES): Augment.
2019-03-13 Bruno Haible <bruno@clisp.org>
libtextstyle: Don't use a C++ compiler.
* libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: New file.
* libtextstyle/gnulib-local/modules/html-styled-ostream.diff: New file.
* libtextstyle/gnulib-local/modules/term-styled-ostream.diff: New file.
* libtextstyle/lib/Makefile.am (libtextstyle_la_LINK): Use the C compiler
always.
* libtextstyle/configure.ac: Remove LT_LANG([C++]), AC_PROG_CXX, and related
invocations.
2019-03-13 Bruno Haible <bruno@clisp.org>
libasprintf: Add metainformation for Windows.
* gettext-runtime/libasprintf/configure.ac: Set RC and WOE32 variables.
* gettext-runtime/libasprintf/libasprintf.rc: New file.
* gettext-runtime/libasprintf/Makefile.am (EXTRA_DIST): Add it.
(WOE32_LIBADD): New variable.
(libasprintf.res.lo): New rule.
(libasprintf_la_LIBADD, libasprintf_la_DEPENDENCIES): New variables.
2019-03-13 Bruno Haible <bruno@clisp.org>
build: Update Windows support.
* gettext-runtime/intl/libintl.rc: Update.
* gettext-tools/libgettextpo/libgettextpo.rc: Likewise.
* windows/gettext.rc: Likewise.
2019-03-13 Bruno Haible <bruno@clisp.org>
libtextstyle: Bump version number.
2019-03-12 Bruno Haible <bruno@clisp.org>
libtextstyle: Bump version number.
2019-03-12 Bruno Haible <bruno@clisp.org>
libtextstyle: New function styled_ostream_flush_to_current_style.
* gnulib-local/lib/styled-ostream.oo.h (struct styled_ostream): Add method
flush_to_current_style.
* gnulib-local/lib/fd-styled-ostream.oo.c
(fd_styled_ostream::flush_to_current_style): New method.
* gnulib-local/lib/term-styled-ostream.oo.c
(term_styled_ostream::flush_to_current_style): New method.
* gnulib-local/lib/html-styled-ostream.oo.c
(html_styled_ostream::flush_to_current_style): New method.
* libtextstyle/lib/textstyle.h (styled_ostream_flush_to_current_style): New
declaration.
* libtextstyle/doc/libtextstyle.texi (The styled_ostream class): Document
styled_ostream_flush_to_current_style.
* libtextstyle/NEWS: Mention the change.
2019-03-12 Bruno Haible <bruno@clisp.org>
libtextstyle: New function html_ostream_flush_to_current_style.
* gnulib-local/lib/html-ostream.oo.h (struct html_ostream): Add method
flush_to_current_style.
* gnulib-local/lib/html-ostream.oo.c (html_ostream::flush_to_current_style): New
method.
* libtextstyle/lib/textstyle.h (html_ostream_flush_to_current_style): New
declaration.
* libtextstyle/doc/libtextstyle.texi (The html_ostream class): Document
html_ostream_flush_to_current_style.
* libtextstyle/NEWS: Mention the change.
2019-03-12 Bruno Haible <bruno@clisp.org>
libtextstyle: New function term_ostream_flush_to_current_style.
* gnulib-local/lib/term-ostream.oo.h (struct term_ostream): Add method
flush_to_current_style.
* gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Add fields
default_attr, active_attr, non_default_active.
(out_attr_change): Remove second argument. Update active_attr.
(activate_non_default_attr, deactivate_non_default_attr, activate_default_attr):
New functions, extracted from output_buffer.
(output_buffer): Use them. Add a second argument.
(term_ostream::write_mem, term_ostream::flush): Update output_buffer calls.
(term_ostream::free): Add an assertion.
(term_ostream::flush_to_current_style): New method.
(term_ostream_create): Initialize the fields default_attr, active_attr,
non_default_active.
* libtextstyle/lib/textstyle.h (term_ostream_flush_to_current_style): New
declaration.
* libtextstyle/doc/libtextstyle.texi (The term_ostream class): Document
term_ostream_flush_to_current_style.
* libtextstyle/NEWS: Mention the change.
2019-03-12 Bruno Haible <bruno@clisp.org>
libtextstyle: Add a second argument to the 'flush' operations.
* gnulib-local/lib/ostream.oo.h (ostream_flush_scope_t): New type.
(ostream::flush): Add scope parameter.
* gnulib-local/lib/file-ostream.oo.c: Include <unistd.h>, <termios.h>.
(file_ostream::flush): Add a scope parameter.
* gnulib-local/modules/file-ostream (Depends-on): Add 'fsync'.
(configure.ac): Check for tcdrain.
* gnulib-local/lib/fd-ostream.oo.c: Include <unistd.h>, <termios.h>.
(fd_ostream::flush): Add a scope parameter.
(fd_ostream::free): Update flush call.
* gnulib-local/modules/fd-ostream (Depends-on): Add 'fsync'.
(configure.ac): Check for tcdrain.
* gnulib-local/lib/term-ostream.oo.c: Include <unistd.h>, <termios.h>.
(term_ostream::flush): Add scope parameter.
(term_ostream::free): Update flush call.
* gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Check for tcdrain.
* gnulib-local/modules/term-ostream (Depends-on): Add 'fsync'.
* gnulib-local/lib/memory-ostream.oo.c (memory_ostream::flush): Add scope
parameter.
* gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::flush): Add scope
parameter.
* gnulib-local/lib/html-ostream.oo.c (html_ostream::flush): Add scope parameter.
Emit closing </span> tags.
* gnulib-local/lib/fd-styled-ostream.oo.c (fd_styled_ostream::flush): Add scope
parameter.
* gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream::flush): Add
scope parameter.
* gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::flush): Add
scope parameter.
* libtextstyle/lib/textstyle.h (ostream_flush_scope_t): New type.
(ostream_flush, styled_ostream_flush, file_ostream_flush, fd_ostream_flush,
term_ostream_flush, memory_ostream_flush, iconv_ostream_flush,
html_ostream_flush, term_styled_ostream_flush, html_styled_ostream_flush): Add
scope parameter.
* libtextstyle/doc/libtextstyle.texi (The ostream class): Add scope parameter to
flush method.
* libtextstyle/NEWS: Mention the change.
2019-03-11 Bruno Haible <bruno@clisp.org>
libtextstyle: Add a program for ad-hoc testing.
* libtextstyle/adhoc-tests/README: New file.
* libtextstyle/adhoc-tests/hello.c: New file, based on
libtextstyle/examples/color-hello/hello.c.
* libtextstyle/adhoc-tests/hello-default.css: New file, copied from
libtextstyle/examples/color-hello/hello-default.css.
* libtextstyle/adhoc-tests/Makefile.am: New file.
* libtextstyle/configure.ac (AC_CONFIG_FILES): Add adhoc-tests/Makefile.
* libtextstyle/Makefile.am (SUBDIRS): Add adhoc-tests.
2019-03-11 Bruno Haible <bruno@clisp.org>
doc: Clarify locale name syntax.
* gettext-tools/doc/gettext.texi (Locale Names): Fix typo in locale name syntax.
* gettext-tools/doc/msginit.texi: Clarify that the '-l' argument optionally
contains an encoding.
* gettext-tools/src/msginit.c (usage): Likewise.
2019-03-10 Bruno Haible <bruno@clisp.org>
doc: Add reference to Pology.
* gettext-tools/doc/gettext.texi (Other tools): New section.
2019-03-04 Bruno Haible <bruno@clisp.org>
build: Make shared library dependencies work in relocatable installation.
* gettext-tools/gnulib-lib/Makefile.am (RELOCATABLE_LIBRARY_PATH): New variable.
(libgettextlib_la_LDFLAGS): Augment for relocatable installation.
* gettext-tools/src/Makefile.am (libgettextsrc_la_LDFLAGS): Augment for
relocatable installation.
* gettext-tools/libgettextpo/Makefile.am (RELOCATABLE_LIBRARY_PATH): New
variable.
(libgettextpo_la_LDFLAGS): Augment for relocatable installation.
2019-03-04 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2019-03-04 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2019-02-24 Bruno Haible <bruno@clisp.org>
libintl: Fix installation with BSD 'make'.
* gettext-runtime/intl/Makefile.am (install-exec-libintl): Create destination
directory first.
2019-02-16 Bruno Haible <bruno@clisp.org>
libtextstyle: Improve the way the library is built.
* libtextstyle/lib/Makefile.am (libtextstyle_la_LDFLAGS): Add '-no-undefined',
needed for building on older versions of AIX and useful to verify no undefined
symbols are used by mistake. Add '-export-symbols', to reduce the loading time
of the shared library.
2019-02-15 Daiki Ueno <ueno@gnu.org>
its: Avoid uninitialized variable
* gettext-tools/src/its.c (normalize_whitespace): Initialize last_ws.
Fixes commit 89e7d2663bd27b8cdd300f26095f49d2c7519030.
2019-02-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Omit tests that rely on more than the public libtextstyle API.
* libtextstyle/autogen.sh: Don't pass --with-tests to gnulib-tool.
(GNULIB_MODULES): Add term-ostream-tests.
* gnulib-local/modules/term-ostream-tests (Makefile.am): Don't add
@INTL_MACOSX_LIBS@ to test_term_ostream_LDADD.
* gettext-tools/gnulib-tests/Makefile.am (test_term_ostream_LDADD): Add
@INTL_MACOSX_LIBS@ here.
2019-02-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Don't use an external libglib.
* gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Accept an optional FORCE-INCLUDED
argument.
* libtextstyle/gnulib-local/modules/libglib.diff: New file.
2019-02-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Don't use an external libxml.
* gnulib-local/m4/libxml.m4 (gl_LIBXML): Accept an optional FORCE-INCLUDED
argument.
* libtextstyle/gnulib-local/modules/libxml.diff: New file.
2019-02-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Don't use an external libcroco.
* gnulib-local/m4/libcroco.m4 (gl_LIBCROCO): Accept an optional FORCE-INCLUDED
argument.
* libtextstyle/gnulib-local/modules/libcroco.diff: New file.
* libtextstyle/autogen.sh: Pass another --local-dir option to gnulib-tool.
2019-02-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix build error on Cygwin and mingw.
* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Define LIBXML_STATIC.
2019-02-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Really fix hyperlinks to table of contents in HTML doc.
* libtextstyle/doc/Makefile.am (libunistring_toc.html): Fix typo in last commit.
2019-02-15 Bruno Haible <bruno@clisp.org>
libtextstyle: Document when and how to turn off styling.
* libtextstyle/doc/libtextstyle.texi (Basic use): Document when and how to turn
off styling.
* gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream_create): Handle
a NULL css_filename explicitly.
2019-02-15 Daiki Ueno <ueno@gnu.org>
its: Add new preserveSpaceRule "paragraph"
This implements a new text extraction rule preserving paragraph
boundaries, as mentioned in:
https://gitlab.gnome.org/GNOME/glib/issues/1350
* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Mention "paragraph".
* gettext-tools/src/its.c (its_rule_list_extract_text): Accept "paragraph".
(its_merge_context_merge_node): Likewise.
(normalize_whitespace): Handle "paragraph" rule.
* gettext-tools/src/its.h (ITS_WHITESPACE_NORMALIZE_PARAGRAPH): New enum value.
* gettext-tools/tests/xgettext-its-1: Add test for "paragraph" rule.
2019-02-15 Daiki Ueno <ueno@gnu.org>
its: Make whitespace normalization logic simpler
* gettext-tools/src/its.c (normalize_whitespace): Use parallel
pointers for normalizing whitespaces, instead of memmove.
Suggested by Bruno Haible.
2019-02-14 Bruno Haible <bruno@clisp.org>
libtextstyle: In the examples, actually respect the --color option.
Reported by Akim Demaille <akim.demaille@gmail.com>.
* libtextstyle/examples/color-filter/filter.c (main): Set style_file_name to
NULL when styling should be disabled.
* libtextstyle/examples/color-hello/hello.c (main): Likewise.
2019-02-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Assume that the texinfo sources are in the source dir.
* libtextstyle/doc/Makefile.am (stamp-vti, libtextstyle.html,
libtextstyle_toc.html): Lookup libunistring.texi in $(srcdir).
2019-02-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix hyperlinks to table of contents in HTML doc.
Reported by Akim Demaille <akim.demaille@gmail.com>.
* libtextstyle/doc/Makefile.am (libunistring_toc.html): Replace references to
libtextstyle.html with references to libtextstyle_toc.html.
2019-02-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Document the link options more precisely.
* libtextstyle/doc/libtextstyle.texi (Link options): Document the link
dependencies.
2019-02-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix build failure on mingw.
* gnulib-local/modules/html-styled-ostream (Depends-on): Add 'close'.
2019-02-14 Bruno Haible <bruno@clisp.org>
libtextstyle: Add support for VPATH builds with OpenBSD 'make'.
* gnulib-local/modules/*ostream (Makefile.am): In the rules that use moopp,
prefix the target file names with '$(srcdir)/'.
2019-02-13 Bruno Haible <bruno@clisp.org>
libtextstyle: Put the .sym file in the source directory.
* libtextstyle/lib/Makefile.am (libtextstyle.sym): Generate in the source
directory.
(config.h): Update rule.
2019-02-12 Bruno Haible <bruno@clisp.org>
libtextstyle: Fix configuration of the example programs.
Reported by Akim Demaille <akim.demaille@gmail.com>.
* libtextstyle/Makefile.am (EXTRA_DIST): Add m4/libtextstyle.m4.
2019-02-12 Bruno Haible <bruno@clisp.org>
libtextstyle: Bump version number.
* libtextstyle/version.sh (VERSION): Set to 0.6.
2019-02-10 Bruno Haible <bruno@clisp.org>
libtextstyle: New project.
* libtextstyle/AUTHORS: New file, extracted from gettext/AUTHORS.
* libtextstyle/COPYING: New file, copied from gettext/COPYING.
* libtextstyle/DEPENDENCIES: New file, based on gettext/DEPENDENCIES.
* libtextstyle/HACKING: New file, based on gettext/HACKING.
* libtextstyle/INSTALL: New file, copied from gettext/INSTALL.
* libtextstyle/Makefile.am: New file, based on libunistring/Makefile.am.
* libtextstyle/NEWS: New file.
* libtextstyle/README: New file, based on libunistring/README.
* libtextstyle/autogen.sh: New file, based on libunistring/autogen.sh.
* libtextstyle/configure.ac: New file, based on libunistring/configure.ac.
* libtextstyle/build-aux/texi2html: New file, copied from
libunistring/build-aux/texi2html.
* libtextstyle/doc/Makefile.am: New file, based on libunistring/doc/Makefile.am.
* libtextstyle/doc/fdl.texi: New file, copied from gnulib/doc/fdl.texi.
* libtextstyle/doc/gpl.texi: New file, copied from gnulib/doc/gpl-3.0.texi.
* libtextstyle/doc/libtextstyle.texi: New file, partially based on
gettext/gettext-tools/doc/gettext.texi.
* libtextstyle/examples/color-filter/INSTALL: New file, based on
gettext/gettext-tools/examples/hello-c/INSTALL.
* libtextstyle/examples/color-filter/Makefile.am: New file, based on
gettext/gettext-tools/examples/hello-c/Makefile.am.
* libtextstyle/examples/color-filter/README: New file.
* libtextstyle/examples/color-filter/autoclean.sh: New file, based on
gettext/gettext-tools/examples/hello-c/autoclean.sh.
* libtextstyle/examples/color-filter/autogen.sh: New file, based on
gettext/gettext-tools/examples/hello-c/autogen.sh.
* libtextstyle/examples/color-filter/configure.ac: New file.
* libtextstyle/examples/color-filter/filter.c: New file.
* libtextstyle/examples/color-filter/filter-default.css: New file.
* libtextstyle/examples/color-hello/INSTALL: New file, based on
gettext/gettext-tools/examples/hello-c/INSTALL.
* libtextstyle/examples/color-hello/Makefile.am: New file, based on
gettext/gettext-tools/examples/hello-c/Makefile.am.
* libtextstyle/examples/color-hello/README: New file.
* libtextstyle/examples/color-hello/autoclean.sh: New file, based on
gettext/gettext-tools/examples/hello-c/autoclean.sh.
* libtextstyle/examples/color-hello/autogen.sh: New file, based on
gettext/gettext-tools/examples/hello-c/autogen.sh.
* libtextstyle/examples/color-hello/configure.ac: New file.
* libtextstyle/examples/color-hello/hello.c: New file.
* libtextstyle/examples/color-hello/hello-default.css: New file.
* libtextstyle/examples/color-hello/names.c: New file.
* libtextstyle/lib/Makefile.am: New file, based on libunistring/lib/Makefile.am.
* libtextstyle/lib/misc.h: New file.
* libtextstyle/lib/misc.c: New file.
* libtextstyle/lib/notinline.h: New file, based on
libunistring/lib/unistring-notinline.h.
* libtextstyle/lib/stdbool.mini.h: New file, based on
libunistring/lib/stdbool.mini.h.
* libtextstyle/lib/textstyle.h: New file, based on
gnulib-local/lib/*ostream.oo.h.
* libtextstyle/lib/textstyle/version.in.h: New file, based on
libunistring/lib/unistring/version.in.h.
* libtextstyle/lib/textstyle/woe32dll.in.h: New file, based on
libunistring/lib/unistring/woe32dll.in.h.
* libtextstyle/lib/version.c: New file, based on libunistring/lib/version.c.
* libtextstyle/m4/init-package-version.m4: New file, copied from
libunistring/m4/init-package-version.m4.
* libtextstyle/tests/Makefile.am: New file, based on
libunistring/tests/Makefile.am.
* libtextstyle/version.sh: New file, based on libunistring/version.sh.
* libtextstyle/woe32dll/c++fd-styled-ostream.cc: New file.
* libtextstyle/woe32dll/c++html-styled-ostream.cc: New file.
* libtextstyle/woe32dll/c++term-styled-ostream.cc: New file.
* gnulib-local/lib/glib/gstring.c (g_string_append_c): In libtextstyle, honor a
macro definition.
* gnulib-local/lib/libxml/elfgcchack.h: In libtextstyle, make this entire file a
no-op.
* gnulib-local/lib/libxml/globals.in.h (docbDefaultSAXHandler,
htmlDefaultSAXHandler, oldXMLWDcompatibility, xmlBufferAllocScheme,
xmlDefaultBufferSize, xmlDefaultSAXHandler, xmlDefaultSAXLocator,
xmlDoValidityCheckingDefaultValue, xmlFree, xmlGenericError, xmlStructuredError,
xmlGenericErrorContext, xmlStructuredErrorContext, xmlGetWarningsDefaultValue,
xmlIndentTreeOutput, xmlTreeIndentString, xmlKeepBlanksDefaultValue,
xmlLineNumbersDefaultValue, xmlLoadExtDtdDefaultValue, xmlMalloc,
xmlMallocAtomic, xmlMemStrdup, xmlParserDebugEntities, xmlParserVersion,
xmlPedanticParserDefaultValue, xmlRealloc, xmlSaveNoEmptyTags,
xmlSubstituteEntitiesDefaultValue, xmlRegisterNodeDefaultValue,
xmlDeregisterNodeDefaultValue, xmlLastError,
xmlParserInputBufferCreateFilenameValue, xmlOutputBufferCreateFilenameValue): In
libtextstyle, honor a macro definition.
* gnulib-local/lib/libxml/globals.c (xmlFree, xmlMalloc, xmlMallocAtomic,
xmlMemStrdup, xmlRealloc, docbDefaultSAXHandler, htmlDefaultSAXHandler,
oldXMLWDcompatibility, xmlBufferAllocScheme, xmlDefaultBufferSize,
xmlDefaultSAXHandler, xmlDefaultSAXLocator, xmlDoValidityCheckingDefaultValue,
xmlGenericError, xmlStructuredError, xmlGenericErrorContext,
xmlStructuredErrorContext, xmlGetWarningsDefaultValue, xmlIndentTreeOutput,
xmlTreeIndentString, xmlKeepBlanksDefaultValue, xmlLineNumbersDefaultValue,
xmlLoadExtDtdDefaultValue, xmlParserDebugEntities, xmlParserVersion,
xmlPedanticParserDefaultValue, xmlSaveNoEmptyTags,
xmlSubstituteEntitiesDefaultValue, xmlRegisterNodeDefaultValue,
xmlDeregisterNodeDefaultValue, xmlLastError,
xmlParserInputBufferCreateFilenameValue, xmlOutputBufferCreateFilenameValue):
Likewise.
* gnulib-local/lib/libxml/xmlmemory.c (xmlMalloc): Likewise.
2019-02-10 Bruno Haible <bruno@clisp.org>
gnulib-local: New module 'fd-styled-ostream'.
* gnulib-local/lib/fd-styled-ostream.oo.h: New file.
* gnulib-local/lib/fd-styled-ostream.oo.c: New file.
* gnulib-local/modules/fd-styled-ostream: New file.
* gnulib-local/Makefile.am (EXTRA_DIST): Add them.
2019-02-10 Bruno Haible <bruno@clisp.org>
term-ostream: Remove the need for an exit handler.
* gnulib-local/lib/term-ostream.oo.c (output_buffer): Delay the error() call
until the default state has been restored.
2019-02-10 Bruno Haible <bruno@clisp.org>
term-ostream: Prepare for robustness through signal handling.
* gnulib-local/lib/term-ostream.oo.h (ttyctl_t): New type.
(term_ostream_create): Add tty_control argument.
* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Likewise.
* gnulib-local/lib/term-styled-ostream.oo.h: Include term-ostream.h.
(term_styled_ostream_create): Add tty_control argument.
* gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream_create):
Likewise.
* gnulib-local/tests/test-term-ostream.c (main): Use TTYCTL_AUTO.
* gettext-tools/src/color.c (print_color_test): Likewise.
* gettext-tools/src/write-catalog.c (msgdomain_list_print): Likewise.
2019-02-10 Bruno Haible <bruno@clisp.org>
libasprintf: Tweak documentation formatting.
* gettext-runtime/libasprintf/autosprintf.texi: Indent all paragraphs the same
way.
2019-02-10 Bruno Haible <bruno@clisp.org>
Fix typo in comment.
* gettext-tools/src/color.h (style_file_prepare): Fix typo in comment.
2019-02-10 Bruno Haible <bruno@clisp.org>
doc: Fix typo.
* gettext-tools/doc/gettext.texi (Styles rules): Fix typo.
2019-02-09 Bruno Haible <bruno@clisp.org>
Update copyright years.
2019-02-09 Bruno Haible <bruno@clisp.org>
Remove automatically generated files from version control.
2019-02-09 Bruno Haible <bruno@clisp.org>
html-styled-ostream: Fix memory leak.
* gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::free): Free
the stream.
2019-02-09 Bruno Haible <bruno@clisp.org>
html-ostream: Fix memory leak.
* gnulib-local/lib/html-ostream.oo.c: Include minmax.h.
(verify_invariants, shrink_class_stack): New functions.
(emit_pending_spans): Use them.
(html_ostream::write_mem): Shrink class stack during newline processing.
(html_ostream::free, html_ostream::begin_span): Verify invariants.
(html_ostream::end_span): Likewise. Shrink class stack.
* gnulib-local/modules/html-ostream (Depends-on): Add 'minmax'.
2019-02-08 Bruno Haible <bruno@clisp.org>
examples: Fix build failure when building from git (regression from 2018-10-23).
* gettext-tools/examples/po/xsmallpot.sh: Build less of 'hello-pascal'.
2019-02-08 Bruno Haible <bruno@clisp.org>
color: Make color.c package-neutral.
* gettext-tools/src/color.h (style_file_prepare): Add arguments.
* gettext-tools/src/color.c: Don't include relocatable.h.
(style_file_lookup): Add stylesdir_after_install argument.
(style_file_prepare): Add arguments.
* gettext-tools/src/write-catalog.c: Include relocatable.h.
(GETTEXTSTYLESDIR): New macro.
(msgdomain_list_print): Update style_file_prepare calls.
* gettext-tools/tests/init-env.in (GETTEXTSTYLESDIR): New environment variable.
2019-02-08 Bruno Haible <bruno@clisp.org>
term-ostream: Accommodate a shell that is not in /bin/sh.
* gnulib-local/tests/test-term-ostream-xterm.sh: Renamed from
gnulib-local/tests/test-term-ostream-xterm.
* gnulib-local/modules/term-ostream-tests (Files, Makefile.am): Update
accordingly.
* gnulib-local/Makefile.am (EXTRA_DIST): Likewise.
2019-02-08 Bruno Haible <bruno@clisp.org>
libglib: Fix list of files to clean.
* gnulib-local/modules/libglib (MOSTLYCLEANFILES): Add glib.h-t, glibconfig.h-t.
2019-02-08 Bruno Haible <bruno@clisp.org>
build: Code style.
* autogen.sh: Make it clear that 'touch config.h.in' is tied to autoheader.
2019-02-05 Bruno Haible <bruno@clisp.org>
Remove left-over empty directories in 'make distclean'.
* gettext-tools/gnulib-tests/Makefile.am (distclean-local): New target.
2019-02-04 Bruno Haible <bruno@clisp.org>
Fix copyright years.
2019-01-25 Bruno Haible <bruno@clisp.org>
doc: Mention --color=test in the description of the --color option.
Reported by Nathaniel M. Beaver <nathanielmbeaver@gmail.com>
in <https://savannah.gnu.org/bugs/?55573>.
* gettext-tools/doc/gettext.texi (Colorizing): Mention that the --color and
--style options are applicable to many programs.
(The --color option): Mention the 'test' value.
2019-01-21 Bruno Haible <bruno@clisp.org>
msginit: Update for current shape of Translation Project.
Reported by Karl Ove Hufthammer <karl@huftis.org>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-01/msg00014.html>.
* gettext-tools/projects/TP/teams.html: Fetched from teams.url.
* gettext-tools/projects/TP/team-address: Update sed expressions for current
structure of teams page.
2019-01-06 Bruno Haible <bruno@clisp.org>
Make cldr-plurals program more robust.
* gettext-tools/src/cldr-plurals.c: Include closeout.h.
(main): Arrange to invoke close_stdout at program exit.
2019-01-06 Bruno Haible <bruno@clisp.org>
Assume setlocale function.
* gettext-runtime/src/envsubst.c (main): Assume setlocale exists.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main, canonical_locale_charset, get_title):
Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* gettext-tools/tests/testlocale.c (main): Likewise.
* gettext-tools/tests/tstgettext.c (main): Likewise.
* gettext-tools/tests/tstngettext.c (main): Likewise.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't test whether setlocale
exists.
2019-01-06 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
2019-01-06 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-12-17 Bruno Haible <bruno@clisp.org>
Fix compilation error on HP-UX with gcc.
* gnulib-local/lib/libxml/trionan.c: Include <float.h>.
2018-12-16 Bruno Haible <bruno@clisp.org>
Add comment regarding HP-UX cc in C99 mode.
* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update
comment.
2018-11-25 Bruno Haible <bruno@clisp.org>
intl: Really uninstall the intl/ subdir sources.
* gettext-runtime/intl/Makefile.am (uninstall-sources): New target.
2018-11-25 Bruno Haible <bruno@clisp.org>
Fix compilation error (regression from today).
* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add 'unistd'.
* gettext-runtime/src/envsubst.c: Include <unistd.h>.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Use Automake in intl subdirectory.
* gettext-runtime/intl/Makefile.am: New file, based on
gettext-runtime/intl/Makefile.in.
* gettext-runtime/intl/Makefile.in: Remove file.
* autogen.sh: Copy gettext-runtime/intl/Makefile.am to
gettext-tools/intl/Makefile.am.
* gettext-runtime/configure.ac (USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL,
PACKAGE_IS_GETTEXT_TOOLS, PRELOADABLE_LIBINTL): New conditionals.
* gettext-tools/configure.ac: Likewise.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Stop generating a VERSION file.
* gettext-tools/configure.ac: Don't create intl/VERSION.
* gettext-runtime/intl/Makefile.in (DISTFILES.normal): Remove variable.
(distclean): Simplify accordingly.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Remove some duplicate .m4 files.
* autogen.sh: Copy wchar_t.m4 and wint_t.m4 for libasprintf.
* gettext-runtime/m4/codeset.m4: Remove file.
* gettext-runtime/m4/extern-inline.m4: Remove file.
* gettext-runtime/m4/intl-thread-locale.m4: Remove file.
* gettext-runtime/m4/lcmessage.m4: Remove file.
* gettext-runtime/m4/lock.m4: Remove file.
* gettext-runtime/m4/longlong.m4: Remove file.
* gettext-runtime/m4/threadlib.m4: Remove file.
* gettext-runtime/m4/wchar_t.m4: Remove file.
* gettext-runtime/m4/wint_t.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Don't distribute them.
* Makefile.am (distcheck-hook): Don't verify that they are identical copies.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Fix #line statements in bison-generated files.
* gettext-tools/src/plural-exp.c: Revert changes from 2014-12-03 and 2014-12-04.
* gettext-runtime/intl/Makefile.in (PLURAL_OBJECT): Remove variable.
(OBJECTS): Use plural.lo always.
($(srcdir)/plural.c): New rule.
(.y.c, pluralx.c, pluralx.lo): Remove rules.
(mostlyclean): Delete the temporary file of the plural.c rule.
(maintainer-clean): Delete plural.c.
* gettext-tools/configure.ac (intl/Makefile): Remove PLURAL_OBJECT hack.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Fix #line statements in bison-generated files.
* gettext-tools/src/Makefile.am (po-gram-gen.c, cldr-plural.c): Override the
Automake .y.c rule.
(po-gram-gen.h, cldr-plural.h): Remove separate target.
(po-gram-gen2.h): Generate in the source directory.
2018-11-25 Bruno Haible <bruno@clisp.org>
maint: Add write-up of how to do code coverage.
2018-11-25 Bruno Haible <bruno@clisp.org>
libasprintf: On mingw, really use our vasprintf function, not mingw_vasprintf.
mingw now has a definition of 'vasprintf' in <stdio.h> that redirects to
mingw_vasprintf, which does not support argument reordering (i.e.
HAVE_POSIX_PRINTF is not defined). Make sure to avoid this function and use
the one defined in our lib-asprintf.c instead.
* gettext-runtime/libasprintf/lib-asprintf.h (asprintf): Define as macro
redirecting to libasprintf_asprintf.
(vasprintf): Define as macro redirecting to libasprintf_vasprintf.
* gettext-runtime/libasprintf/lib-asprintf.c: Define also libasprintf_asprintf
and libasprintf_vasprintf.
* gettext-runtime/libasprintf/autosprintf.cc: Include lib-asprintf.h last.
2018-11-25 Bruno Haible <bruno@clisp.org>
msginit: Add comment about test failure on native Windows.
* gettext-tools/tests/msginit-3: Add comment.
2018-11-25 Bruno Haible <bruno@clisp.org>
msginit: On native Windows, produce same PO header as on Unix.
* gettext-tools/src/msginit.c (plural_forms): Eliminate a trailing CR.
2018-11-25 Bruno Haible <bruno@clisp.org>
envsubst: On native Windows, produce output suitable for the shell.
* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add 'binary-io'.
* gettext-runtime/src/envsubst.c (main): In --variables mode, put stdout in
binary mode.
2018-11-25 Bruno Haible <bruno@clisp.org>
Fix some mingw test failures.
* gettext-tools/tests/intl-1: Ignore different end-of-line convention in the
output.
* gettext-tools/tests/intl-2: Likewise.
* gettext-tools/tests/intl-3: Likewise.
* gettext-tools/tests/msgfmt-desktop-1: Likewise.
* gettext-tools/tests/msgfmt-desktop-2: Likewise.
* gettext-tools/tests/sentence-1: Likewise.
* gettext-tools/tests/cldr-plurals-1: Likewise.
* gettext-tools/tests/lang-c: On native Windows, ignore different end-of-line
convention in the output.
* gettext-tools/tests/lang-c++: Likewise.
* gettext-tools/tests/msgfilter-8: On native Windows, use sh, not /bin/sh.
2018-11-25 Bruno Haible <bruno@clisp.org>
Fix some mingw test failures.
* gettext-tools/tests/init-env.in (wabs_srcdir, wabs_top_srcdir): New variables.
(GETTEXTDATADIR): On mingw, use native Windows syntax.
* gettext-tools/tests/format-c-3: Use wabs_srcdir instead of abs_srcdir, and
wabs_top_srcdir instead of abs_top_srcdir.
* gettext-tools/tests/format-c-4: Likewise.
* gettext-tools/tests/format-c-5: Likewise.
* gettext-tools/tests/gettextpo-1: Likewise.
* gettext-tools/tests/intl-1: Likewise.
* gettext-tools/tests/intl-2: Likewise.
* gettext-tools/tests/intl-3: Likewise.
* gettext-tools/tests/intl-4: Likewise.
* gettext-tools/tests/intl-setlocale-1: Likewise.
* gettext-tools/tests/intl-setlocale-2: Likewise.
* gettext-tools/tests/intl-thread-1: Likewise.
* gettext-tools/tests/intl-thread-2: Likewise.
* gettext-tools/tests/intl-thread-3: Likewise.
* gettext-tools/tests/msgfmt-qt-1: Likewise.
* gettext-tools/tests/msgfmt-qt-2: Likewise.
* gettext-tools/tests/msginit-3: Likewise.
* gettext-tools/tests/msginit-4: Likewise.
* gettext-tools/tests/msgmerge-compendium-5: Likewise.
* gettext-tools/tests/msgmerge-compendium-6: Likewise.
* gettext-tools/tests/msgunfmt-3: Likewise.
* gettext-tools/tests/msgunfmt-tcl-1: Likewise.
* gettext-tools/tests/msguniq-1: Likewise.
* gettext-tools/tests/msguniq-2: Likewise.
* gettext-tools/tests/msguniq-3: Likewise.
* gettext-tools/tests/msguniq-4: Likewise.
* gettext-tools/tests/plural-1: Likewise.
* gettext-tools/tests/xgettext-1: Likewise.
* gettext-tools/tests/xgettext-c-1: Likewise.
* gettext-tools/tests/xgettext-c-comment-6: Likewise.
* gettext-tools/tests/xgettext-c-escape-3: Likewise.
* gettext-tools/tests/xgettext-vala-2: Likewise.
2018-11-25 Bruno Haible <bruno@clisp.org>
intl: Fix gettext test failures on mingw.
* gettext-runtime/intl/localename.c (gl_locale_name_posix): Convert the result
of gl_locale_name_environ to XPG syntax.
2018-11-25 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-11-25 Bruno Haible <bruno@clisp.org>
Fix typo in comment.
* gettext-tools/src/msgexec.c (process_string): Fix typo in comment.
2018-11-25 Bruno Haible <bruno@clisp.org>
Fix typos in tests.
* gettext-tools/tests/msgfmt-desktop-1: Fix reference to MSGFMT variable.
* gettext-tools/tests/msgfmt-desktop-2: Likewise.
* gettext-tools/tests/msgfmt-xml-1: Likewise.
* gettext-tools/tests/msgfmt-xml-2: Likewise.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Remove generated files from version control.
This creates a bootstrapping issue, but it can be mitigated:
If a user wants to build GNU gettext on a platform which does not have the
GNU gettext programs installed, they first need to build and install a tarball
of GNU gettext; then only they can build GNU gettext from the git repository.
* gettext-runtime/po/gettext-runtime.pot: Remove file.
* gettext-tools/po/gettext-tools.pot: Remove file.
* gettext-tools/examples/po/gettext-examples.pot: Remove file.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Update .gitignore for 2018-05-19 change in gnulib.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Update .gitignore for 2018-02-02 change in gnulib.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Update .gitignore for 2017-05-01 change in gnulib.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Update .gitignore for 2017-03-11 change in gnulib.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Update .gitignore for 2017-05-04 change.
2018-11-25 Bruno Haible <bruno@clisp.org>
build: Fix mistake in .gitignore (from 2016-12-11).
2018-11-25 Bruno Haible <bruno@clisp.org>
Amend 'Stop installing the intl/ subdir sources.' commit from 2018-11-11.
* gettext-runtime/intl/Makefile.in (install-data, uninstall): Remove the entire
$prefix/share/gettext/intl directory.
2018-11-25 Bruno Haible <bruno@clisp.org>
Fix compilation error on mingw (regression from 2018-11-04).
* gettext-tools/src/x-appdata.h (SCANNERS_APPDATA): Remove
literalstring_parser initializer.
2018-11-21 Pavel Raiskup <praiskup@redhat.com>
msgfmt: fix C&P issue
* gettext-tools/src/msgl-check.c (syntax_check_space_ellipsis):
Use 'end' for buffer size computation, instead of NULL 'ellipsis'.
2018-11-21 Pavel Raiskup <praiskup@redhat.com>
format-kde-kuit: really use fallback markup
* gettext-tools/src/format-kde-kuit.c (format_parse): Use markup.h
methods when FORMAT_KDE_KUIT_USE_FALLBACK_MARKUP is defined. Also
free buffer if there's no support for XML.
2018-11-18 Bruno Haible <bruno@clisp.org>
msgmerge must produce output that is stable under msgcat.
Reported by Ludovic Courtès <ludo@gnu.org>
in <https://savannah.gnu.org/bugs/?51027>.
* gettext-tools/src/write-po.c (message_print_obsolete): Preserve the 'no-wrap'
and '*-format' flags.
* gettext-tools/tests/msgmerge-27: New file.
* gettext-tools/tests/msgmerge-28: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/tests/msgmerge-19: Update expected result.
2018-11-18 Bruno Haible <bruno@clisp.org>
gettextize: Give more advice.
* gettext-tools/misc/gettextize.in: Tell the user to remove
AM_GNU_GETTEXT_INTL_SUBDIR invocations.
2018-11-18 Bruno Haible <bruno@clisp.org>
Simplify Autoconf macros.
* gettext-runtime/m4/intldir.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove intldir.m4.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Disallow 'no-libtool'
argument. Use libtool always. Remove variables that existed only for backward
compatibility.
* gettext-runtime/m4/intl.m4: Update comments.
* autogen.sh: Ignore gettext.m4 and intl.m4 from gnulib.
* gettext-runtime/intl/Makefile.in: Use libtool always.
(libintl.a, libgnuintl.a): Remove rule.
(.o): Remove suffix rule.
(install-exec, installdirs, uninstall, distclean, dist, distdir): PACKAGE cannot
be anything else than gettext-runtime and gettext-tools any more.
* gettext-tools/configure.ac (intl/Makefile): Update.
* NEWS: Mention that AM_GNU_GETTEXT_INTL_SUBDIR is gone.
2018-11-17 Bruno Haible <bruno@clisp.org>
Make 'make distcheck' work in a VPATH build.
* Makefile.am (distcheck-hook): Compare files in $(srcdir).
* gettext-tools/examples/po/xsmallpot.sh: Put the resulting POT file in the
source dir, not in the build dir.
* gettext-tools/examples/po/Makefile.am (update-po): Execute sub-make in the
build dir, not in the source dir.
(SMALLPOFILES_FOR_lang): Prefix file names with $(srcdir).
(hello-*/po/*.po): Likewise. Execute mmsmallpo.sh in $(srcdir).
2018-11-11 Bruno Haible <bruno@clisp.org>
gettextize: Install also host-cpu-c-abi.m4 (needed since 2018-03-24).
* gettext-tools/m4/Makefile.am (aclocal_DATA): Install host-cpu-c-abi.m4.
* PACKAGING: Mention host-cpu-c-abi.m4.
* gettext-tools/misc/gettextize.in (m4filelist): Add host-cpu-c-abi.m4.
* gettext-tools/doc/gettext.texi (aclocal): Mention host-cpu-c-abi.m4.
2018-11-11 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-11-11 Bruno Haible <bruno@clisp.org>
Update packaging instructions.
* PACKAGING: Update file list.
2018-11-11 Bruno Haible <bruno@clisp.org>
gettextize: Require automake >= 1.9.
* gettext-tools/misc/gettextize.in: Signal an error if 'aclocal' from
automake >= 1.9 is not found. Stop installing intldir.m4, intl.m4 and its
dependencies.
* gettext-tools/doc/gettext.texi (mkinstalldirs, aclocal): State the requirement
to have automake >= 1.9.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Don't install codeset.m4,
extern-inline.m4, fcntl-o.m4, glibc2.m4, glibc21.m4, intdiv0.m4, intl.m4,
intl-thread-locale.m4, intldir.m4, intmax.m4, inttypes_h.m4, inttypes-pri.m4,
lcmessage.m4, lock.m4, longlong.m4, printf-posix.m4, size_max.m4, stdint_h.m4,
threadlib.m4, uintmax_t.m4, visibility.m4, wchar_t.m4, wint_t.m4, xsize.m4.
* PACKAGING: Remove the *.m4 files that are no longer installed.
2018-11-11 Bruno Haible <bruno@clisp.org>
Stop installing the intl/ subdir sources.
* gettext-runtime/intl/Makefile.in (gettextsrcdir): Remove variable.
(DISTFILES.obsolete): Remove variable.
(install-data): Don't install nor remove anything.
(installdirs): Don't create $(gettextsrcdir).
* gettext-tools/misc/add-to-archive: Don't add the intl directory to the
archive.
* PACKAGING: Remove mention of $prefix/share/gettext/intl/ directory.
2018-11-11 Bruno Haible <bruno@clisp.org>
gettextize: Remove --intl option.
* gettext-tools/misc/gettextize.in (func_usage): Don't mention --intl option.
Signal an error if the --intl option is specified.
Simplify main code accordingly.
* gettext-tools/doc/gettextize.texi: Remove --intl option description.
* gettext-tools/doc/gettext.texi (Prerequisites): Remove mention of intl/
directory.
(configure.ac): Suggest to use AM_GNU_GETTEXT([external]) always. Remove mention
of intl/ directory.
(config.guess): Suggest them always.
(aclocal): Shrink the list of .m4 files.
(acconfig): Remove subsection.
(config.h.in): Remove mention of intl/ directory.
(Makefile, src/Makefile, lib/gettext.h): Likewise.
(AM_GNU_GETTEXT): First argument must be 'external'. Remove third argument.
(AM_GNU_GETTEXT_INTL_SUBDIR): Remove subsection.
(Language Implementors): Remove mention of intl/ directory. Mention that
Solaris 11 gettext works like GNU gettext.
(Maintainers for other Languages): Remove mention of intl/ directory.
* gettext-tools/doc/autopoint.texi: Update explanation of name.
* NEWS: Mention the change.
2018-11-09 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-18 to xgettext-c-6.
* gettext-tools/tests/xgettext-c-6: Renamed from
gettext-tools/tests/xgettext-c-18.
* Makefile.am (TESTS): Update.
2018-11-09 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-25 to xgettext-c-5.
* gettext-tools/tests/xgettext-c-5: Renamed from
gettext-tools/tests/xgettext-c-25.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-24 to xgettext-c-comment-6.
* gettext-tools/tests/xgettext-c-comment-6: Renamed from
gettext-tools/tests/xgettext-c-24.
* gettext-tools/tests/xg-c-comment-6.c: Renamed from
gettext-tools/tests/xg-c-24.c.
* Makefile.am (TESTS, EXTRA_DIST): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-9 to xgettext-c-comment-5.
* gettext-tools/tests/xgettext-c-comment-5: Renamed from
gettext-tools/tests/xgettext-c-9.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-6 to xgettext-c-comment-4.
* gettext-tools/tests/xgettext-c-comment-4: Renamed from
gettext-tools/tests/xgettext-c-6.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-16 to xgettext-c-comment-3.
* gettext-tools/tests/xgettext-c-comment-3: Renamed from
gettext-tools/tests/xgettext-c-16.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-7 to xgettext-c-comment-2.
* gettext-tools/tests/xgettext-c-comment-2: Renamed from
gettext-tools/tests/xgettext-c-7.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-5 to xgettext-c-comment-1.
* gettext-tools/tests/xgettext-c-comment-1: Renamed from
gettext-tools/tests/xgettext-c-5.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-21 to xgettext-c-escape-3.
* gettext-tools/tests/xgettext-c-escape-3: Renamed from
gettext-tools/tests/xgettext-c-21.
* gettext-tools/tests/xg-c-escape-3.c: Renamed from
gettext-tools/tests/xg-c-21.c.
* Makefile.am (TESTS, EXTRA_DIST): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-23 to xgettext-c-escape-2.
* gettext-tools/tests/xgettext-c-escape-2: Renamed from
gettext-tools/tests/xgettext-c-23.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-19 to xgettext-c-escape-1.
* gettext-tools/tests/xgettext-c-escape-1: Renamed from
gettext-tools/tests/xgettext-c-19.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-14 to xgettext-c-format-5.
* gettext-tools/tests/xgettext-c-format-5: Renamed from
gettext-tools/tests/xgettext-c-14.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-17 to xgettext-c-format-4.
* gettext-tools/tests/xgettext-c-format-4: Renamed from
gettext-tools/tests/xgettext-c-17.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-13 to xgettext-c-format-3.
* gettext-tools/tests/xgettext-c-format-3: Renamed from
gettext-tools/tests/xgettext-c-13.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-8 to xgettext-c-format-2.
* gettext-tools/tests/xgettext-c-format-2: Renamed from
gettext-tools/tests/xgettext-c-8.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-12 to xgettext-c-format-1.
* gettext-tools/tests/xgettext-c-format-1: Renamed from
gettext-tools/tests/xgettext-c-12.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-15 to xgettext-c-ctxt-3.
* gettext-tools/tests/xgettext-c-ctxt-3: Renamed from
gettext-tools/tests/xgettext-c-15.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-11 to xgettext-c-ctxt-2.
* gettext-tools/tests/xgettext-c-ctxt-2: Renamed from
gettext-tools/tests/xgettext-c-11.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-10 to xgettext-c-ctxt-1.
* gettext-tools/tests/xgettext-c-ctxt-1: Renamed from
gettext-tools/tests/xgettext-c-10.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-22 to xgettext-c-c++-2.
* gettext-tools/tests/xgettext-c-c++-2: Renamed from
gettext-tools/tests/xgettext-c-22.
* Makefile.am (TESTS): Update.
2018-11-08 Bruno Haible <bruno@clisp.org>
xgettext tests: Rename xgettext-c-20 to xgettext-c-c++-1.
* gettext-tools/tests/xgettext-c-c++-1: Renamed from
gettext-tools/tests/xgettext-c-20.
* Makefile.am (TESTS): Update.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: C: Treat invalid escape sequences like GCC does.
* gettext-tools/src/x-c.c (phase7_getc): For invalid escape sequences "\c",
produce c, not a backslash.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Simplify calling convention of arglist_parser_remember.
* gettext-tools/src/xg-arglist-parser.h (struct partial_call): Add
'msgid_comment_is_utf8' field.
(arglist_parser_remember): Add comment_is_utf8 argument.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_alloc,
arglist_parser_clone): Update.
(arglist_parser_remember): Add comment_is_utf8 argument.
(arglist_parser_done): Pass comment_is_utf8 value down to remember_a_message.
* gettext-tools/src/x-c.c (extract_parenthesized): Update callers. Don't set
xgettext_current_source_encoding around arglist_parser_remember calls.
* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
* gettext-tools/src/x-perl.c (extract_balanced): Likewise.
* gettext-tools/src/x-python.c (extract_balanced): Likewise.
* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
* gettext-tools/src/x-awk.c (extract_parenthesized): Update callers.
* gettext-tools/src/x-elisp.c (read_object): Likewise.
* gettext-tools/src/x-librep.c (read_object): Likewise.
* gettext-tools/src/x-lisp.c (read_object): Likewise.
* gettext-tools/src/x-lua.c (extract_balanced): Likewise.
* gettext-tools/src/x-php.c (extract_balanced): Likewise.
* gettext-tools/src/x-scheme.c (read_object): Likewise.
* gettext-tools/src/x-sh.c (read_command): Likewise.
* gettext-tools/src/x-tcl.c (read_command): Likewise.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Delay calls to from_current_source_encoding, part 2.
* gettext-tools/src/xg-arglist-parser.h: Include xg-mixed-string.h.
(struct partial_call): Change type of fields msgctxt, msgid, msgid_plural to
'mixed_string_ty *'.
(arglist_parser_remember, arglist_parser_remember_msgctxt): Take a
'mixed_string_ty *' argument instead of a 'char *' argument.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_clone): Update
accordingly.
(arglist_parser_remember, arglist_parser_remember_msgctxt): Take a
'mixed_string_ty *' argument.
(arglist_parser_done): Convert the mixed_string to UTF-8 encoded 'char *' here.
This is where from_current_source_encoding gets invoked now: immediately before
invoking remember_a_message, that is, only when we really need to know the
--from-source encoding.
* gettext-tools/src/x-c.c (extract_parenthesized): Pass the mixed_string to
arglist_parser_remember. Don't set xgettext_current_source_encoding around
arglist_parser_done calls.
* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
* gettext-tools/src/x-python.c (extract_balanced): Likewise.
* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
* gettext-tools/src/x-lisp.c: Include xg-mixed-string.h.
(read_object): Convert the string to a mixed_string_ty before passing it to
arglist_parser_remember.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-awk.c: Include xg-mixed-string.h.
(extract_parenthesized): Convert the string to a mixed_string_ty before passing
it to arglist_parser_remember.
* gettext-tools/src/x-lua.c: Include xg-mixed-string.h.
(extract_balanced): Convert the string to a mixed_string_ty before passing it to
arglist_parser_remember.
* gettext-tools/src/x-php.c: Include xg-mixed-string.h.
(extract_balanced): Convert the string to a mixed_string_ty before passing it to
arglist_parser_remember.
* gettext-tools/src/x-sh.c: Include xg-mixed-string.h.
(read_command): Convert the string to a mixed_string_ty before passing it to
arglist_parser_remember.
* gettext-tools/src/x-tcl.c: Include xg-mixed-string.h.
(read_command): Convert the string to a mixed_string_ty before passing it to
arglist_parser_remember.
* gettext-tools/src/x-perl.c (extract_balanced): Convert the string to a
mixed_string_ty before passing it to arglist_parser_remember. Don't set
xgettext_current_source_encoding around arglist_parser_done calls.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Simplify calling convention of remember_a_message.
* gettext-tools/src/xg-message.h (remember_a_message,
remember_a_message_plural): Add is_utf8, comment_is_utf8 arguments.
* gettext-tools/src/xg-message.c (remember_a_message,
remember_a_message_plural): Likewise.
* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Update callers.
* gettext-tools/src/x-awk.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-c.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-desktop.c (extract_desktop_handle_pair): Likewise.
* gettext-tools/src/x-elisp.c (read_object): Likewise.
* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
* gettext-tools/src/x-librep.c (read_object): Likewise.
* gettext-tools/src/x-lisp.c (read_object): Likewise.
* gettext-tools/src/x-lua.c (extract_balanced): Likewise.
* gettext-tools/src/x-perl.c (extract_variable, interpolate_keywords,
extract_balanced): Likewise.
* gettext-tools/src/x-php.c (extract_balanced): Likewise.
* gettext-tools/src/x-python.c (extract_balanced): Likewise.
* gettext-tools/src/x-rst.c (extract_rst, extract_rsj): Likewise.
* gettext-tools/src/x-scheme.c (read_object): Likewise.
* gettext-tools/src/x-sh.c (read_word, read_command): Likewise.
* gettext-tools/src/x-smalltalk.c (extract_smalltalk): Likewise.
* gettext-tools/src/x-tcl.c (read_command): Likewise.
* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
* gettext-tools/src/x-ycp.c (extract_parenthesized): Likewise.
* gettext-tools/src/xgettext.c (xgettext_its_extract_callback): Likewise.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Delay calls to from_current_source_encoding, part 1.
* xg-mixed-string.h (enum segment_type, struct mixed_string_segment,
struct mixed_string, mixed_string_ty): New types.
(mixed_string_alloc_simple, mixed_string_alloc_utf8, mixed_string_clone,
mixed_string_contents, mixed_string_free, mixed_string_contents_free1,
mixed_string_concat, mixed_string_concat_free1): New declarations.
(struct mixed_string_buffer): Change internal representation to use segments.
(mixed_string_buffer_result): Change return type to 'mixed_string_ty *'.
* xg-mixed-string.c: Include flexmember.h, msgl-ascii.h, po-charset.h.
(segment_alloc, segment_clone, mixed_string_alloc_simple,
mixed_string_alloc_utf8, mixed_string_clone, mixed_string_contents,
mixed_string_free, mixed_string_contents_free1, mixed_string_concat,
mixed_string_concat_free1): New functions.
(mixed_string_buffer_init, mixed_string_buffer_is_empty): Change to match new
internal representation.
(mixed_string_buffer_grow_curr_buffer): New function.
(mixed_string_buffer_grow_utf8_buffer): Remove function.
(mixed_string_buffer_append_to_utf8_buffer): Update accordingly.
(mixed_string_buffer_flush_curr_buffer): Remove function.
(mixed_string_buffer_add_segment, mixed_string_buffer_flush_curr): New
functions.
(mixed_string_buffer_append_char, mixed_string_buffer_append_unicode,
mixed_string_buffer_destroy, mixed_string_buffer_result): Change to match new
internal representation.
* x-c.c (struct token_ty): New field 'mixed_string'.
(free_token): Update accordingly.
(phase5_get, phase6_get, phase8a_get): For tokens of type
token_type_string_literal, use a mixed_string.
(phase8_get): Use mixed_string_concat_free1.
(struct xgettext_token_ty): New field 'mixed_string'.
(x_c_lex, extract_parenthesized): For tokens of type
xgettext_token_type_string_literal, use a mixed_string.
* x-csharp.c (comment_line_end): Update.
(struct token_ty): New field 'mixed_string'.
(free_token): Update accordingly.
(phase6_get): For tokens of type token_type_string_literal, use a mixed_string.
(phase7_get): Use mixed_string_concat_free1.
(extract_parenthesized): For tokens of type token_type_string_literal, use a
mixed_string.
* x-java.c (comment_line_end): Update.
(struct token_ty): New field 'mixed_string'.
(free_token): Update accordingly.
(phase5_get): For tokens of type token_type_string_literal, use a mixed_string.
(phase6_get): Use mixed_string_concat_free1.
(extract_parenthesized): For tokens of type token_type_string_literal, use a
mixed_string.
* x-javascript.c (comment_line_end): Update.
(struct token_ty): New field 'mixed_string'.
(free_token): Update accordingly.
(phase5_get): For tokens of type token_type_string, use a mixed_string.
(x_javascript_lex): Use mixed_string_concat_free1.
(extract_balanced): For tokens of type token_type_string, use a mixed_string.
* x-python.c (comment_line_end): Update.
(struct token_ty): New field 'mixed_string'.
(free_token): Update accordingly.
(phase5_get): For tokens of type token_type_string, use a mixed_string.
(x_python_lex): Use mixed_string_concat_free1.
(extract_balanced): For tokens of type token_type_string, use a mixed_string.
* x-rst.c (extract_rsj): Update.
* x-vala.c (struct token_ty): New field 'mixed_string'.
(free_token): Update accordingly.
(phase3_get): For tokens of type token_type_string_literal, use a mixed_string.
For tokens of type token_type_string_template, fix a memory leak.
(x_vala_lex): Use mixed_string_concat_free1.
(extract_balanced): For tokens of type token_type_string_literal, use a
mixed_string.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: JavaScript: Make more use of mixed_string_buffer.
* gettext-tools/src/x-javascript.c (struct unicode_string_buffer): Remove type.
(init_unicode_string_buffer, unicode_string_buffer_append_unicode_grow,
unicode_string_buffer_append_unicode, unicode_string_buffer_result,
free_unicode_string_buffer): Remove functions.
(comment_buffer, comment_start, comment_at_start, comment_add,
comment_line_end): Use mixed_string_buffer API.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Python: Make more use of mixed_string_buffer.
* gettext-tools/src/x-python.c (struct unicode_string_buffer): Remove type.
(init_unicode_string_buffer, unicode_string_buffer_append_unicode_grow,
unicode_string_buffer_append_unicode, unicode_string_buffer_result,
free_unicode_string_buffer): Remove functions.
(comment_buffer, comment_start, comment_at_start, comment_add,
comment_line_end): Use mixed_string_buffer API.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Change the C# extractor to make use of mixed_string_buffer.
* gettext-tools/src/x-csharp.c (struct string_buffer): Remove type.
(init_string_buffer, string_buffer_append_unicode_grow,
string_buffer_append_unicode, string_buffer_result, free_string_buffer): Remove
functions.
(comment_buffer, comment_start, comment_at_start, comment_add,
comment_line_end): Use mixed_string_buffer API.
(phase6_get): Likewise.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Optimize away a memory allocation.
* gettext-tools/src/x-c.c (phase5_get): Allocate the mixed_string_buffer on the
stack, not on the heap.
* gettext-tools/src/x-csharp.c (phase6_get): Likewise.
* gettext-tools/src/x-javascript.c (phase5_get): Likewise.
* gettext-tools/src/x-python.c (phase5_get): Likewise.
* gettext-tools/src/x-vala.c (phase3_get): Likewise.
* gettext-tools/src/x-rst.c (stringbuf, parse_string, extract_rsj): Allocate the
mixed_string_buffer statically, not on the heap.
* gettext-tools/src/xg-mixed-string.h (mixed_string_buffer_alloc,
mixed_string_buffer_done): Remove declarations.
* gettext-tools/src/xg-mixed-string.c (mixed_string_buffer_alloc,
mixed_string_buffer_done): Remove functions.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Change the Java extractor to make use of mixed_string_buffer.
* gettext-tools/src/xg-mixed-string.h: Include <stdbool.h>.
(mixed_string_buffer_init, mixed_string_buffer_is_empty,
mixed_string_buffer_destroy, mixed_string_buffer_result): New declarations.
* gettext-tools/src/xg-mixed-string.c: Include xg-pos.h.
(mixed_string_buffer_init): New function.
(mixed_string_buffer_alloc): Invoke it.
(mixed_string_buffer_is_empty): New function, based on comment_at_start in
x-java.c.
(mixed_string_buffer_append_lone_surrogate): New function, based on
string_buffer_append_lone_surrogate in x-java.c.
(mixed_string_buffer_flush_utf16_surr, mixed_string_buffer_append_unicode): Use
it.
(mixed_string_buffer_destroy, mixed_string_buffer_result): New functions.
(mixed_string_buffer_done): Invoke mixed_string_buffer_result.
* gettext-tools/src/x-java.c: Include xg-mixed-string.h.
(struct string_buffer): Remove type.
(init_string_buffer, string_buffer_append_byte,
string_buffer_append_unicode_grow, string_buffer_append_unicode,
string_buffer_append_lone_surrogate, string_buffer_flush_utf16_surr,
string_buffer_flush_curr_buffer): Remove functions.
(mixed_string_buffer_append): Renamed from string_buffer_append. Use
mixed_string_buffer.
(string_buffer_result, free_string_buffer): Remove functions.
(comment_buffer, comment_start, comment_at_start, comment_add,
comment_line_end): Use mixed_string_buffer API.
(accumulate_escaped, phase5_get): Likewise.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Share some more code among extractors.
* gettext-tools/src/xg-pos.h: New file.
* gettext-tools/src/xg-pos.c: New file.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add xg-pos.h.
(xgettext_SOURCES): Add xg-pos.c.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/x-awk.c: Include xg-pos.h.
(real_file_name, logical_file_name, line_number): Remove variables.
* gettext-tools/src/x-c.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-javascript.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-lua.c: Likewise.
* gettext-tools/src/x-perl.c: Likewise.
* gettext-tools/src/x-php.c: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/src/x-rst.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-smalltalk.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/x-ycp.c: Likewise.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Split source code into smaller files.
* gettext-tools/src/rc-str-list.h: New file, extracted from
gettext-tools/src/xgettext.h.
* gettext-tools/src/xg-encoding.h: Likewise.
* gettext-tools/src/xg-mixed-string.h: Likewise.
* gettext-tools/src/xg-arglist-context.h: Likewise.
* gettext-tools/src/xg-arglist-callshape.h: Likewise.
* gettext-tools/src/xg-arglist-parser.h: Likewise.
* gettext-tools/src/xg-message.h: Likewise.
* gettext-tools/src/xg-encoding.c: New file, extracted from
gettext-tools/src/xgettext.c.
* gettext-tools/src/xg-mixed-string.c: Likewise.
* gettext-tools/src/xg-arglist-context.c: Likewise.
* gettext-tools/src/xg-arglist-callshape.c: Likewise.
* gettext-tools/src/xg-arglist-parser.c: Likewise.
* gettext-tools/src/xg-message.c: Likewise.
* gettext-tools/src/xgettext.h: Remove declarations that moved to rc-str-list.h
and xg-*.h.
(add_all_comments, comment_tag, msgstr_prefix, msgstr_suffix,
default_syntax_check, current_formatstring_parser1,
current_formatstring_parser2, current_formatstring_parser3): New declarations.
(xgettext_comment, xgettext_comment_reset, savable_comment_to_xgettext_comment,
recognize_qt_formatstrings): New declarations.
(substring_match): Remove obsolete declaration.
* gettext-tools/src/xgettext.c: Include xgettext.h first.
Include <iconv.h>, rc-str-list.h, xg-encoding.h, xg-arglist-context.h,
xg-message.h. Don't include xsize.h, po-xerror.h, unistr.h.
(add_all_comments, comment_tag, msgstr_prefix, msgstr_suffix,
default_syntax_check): Make global.
(split_keywordspec, insert_keyword_callshape): Moved to xg-arglist-callshape.c.
(null_context, passthrough_context, inherited_context,
null_context_list_iterator, passthrough_context_circular_list,
passthrough_context_list_iterator, flag_context_list_iterator,
flag_context_list_iterator_advance, flag_context_list_table_lookup): Move to
xg-arglist-context.c.
(flag_context_list_table_insert): Move bulk of body to new function
flag_context_list_table_add in xg-arglist-context.c.
(xgettext_comment, xgettext_comment_reset, savable_comment_to_xgettext_comment):
Make global.
(current_formatstring_parser1, current_formatstring_parser2,
current_formatstring_parser3): Make global.
(non_ascii_error_message, from_current_source_encoding): Move to xg-encoding.c.
(CONVERT_STRING, set_format_flags_from_context, warn_format_string,
remember_a_message, remember_a_message_plural): Move to xg-message.c.
(arglist_parser_alloc, arglist_parser_clone, arglist_parser_remember,
arglist_parser_remember_msgctxt, arglist_parser_decidedp, arglist_parser_done):
Move to xg-arglist-parser.c.
(mixed_string_buffer_alloc, mixed_string_buffer_append_to_curr_buffer,
mixed_string_buffer_grow_utf8_buffer, mixed_string_buffer_append_to_utf8_buffer,
mixed_string_buffer_flush_utf16_surr, mixed_string_buffer_flush_curr_buffer,
mixed_string_buffer_append_char, mixed_string_buffer_append_unicode,
mixed_string_buffer_done): Move to xg-mixed-string.c.
(recognize_qt_formatstrings): New function.
* gettext-tools/src/x-*.h: Include xg-arglist-context.h instead of xgettext.h.
* gettext-tools/src/x-*.c: Update include directives.
* gettext-tools/src/its.h: Likewise.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add the new .h files.
(xgettext_SOURCES): Add the new .c files.
* gettext-tools/src/FILES: Update.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Fix crash when parsing invalid \Uxxxxxxxx escape sequence.
* gettext-tools/src/x-c.c (phase3_pushback): Increase size to 9 characters.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Add support for C++11 raw string literals.
* gettext-tools/src/x-c.c (phase5_get): Recognize the R"..." syntax and its variants.
* gettext-tools/tests/xgettext-c-20: Change expected error message.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Add support for C11 string literals.
* gettext-tools/src/x-c.c (phase5_get): Recognize the u8"..." syntax.
* gettext-tools/tests/xgettext-c-25: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* NEWS: Mention the change.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Vala: Improve parsing of escape sequences.
* gettext-tools/src/x-vala.c (phase7_getc): Don't recognize \?, \a, \1...\7, \U.
Do recognize \$.
* gettext-tools/tests/xgettext-vala-1: Test \t in verbatim strings literals.
* NEWS: Mention the change.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Fix result for concatenation of strings with escape sequences.
Reported by Morten Welinder <mwelinder@gmail.com>
in <https://lists.gnu.org/archive/html/bug-gettext/2015-12/msg00017.html>
and <https://savannah.gnu.org/bugs/?46756>.
Revert commits from
2014-05-07 xgettext: Provide a way to interpret string literals lazily
2014-05-07 c: Interpret string literals lazily
2014-05-09 vala: Interpret string literals lazily
2014-12-02 c: Support C++11 string literals
and subsequent fixes of these.
* gettext-tools/src/xgettext.h (savable_comment_convert_encoding): Remove
declaration.
(enum literalstring_escape_type, struct literalstring_parser): Remove types.
(struct partial_call): Update.
(arglist_parser_remember_literal): Remove declaration.
* gettext-tools/src/xgettext.c (struct extractor_ty): Remove
'literalstring_parser' field.
(savable_comment_convert_encoding): Remove function.
(current_literalstring_parser): Remove variable.
(extract_from_file, arglist_parser_alloc, arglist_parser_clone): Update.
(arglist_parser_remember_literal): Remove function.
(arglist_parser_remember_msgctxt): Simplify accordingly.
* gettext-tools/src/x-*.h (SCANNERS_*): Remove literalstring_parser initializer.
* gettext-tools/src/x-c.h (literalstring_c): Remove declaration.
* gettext-tools/src/x-c.c: Remove all traces of literalstring_escape_type and
literalstring_parser.
(phase7_getc, phase7_ungetc): Reinstantiate functions.
(phase5_get): Simplify. Use phase7_getc.
* gettext-tools/src/x-vala.c: Remove all traces of literalstring_escape_type and
literalstring_parser.
(phase7_getc, phase7_ungetc): Reinstantiate functions.
(phase3_get): Simplify. Use phase7_getc.
(extract_balanced): Simplify.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: New tests for non-ASCII extracted comments.
* gettext-tools/tests/xgettext-c-24: New file.
* gettext-tools/tests/xg-c-24.c: New file.
* gettext-tools/tests/xgettext-vala-2: New file.
* gettext-tools/tests/xg-vala-2.vala: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add xgettext-c-24, xgettext-vala-2.
(EXTRA_DIST): Add xg-c-24.c, xg-vala-2.vala.
2018-11-05 Bruno Haible <bruno@clisp.org>
xgettext: Enhance test for NUL byte handling.
* gettext-tools/tests/xg-c-21.c: Add some more test cases.
* gettext-tools/tests/xgettext-c-21: Update expected result accordingly. Change
expected result for backslash-NUL.
2018-11-04 Bruno Haible <bruno@clisp.org>
xgettext: New test of concatenation of strings with escape sequences.
Reported by Morten Welinder <mwelinder@gmail.com>
in <https://lists.gnu.org/archive/html/bug-gettext/2015-12/msg00017.html>
and <https://savannah.gnu.org/bugs/?46756>.
* gettext-tools/tests/xgettext-c-23: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2018-11-04 Bruno Haible <bruno@clisp.org>
xgettext: JavaScript: Fix a memory leak.
* gettext-tools/src/x-javascript.c (free_token): Free tp->string also for
token_type_keyword.
2018-11-04 Bruno Haible <bruno@clisp.org>
Whitespace changes.
* gettext-tools/src/cldr-plural-exp.h: Add a blank line.
* gettext-tools/src/locating-rule.h: Correct indentation.
2018-11-04 Bruno Haible <bruno@clisp.org>
Fix test failure with valgrind.
* gettext-tools/tests/msgcmp-4: Filter out valgrind's messages from the output.
2018-10-28 Bruno Haible <bruno@clisp.org>
Make test files executable.
* gettext-tools/tests/xgettext-c-22: Make executable.
* gettext-tools/tests/xgettext-properties-[234]: Likewise.
* gettext-tools/tests/xgettext-rst-[12]: Likewise.
2018-10-28 Bruno Haible <bruno@clisp.org>
Make it easier to build the code when the documentation tools don't work.
* gettext-tools/Makefile.am (SUBDIRS): Move 'doc' to the end. Move 'its' to the
middle.
2018-10-28 Bruno Haible <bruno@clisp.org>
tests: Improve reliability.
* xgettext-3: Verify the exit code of the xgettext invocation.
* xgettext-4: Likewise.
* xgettext-appdata-1: Likewise.
* xgettext-c-19: Likewise.
* xgettext-c-20: Likewise.
* xgettext-c-21: Likewise.
* xgettext-csharp-2: Likewise.
* xgettext-csharp-3: Likewise.
* xgettext-csharp-8: Likewise.
* xgettext-desktop-1: Likewise.
* xgettext-glade-1: Likewise.
* xgettext-glade-6: Likewise.
* xgettext-glade-7: Likewise.
* xgettext-gsettings-1: Likewise.
* xgettext-perl-2: Likewise.
* xgettext-perl-3: Likewise.
2018-10-25 Bruno Haible <bruno@clisp.org>
po, examples: Change .po -> .gmo rules to consider the newest changes to the POT file.
Reported by Claude Paroz <claude@2xlibre.net>
in <https://savannah.gnu.org/bugs/?50910>.
* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Set MSGMERGE_FOR_MSGFMT_OPTION.
* gettext-runtime/po/Makefile.in.in (MSGMERGE): Use GNU msgmerge, even if not
first in $PATH.
(MSGMERGE_FOR_MSGFMT_OPTION): New variable.
(.po.gmo): Depend on the POT file. Use msgmerge on the fly, to take into
account the most recent POT file changes.
* gettext-tools/examples/hello-*/po/Makefile.am: Likewise, also for the .po.qm,
update-properties, update-classes targets.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
(MSGMERGE_FOR_MSGFMT_OPTION): New variable.
($(STRINGSFILES)): Depend on the POT file. Use msgmerge on the fly, to take
into account the most recent POT file changes.
2018-10-25 Bruno Haible <bruno@clisp.org>
msgmerge: New option --for-msgfmt.
* gettext-tools/src/msgmerge.c (for_msgfmt): New variable.
(long_options): Add option --for-msgfmt.
(main): Handle option --for-msgfmt.
(usage): Document option --for-msgfmt.
(match_domain): When --for-msgfmt is given, omit untranslated and fuzzy messages
from the result.
(merge): When --for-msgfmt is given, don't add obsolete messages to the result.
* gettext-tools/tests/msgmerge-26: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/msgmerge.texi: Mention the option --for-msgfmt.
* NEWS: Mention the change.
2018-10-25 Bruno Haible <bruno@clisp.org>
Add ability to write PO files without translator comment lines.
* gettext-tools/src/write-po.h (message_print_style_comment): New declaration.
* gettext-tools/src/write-po.c (print_comment): New variable.
(message_print_style_comment): New function.
(message_print_comment): Output nothing if print_comment is false.
2018-10-24 Bruno Haible <bruno@clisp.org>
Improve reliability of 'make dist'.
* gettext-tools/examples/po/Makefile.am (distdir1): Depend on the .pot file.
2018-10-24 Bruno Haible <bruno@clisp.org>
po, examples: Put stamp-po in the source directory.
Rationale: <https://www.gnu.org/prep/standards/html_node/Makefile-Basics.html>.
* gettext-runtime/po/Makefile.in.in: Use $(srcdir)/stamp-po instead of stamp-po.
Talk about "version control system", not CVS.
* gettext-tools/examples/hello-*/po/Makefile.am: Likewise.
* gettext-tools/examples/po/Makefile.am: Likewise.
* gettext-tools/examples/check-examples (func_check_dist_vpath): Verify the
stamp-po file does not exist in the build dir, except when using the older
Makefile.in.in infrastructure.
2018-10-24 Bruno Haible <bruno@clisp.org>
po: Make "make maintainer-clean" erase the .pot file.
Rationale:
<https://www.gnu.org/prep/standards/html_node/Standard-Targets.html>
<https://www.gnu.org/software/automake/manual/html_node/Clean.html>
* NEWS: Mention the change.
* gettext-runtime/po/Makefile.in.in (maintainer-clean): Remove the .pot file.
* gettext-tools/examples/hello-*/po/Makefile.am (MAINTAINERCLEANFILES): Add
the .pot file.
* gettext-tools/examples/po/Makefile.am (MAINTAINERCLEANFILES): Likewise.
* gettext-tools/examples/check-examples (func_check_maintainerclean,
func_check_maintainerclean_vpath): Verify the .pot file is removed after
'make maintainer-clean', except when using the older Makefile.in.in
infrastructure.
2018-10-24 Bruno Haible <bruno@clisp.org>
po, examples: Use case-insensitive search for "GNU <PACKAGE_NAME>".
Reported by Akim Demaille <akim@lrde.epita.fr> in
<https://lists.gnu.org/archive/html/bug-gettext/2018-10/msg00020.html>.
* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): Use a
case-insensitive search for "GNU <PACKAGE_NAME>".
* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update):
Likewise.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
($(DOMAIN).pot-update): Likewise.
2018-10-24 Bruno Haible <bruno@clisp.org>
po: Remove obsolete Makefile rules for .mo files.
* gettext-runtime/po/Makefile.in.in (MSGFMT*): Remove variables.
(.SUFFIXES): Remove .mo.
(.po.mo): Remove rule.
(distclean): Don't remove *.mo files.
* gettext-tools/examples/hello-*/po/Makefile.am (.SUFFIXES): Remove .mo.
(.po.mo): Remove rule.
(DISTCLEANFILES): Remove *.mo.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile (.SUFFIXES):
Remove .mo.
* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't set MSGFMT_015.
2018-10-24 Bruno Haible <bruno@clisp.org>
Remove outdated DJGPP build infrastructure.
Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
* djgpp: Remove directory.
* Makefile.am (EXTRA_DIST): Remove the djgpp files.
2018-10-24 Bruno Haible <bruno@clisp.org>
examples: Add support for msgmerge --previous.
This mirrors the Makefile.in.in change from 2016-07-01.
* gettext-tools/examples/hello-*/po/Makefile.am ($(POFILES), update-po): Use
option --previous when the msgmerge program supports it.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.
2018-10-24 Bruno Haible <bruno@clisp.org>
examples: Support reading header comments from file.
This mirrors the Makefile.in.in change from 2015-09-01 with the amendment
from today.
* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update):
Replace header entry with the content of $(DOMAIN).pot-header, if exists.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.
2018-10-24 Bruno Haible <bruno@clisp.org>
examples: Make it possible to pass custom options to msginit.
This mirrors the Makevars change from 2014-10-08.
* gettext-tools/examples/hello-*/po/Makefile.am (MSGINIT_OPTIONS): New variable.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.
2018-10-24 Bruno Haible <bruno@clisp.org>
examples: Add an option to claim the package as GNU/non-GNU.
This mirrors the Makefile.in.in and Makevars change from 2014-05-01.
Reported by David Shea at <https://savannah.gnu.org/bugs/?40520>.
* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): Tweak whitespace.
* gettext-tools/examples/hello-*/po/Makefile.am (PACKAGE_GNU): New variable.
($(DOMAIN).pot-update): Don't search for "GNU packagename" if $(PACKAGE_GNU) is
set.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.
2018-10-24 Bruno Haible <bruno@clisp.org>
examples: Upgrade to newest Makevars.
* gettext-tools/examples/hello-*/po/Makevars (PACKAGE_GNU, MSGINIT_OPTIONS,
PO_DEPENDS_ON_POT, DIST_DEPENDS_ON_UPDATE_PO): New variables.
* gettext-tools/examples/hello-*/configure.* (AM_GNU_GETTEXT_VERSION): Require
version 0.19.8.
* gettext-tools/examples/po/xsmallpot.sh (hello-c++-kde): Likewise.
* gettext-tools/examples/hello-*/m4/Makefile.am (EXTRA_DIST): Update list of .m4
files.
* gettext-tools/examples/hello-*/autoclean.sh: Likewise.
* gettext-tools/examples/check-examples (func_check_maintainerclean,
func_check_maintainerclean_vpath): Allow left-over .po~ files.
2018-10-24 Bruno Haible <bruno@clisp.org>
examples: Avoid grepping through monster files.
This mirrors the Makefile.in.in change from 2010-06-12.
Reported by Jim Meyering <jim@meyering.net>.
* gettext-tools/examples/hello-*/po/Makefile.am (($(DOMAIN).pot-update): When
GNU find is available, avoid grepping through monster files.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.
2018-10-24 Bruno Haible <bruno@clisp.org>
examples: Don't create unnecessary installation directories.
This mirrors the Makefile.in.in change from 2009-06-09.
Reported by Serge Pavlovsky <pal666@gmail.com>.
* gettext-tools/examples/hello-*/po/Makefile.am (install-data-local-yes,
installdirs-local-yes): Remove unnecessary MKDIR_P invocations.
2018-10-24 Bruno Haible <bruno@clisp.org>
po: Make the insertion of the .pot-header file more robust.
This improves on the 2015-09-01 patch.
* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): Fail if the 'cat'
command fails.
2018-10-24 Bruno Haible <bruno@clisp.org>
po: When doing msgmerge --version, use the correct msgmerge program.
This reverts the patch from
<https://lists.gnu.org/archive/html/bug-gettext/2015-06/msg00000.html>.
Rationale:
<https://lists.gnu.org/archive/html/bug-gettext/2018-10/msg00000.html>.
* gettext-runtime/po/Makefile.in.in ($(POFILES)): Use $(MSGMERGE_UPDATE),
not $(MSGMERGE).
2018-10-24 Bruno Haible <bruno@clisp.org>
po: Make $(POFILES) target more robust.
It was introduced on 2014-05-01.
* gettext-runtime/po/Makefile.in.in ($(POFILES)): Create POT file also when the
PO file does not yet exist. Fail if creation of the POT file fails.
2018-10-23 Bruno Haible <bruno@clisp.org>
Update list of files to check with gnulib.
* Makefile.am (distcheck): Check also localename-table.h and localename-table.c.
2018-10-23 Bruno Haible <bruno@clisp.org>
intl: Improve support for per-thread locales on Solaris 11.4.
* gettext-runtime/intl/localename.c: Update from gnulib:
Handle HAVE_SOLARIS114_LOCALES through Solaris specific code.
* gettext-runtime/intl/localename-table.in.h: Update from gnulib's
localename-table.h.
* gettext-runtime/intl/localename-table.c: Update from gnulib.
* gettext-runtime/m4/intl-thread-locale.m4: Renamed from
gettext-runtime/m4/intlsolaris.m4.
(gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
* gettext-runtime/m4/intl.m4: Update from gnulib:
(AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test for 'uselocale'. Set
HAVE_NAMELESS_LOCALES.
(gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
HAVE_NAMELESS_LOCALES here.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): List intl-thread-locale.m4, not
intlsolaris.m4.
* gettext-tools/m4/Makefile.am (aclocal_DATA): List intl-thread-locale.m4, not
intlsolaris.m4.
* gettext-tools/misc/gettextize.in (m4filelist): List intl-thread-locale.m4, not
intlsolaris.m4.
* Makefile.am (distcheck-hook): Check intl-thread-locale.m4, not intlsolaris.m4.
* gettext-tools/doc/gettext.texi (aclocal): List intl-thread-locale.m4, not
intlsolaris.m4.
* PACKAGING: List intl-thread-locale.m4, not intlsolaris.m4.
2018-10-23 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-10-23 Bruno Haible <bruno@clisp.org>
intl: Fix support for per-thread locales on Solaris 11.4.
* gettext-runtime/intl/localename-table.in.h: Renamed from
gettext-runtime/intl/localename-table.h.
* gettext-runtime/intl/Makefile.in (HEADERS): Add localename-table.in.h. Remove
localename-table.h.
(localename-table.h): New target.
(localename.$lo, localename-table.$lo): Update dependencies.
(mostlyclean): Remove localename-table.h.
2018-10-23 Daiki Ueno <ueno@gnu.org>
xgettext: Fix compiler warning
* gettext-tools/src/x-javascript.c (phase5_scan_regexp): Remove
implicit argument. Reported in:
<https://savannah.gnu.org/bugs/?48404>.
2018-10-23 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* configure.ac: Require Autoconf >= 2.63.
* gettext-runtime/configure.ac: Likewise.
* gettext-runtime/libasprintf/configure.ac: Likewise.
* gettext-tools/configure.ac: Likewise.
2018-10-23 Bruno Haible <bruno@clisp.org>
Update from gnulib: Assume Autoconf >= 2.63.
* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
* gettext-runtime/m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume
AC_USE_SYSTEM_EXTENSIONS exists.
* gettext-runtime/m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
* gettext-runtime/m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
* gettext-runtime/m4/size_max.m4 (AC_COMPUTE_INT): Remove fallback for
Autoconf < 2.61.
2018-10-23 Bruno Haible <bruno@clisp.org>
Update from gnulib: Assume Automake >= 1.11.
* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE):
Eliminate uses of 'eval'.
2018-10-23 Bruno Haible <bruno@clisp.org>
Update from gnulib: Make better use of Autoconf.
* gettext-runtime/m4/visibility.m4: Use AC_CACHE_CHECK where possible.
2018-10-23 Bruno Haible <bruno@clisp.org>
intl: Add support for per-thread locales on Solaris 11.4.
Relies on the recent changes to the 'localename' module in gnulib.
* gettext-runtime/intl/localename.c: Apply changes from gnulib.
* gettext-runtime/intl/localename-table.h: New file, from gnulib.
* gettext-runtime/intl/localename-table.c: New file, from gnulib.
* gettext-runtime/intl/libgnuintl.in.h (newlocale, duplocale, freelocale): New
overriding declarations.
* gettext-runtime/intl/Makefile.in (HEADERS): Add localename-table.h.
(SOURCES): Add localename-table.c.
(OBJECTS): Add localename-table.$lo.
(localename-table.lo): New target.
(libgnuintl.h, libintl.h): Substitute also HAVE_NAMELESS_LOCALES.
* gettext-runtime/m4/intl.m4: Apply changes from gnulib:
(gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and 'getlocalename_l'.
Instead, invoke gt_INTL_SOLARIS. Set HAVE_NAMELESS_LOCALES.
* gettext-runtime/m4/intlsolaris.m4: New file, from gnulib.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Add it.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Add intlsolaris.m4.
* gettext-tools/misc/gettextize.in (m4filelist): Add intlsolaris.m4.
* Makefile.am (distcheck-hook): Verify that intlsolaris.m4 is consistent with
gnulib.
* gettext-tools/doc/gettext.texi (aclocal): Add intlsolaris.m4 to the file list.
* PACKAGING: Add intlsolaris.m4 to the list of installed files.
* NEWS: Mention the change.
2018-10-23 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-10-23 Bruno Haible <bruno@clisp.org>
examples: Fix another build failure.
* gettext-tools/examples/po/xsmallpot.sh: In hello-pascal, make sure to build
hello.rsj.
2018-10-21 Bruno Haible <bruno@clisp.org>
New subdirectory system-tests.
* gettext-tools/system-tests/Makefile.am: New file.
* gettext-tools/system-tests/README: New file.
* gettext-tools/system-tests/run-test: New file.
* gettext-tools/system-tests/testlocale.c: New file.
* gettext-tools/system-tests/intl-1-prg.c: New file.
* gettext-tools/system-tests/intl-3-prg.c: New file.
* gettext-tools/system-tests/intl-4-prg.c: New file.
* gettext-tools/system-tests/intl-5-prg.c: New file.
* gettext-tools/system-tests/intl-setlocale-1-prg.c: New file.
* gettext-tools/system-tests/intl-setlocale-2-prg.c: New file.
* gettext-tools/system-tests/intl-thread-1-prg.c: New file.
* gettext-tools/system-tests/intl-thread-2-prg.c: New file.
* gettext-tools/system-tests/intl-thread-3-prg.c: New file.
* gettext-tools/system-tests/format-c-3-prg.c: New file.
* gettext-tools/system-tests/format-c-4-prg.c: New file.
* gettext-tools/system-tests/format-c-5-prg.c: New file.
* gettext-tools/system-tests/plural-1-prg.c: New file.
* gettext-tools/Makefile.am (SUBDIRS): Add system-tests.
* gettext-tools/configure.ac (TEST_SYSTEM_LIBINTL): New conditional.
(AC_CONFIG_FILES): Add system-tests/Makefile.
* gettext-tools/tests/init.cfg: Include init-env from the tests/ directory.
* gettext-tools/tests/intl-5-prg.c: When USE_SYSTEM_LIBINTL is defined, use the
system's <libintl.h>.
* gettext-tools/tests/intl-setlocale-1-prg.c: Likewise.
* gettext-tools/tests/intl-setlocale-2-prg.c: Likewise.
* gettext-tools/tests/intl-thread-1-prg.c: Likewise.
* gettext-tools/tests/intl-thread-2-prg.c: Likewise.
* gettext-tools/tests/intl-thread-3-prg.c: Likewise.
* gettext-tools/tests/intl-1-prg.c: When USE_SYSTEM_LIBINTL is defined, use the
system's <libintl.h>.
* gettext-tools/tests/intl-3-prg.c: Likewise.
* gettext-tools/tests/intl-4-prg.c: Likewise.
* gettext-tools/tests/format-c-3-prg.c: Likewise.
* gettext-tools/tests/format-c-4-prg.c: Likewise.
* gettext-tools/tests/plural-1-prg.c: Likewise.
* gettext-tools/tests/format-c-5-prg.c: When USE_SYSTEM_LIBINTL is defined, use
the system's <libintl.h> and setenv instead of xsetenv, and no fake setlocale.
* gettext-tools/tests/format-c-3: When USE_SYSTEM_LIBINTL is defined, try
$LOCALE_FR and $LOCALE_FR_UTF8.
* gettext-tools/tests/format-c-4: Likewise.
* gettext-tools/tests/plural-1: Likewise.
* gettext-tools/tests/format-c-5: When USE_SYSTEM_LIBINTL is defined, try fa_IR
and fa_IR.UTF-8.
2018-10-21 Bruno Haible <bruno@clisp.org>
Update comments.
* gettext-tools/tests/Makefile.am: Update comments.
2018-10-21 Bruno Haible <bruno@clisp.org>
Rename test gettext-8 to intl-5.
* gettext-tools/tests/intl-5: Renamed from gettext-tools/tests/gettext-8.
* gettext-tools/tests/intl-5-prg.c: Renamed from
gettext-tools/tests/gettext-8-prg.c.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
Rename test gettext-7 to intl-thread-3 and support more platforms.
* gettext-tools/tests/intl-thread-3: Renamed from gettext-tools/tests/gettext-7.
Don't limit to fixed set of platforms.
* gettext-tools/tests/intl-thread-3-prg.c: Renamed from
gettext-tools/tests/gettext-7-prg.c. Expect locale names as arguments.
* gettext-tools/tests/intl-thread-3.po: Renamed from
gettext-tools/tests/gettext-7.po.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
Make the intl-thread-2 test effective on Solaris 11.
* gettext-tools/m4/locale-de.m4: New file, based on locale-fr.m4 from gnulib.
* gettext-tools/m4/Makefile.am (EXTRA_DIST): Add it.
* gettext-tools/configure.ac: Invoke gt_LOCALE_DE_UTF8.
* gettext-tools/tests/init-env.in: Set LOCALE_DE_UTF8.
* gettext-tools/tests/intl-thread-2: Use a German instead of a Turkish locale.
2018-10-21 Bruno Haible <bruno@clisp.org>
Rename test gettext-6 to intl-thread-2 and support more platforms.
* gettext-tools/tests/intl-thread-2: Renamed from gettext-tools/tests/gettext-6.
Don't limit to fixed set of platforms.
* gettext-tools/tests/intl-thread-2-prg.c: Renamed from
gettext-tools/tests/gettext-6-prg.c. Expect locale names as arguments.
* gettext-tools/tests/intl-thread-2-1.po: Renamed from
gettext-tools/tests/gettext-6-2.po. Convert to UTF-8.
* gettext-tools/tests/intl-thread-2-2.po: Renamed from
gettext-tools/tests/gettext-6-1.po. Convert to UTF-8.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
New test intl-thread-1.
* gettext-tools/tests/intl-thread-1: New file.
* gettext-tools/tests/intl-thread-1-prg.c: New file.
* gettext-tools/tests/intl-thread-1.po: New file.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
Rename test gettext-5 to intl-setlocale-2.
* gettext-tools/tests/intl-setlocale-2: Renamed from
gettext-tools/tests/gettext-5.
* gettext-tools/tests/intl-setlocale-2-prg.c: Renamed from
gettext-tools/tests/gettext-5-prg.c.
* gettext-tools/tests/intl-setlocale-2.po: Renamed from
gettext-tools/tests/gettext-5.po.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
Rename test gettext-4 to intl-4.
* gettext-tools/tests/intl-4: Renamed from gettext-tools/tests/gettext-4.
* gettext-tools/tests/intl-4-prg.c: Renamed from
gettext-tools/tests/gettext-4-prg.c.
* gettext-tools/tests/intl-4.po: Renamed from gettext-tools/tests/gettext-4.po.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
New test intl-3.
* gettext-tools/tests/intl-3: New file.
* gettext-tools/tests/intl-3-prg.c: New file.
* gettext-tools/tests/Makefile.amL Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
New test intl-2.
* gettext-tools/tests/intl-2: New file.
* gettext-tools/tests/intl-2-1.po: New file.
* gettext-tools/tests/intl-2-2.po: New file.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
New test intl-1.
* gettext-tools/tests/intl-1: New file.
* gettext-tools/tests/intl-1-prg.c: New file.
* gettext-tools/tests/intl-1.po: New file.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
Rename gettext-3 test to intl-setlocale-1.
* gettext-tools/tests/intl-setlocale-1: Renamed from
gettext-tools/tests/gettext-3.
* gettext-tools/tests/intl-setlocale-1-prg.c: Renamed from
gettext-tools/tests/gettext-3-prg.c.
* gettext-tools/tests/intl-setlocale-1-1.po: Renamed from
gettext-tools/tests/gettext-3-1.po.
* gettext-tools/tests/intl-setlocale-1-2.po: Renamed from
gettext-tools/tests/gettext-3-2.po.
* gettext-tools/tests/Makefile.am: Update.
2018-10-21 Bruno Haible <bruno@clisp.org>
Update PACKAGING documentation.
* PACKAGING: Remove mention of charset.alias (dropped on 2018-05-19).
Mention that libintl does not get installed on Solaris 11.
2018-10-21 Bruno Haible <bruno@clisp.org>
Tests: Update comments.
* gettext-tools/tests/lang-python-1: Update comment about Python versions.
* gettext-tools/tests/lang-python-2: Likewise.
* gettext-tools/tests/lang-pascal: Update comment about fpk versions.
2018-10-21 Bruno Haible <bruno@clisp.org>
Fix lang-bash test failure in VPATH builds.
* gettext-tools/tests/lang-bash: Prepend the gettext-runtime/src build dir,
not the gettext-runtime/src source dir, to PATH.
2018-10-20 Bruno Haible <bruno@clisp.org>
Fix 'make dist' (recent regression).
* gettext-tools/examples/Makefile.am (EXAMPLESFILES): Remove
hello-pascal/hello.rst.
2018-10-19 Bruno Haible <bruno@clisp.org>
examples: Modernize configure.ac.
* gettext-tools/examples/hello-*/configure.ac: Use the recommended AC_INIT and
AM_INIT_AUTOMAKE syntax. Require automake >= 1.11.
2018-10-19 Bruno Haible <bruno@clisp.org>
examples: Add a script for checking against mistakes.
* gettext-tools/examples/check-examples: New file.
* gettext-tools/examples/HACKING: New file.
* gettext-tools/examples/Makefile.am (EXTRA_DIST): Add them.
* Admin/release-steps: Mention check-examples.
2018-10-19 Bruno Haible <bruno@clisp.org>
examples: hello-pascal: Fix 'make distcheck'.
* gettext-tools/examples/hello-pascal/Makefile.am (hello$(EXEEXT)): Move
hello.rsj into $(srcdir) only if the new contents differs from the old contents.
2018-10-19 Bruno Haible <bruno@clisp.org>
examples: hello-java*: Fix 'make distcheck'.
* gettext-tools/examples/hello-java*/po/Makefile.am (update-properties): Create
the new .properties files in the build dir and move them to $(srcdir) only if
the new contents differs from the old contents.
(update-classes): Likewise, also for .class files.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: hello-csharp*: Improve 'make maintainer-clean'.
* gettext-tools/examples/hello-csharp*/po/Makefile.am (MAINTAINERCLEANFILES):
Don't list the $(RESOURCESDLLFILES) here.
(maintainer-clean-local): Instead, remove them and their parent directories
here.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: hello-php: Fix runtime error.
* gettext-tools/examples/hello-php/hello.php: Fix the PHP markup. Don't print
the return value of the printf function.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: hello-tcl*: Fix runtime error.
* gettext-tools/examples/hello-tcl*/configure.ac: Ensure pkgdatadir is an
absolute file name without variable references.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: hello-clisp: Fix runtime error with clisp versions >= 2.34.
* gettext-tools/examples/hello-clisp/hello.lisp.in: Use the function
PROCESS-ID, not PROGRAM-ID.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: Fix 'make dist' failures in VPATH builds.
* gettext-tools/examples/hello-*/po/Makefile.am (distdir1): Invoke target
'stamp-po' after having done target 'update-po'.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: hello-pascal: Fix 'make dist' failure in VPATH builds.
* gettext-tools/examples/hello-pascal/Makefile.am: Generate hello.rsj
in $(srcdir), not in the build dir.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: hello-pascal: Fix 'make dist'.
* gettext-tools/examples/hello-pascal/Makefile.am (EXTRA_DIST): Add the source
file.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: hello-java*: Fix "make dist".
* gettext-runtime/m4/po.m4 (AM_POSTPROCESS_PO_MAKEFILE): Change PROPERTIESFILES
and CLASSFILES to contain files in $(srcdir), not in $(top_srcdir).
* gettext-tools/examples/hello-java*/Makefile.am (hello.jar): Fetch the catalogs
from the po/ directory.
* gettext-tools/examples/hello-java*/po/Makefile.am (MAINTAINERCLEANFILES):
Add the .properties and the .class files.
(EXTRA_DIST): Add the .properties files.
(update-properties, update-classes): Generate the .properties and .class files
in the po/ directory, not in the top-level directory.
* gettext-tools/examples/hello-java*/autoclean.sh: Remove the catalogs in
the po/ directory, not in the top-level directory.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: Fix 'make dist'.
* gettext-tools/examples/hello-c/m4/Makefile.am (EXTRA_DIST): Add all files
that are brought in by 'autopoint'.
* gettext-tools/examples/hello-c-gnome/m4/Makefile.am (EXTRA_DIST): Likewise.
* gettext-tools/examples/hello-c-gnome3/m4/Makefile.am (EXTRA_DIST): Likewise.
* gettext-tools/examples/hello-c++/m4/Makefile.am (EXTRA_DIST): Likewise.
* gettext-tools/examples/hello-c++-kde/m4/Makefile.am (EXTRA_DIST): Likewise.
* gettext-tools/examples/hello-c++-gnome/m4/Makefile.am (EXTRA_DIST): Likewise.
* gettext-tools/examples/hello-objc/m4/Makefile.am (EXTRA_DIST): Likewise.
* gettext-tools/examples/hello-objc-gnome/m4/Makefile.am (EXTRA_DIST): Likewise.
2018-10-18 Bruno Haible <bruno@clisp.org>
examples: Fix 'make' failures in VPATH builds.
* gettext-tools/examples/hello-java*/Makefile.am (hello_RESOURCES,
MAINTAINERCLEANFILES): Remove variables.
(hello.jar): Use two jar commands, to combine .class files from the build dir
with .properties files from the source dir.
* gettext-tools/examples/hello-java*/po/Makefile.am (update-properties,
update-classes): Reference the .pot file in the source dir, not in the build
dir.
(echo-catalogs): Include the fallback catalog.
* gettext-tools/examples/hello-pascal/Makefile.am (hello_SOURCES): Add $(srcdir)
prefix.
(hello$(EXEEXT)): Use -o option to specify where the object file and the
executable file shall be created.
2018-10-17 Bruno Haible <bruno@clisp.org>
examples: hello-csharp-forms: Fix 'make clean'.
* gettext-tools/examples/hello-csharp-forms/Makefile.am (CLEANFILES): Add
hello.net.exe.mdb.
2018-10-17 Bruno Haible <bruno@clisp.org>
examples: hello-csharp: Fix 'make clean'.
* gettext-tools/examples/hello-csharp/Makefile.am (CLEANFILES): Add
hello.net.exe.mdb.
2018-10-17 Bruno Haible <bruno@clisp.org>
examples: hello-objc-gnustep: Fix 'make distclean'.
* gettext-tools/examples/hello-objc-gnustep/GNUmakefile (internal-distclean):
Remove the *.lproj directories.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile (internal-clean):
Remove remove-potcdate.sed.
2018-10-17 Bruno Haible <bruno@clisp.org>
examples: hello-pascal: Fix 'make maintainer-clean'.
* gettext-tools/examples/hello-pascal/Makefile.am (MAINTAINERCLEANFILES): New
variable.
2018-10-17 Bruno Haible <bruno@clisp.org>
examples: hello-java: Fix 'make' failure.
* gettext-tools/examples/hello-java/po/Makefile.am (stamp-po): Fix syntax error.
2018-10-17 Bruno Haible <bruno@clisp.org>
examples: hello-pascal: Update.
* gettext-tools/examples/hello-pascal/configure.ac (PPC): Test for ppcx64 if
ppc386 is not found.
* gettext-tools/examples/hello-pascal/hello.rst: Remove file.
* gettext-tools/examples/hello-pascal/Makefile.am: hello.rsj replaces hello.rst.
(SUBDIRS): Proceed in current directory before recursing into po/.
* gettext-tools/examples/hello-pascal/po/Makefile.am (POTFILES): hello.rsj
replaces hello.rst.
* gettext-tools/examples/hello-pascal/autoclean.sh: Remove hello.rsj.
2018-10-17 Bruno Haible <bruno@clisp.org>
examples: Correctly clean up left-over files.
* gettext-tools/examples/hello-csharp/autoclean.sh: Handle shell wildcard
correctly.
* gettext-tools/examples/hello-csharp-forms/autoclean.sh: Likewise.
2018-10-15 Bruno Haible <bruno@clisp.org>
examples: Remove left-over files.
* gettext-tools/examples/hello-*/autoclean.sh: Remove left-over files.
2018-10-15 Bruno Haible <bruno@clisp.org>
examples: Clean up autoconf left-over.
* gettext-tools/examples/hello-*/autoclean.sh: Remove the 'autom4te.cache'
directory.
2018-10-15 Bruno Haible <bruno@clisp.org>
examples: hello-c++-widgets: Update build infrastructure.
* gettext-tools/examples/hello-c++-widgets/autogen.sh: Pull in some more .m4
files.
* gettext-tools/examples/hello-c++-widgets/autoclean.sh: Remove them.
2018-10-15 Bruno Haible <bruno@clisp.org>
Update test after gnulib module 'localcharset' changed.
* gettext-tools/tests/gettext-4-prg.c: Treat Haiku like BeOS.
2018-10-15 Bruno Haible <bruno@clisp.org>
examples: Fix "make dist" error.
* gettext-tools/examples/po/xsmallpot.sh (hello-c++-kde): Invoke 'autopoint'
before, not after, 'aclocal'.
2018-10-15 Bruno Haible <bruno@clisp.org>
examples: Update developer documentation.
* gettext-tools/examples/hello-csharp*/po/Makefile.am: Add comment.
* gettext-tools/examples/hello-tcl*/po/Makefile.am: Likewise.
2018-10-15 Bruno Haible <bruno@clisp.org>
examples: Improve developer documentation.
* gettext-tools/examples/README: Add note about po/ directories.
2018-10-15 Bruno Haible <bruno@clisp.org>
examples: Improve developer documentation.
* HACKING: Mention dependency needed for examples.
* gettext-tools/examples/hello-objc-gnustep/INSTALL: Small clarifications.
2018-10-15 Bruno Haible <bruno@clisp.org>
Fix list of dependencies.
* DEPENDENCIES: Add libacl.
2018-10-15 Bruno Haible <bruno@clisp.org>
C# doc: Fix typo in Makefile.
* gettext-runtime/intl-csharp/Makefile.am (doc): Fix typo.
2018-10-15 Bruno Haible <bruno@clisp.org>
gettextize: Don't redirect stderr.
Reported by ShellCheck via Pavel Raiskup <praiskup@redhat.com>.
* gettext-tools/misc/gettextize.in: Don't redirect stderr.
2018-10-15 Bruno Haible <bruno@clisp.org>
autopoint: Don't redirect stderr.
Reported by ShellCheck via Pavel Raiskup <praiskup@redhat.com>.
* gettext-tools/misc/autopoint.in (func_version_prereq): Don't redirect stderr.
2018-10-15 Bruno Haible <bruno@clisp.org>
Fix "make dist" error (regression from 2018-10-09).
* gettext-tools/examples/Makefile.am (EXAMPLESFILES): Remove
hello-csharp-forms/BUGS.
2018-10-09 Bruno Haible <bruno@clisp.org>
C# support: Remove pnet choice.
* DEPENDENCIES: Don't mention pnet.
* PACKAGING: Likewise.
* gettext-tools/src/format-csharp.c: Simplify comment.
* gettext-tools/src/msgfmt.cs: Remove workarounds for cscc.
* gettext-tools/src/write-csharp.c (write_csharp_code): Update comment.
* gettext-tools/doc/gettext.texi (C#): Don't mention resgen.
* gettext-tools/tests/lang-csharp: Rely on mono, not pnet.
* gettext-tools/examples/hello-csharp/INSTALL: Likewise.
* gettext-tools/examples/hello-csharp-forms/INSTALL: Likewise.
* gettext-tools/examples/hello-csharp-forms/BUGS: Remove file.
2018-10-09 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-10-06 Bruno Haible <bruno@clisp.org>
Fix a build failure on mingw with -O0.
Reported at <https://savannah.gnu.org/bugs/?36443>.
Fix suggested by Evgeny Grin <k2k@narod.ru>
in <https://savannah.gnu.org/bugs/?36443#comment4>.
* gnulib-local/build-aux/moopp (func_emit_source_h): Wrap the function
declarations in extern "C" {}.
2018-10-05 Bruno Haible <bruno@clisp.org>
msgfmt: Remove outdated warning.
* gettext-tools/src/msgfmt.c (msgfmt_parse_debrief): Remove outdated warning.
(struct msgfmt_catalog_reader_ty): Remove field 'has_nonfuzzy_header_entry'.
(msgfmt_constructor, msgfmt_frob_new_message): Update.
2018-10-05 Bruno Haible <bruno@clisp.org>
Fix conflict between different uses of GETTEXTLIBDIR.
Rationale: The programs installed in $(prefix)/lib/gettext/ are at different
locations before installation: some are in the source tree, some are in the
build tree.
* gettext-tools/src/msginit.c (project_id, project_id_version): Test
GETTEXTLIBDIR_SRCDIR, not GETTEXTLIBDIR.
(plural_forms): Test GETTEXTLIBDIR_BUILDDIR, not GETTEXTLIBDIR.
* gettext-tools/tests/msginit-3: Set GETTEXTLIBDIR_SRCDIR, not GETTEXTLIBDIR.
* gettext-tools/tests/msginit-4: Set both GETTEXTLIBDIR_SRCDIR and
GETTEXTLIBDIR_BUILDDIR.
2018-10-05 Bruno Haible <bruno@clisp.org>
Fix conflict between different uses of GETTEXTDATADIR.
* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Test GETTEXTTCLDIR, not
GETTEXTDATADIR.
* gettext-tools/tests/msgunfmt-tcl-1: Set GETTEXTTCLDIR, not GETTEXTDATADIR.
2018-10-05 Bruno Haible <bruno@clisp.org>
Fix msginit-4 test failure when run step-by-step.
* gettext-tools/tests/msginit-4: Don't assume that the test is run in a
directory with just one POT file.
2018-10-05 Bruno Haible <bruno@clisp.org>
cldr-plurals: Improve error handling.
* gettext-tools/src/cldr-plurals.c (extract_rules): Let libxml2 show errors.
Don't assume that the error was an out-of-memory.
2018-10-05 Bruno Haible <bruno@clisp.org>
Remove unnecessary trailing comma in struct initializers.
* gettext-tools/src/msgattrib.c (long_options): Remove trailing comma in
initializer.
* gettext-tools/src/msgcat.c (long_options): Likewise.
* gettext-tools/src/msgcomm.c (long_options): Likewise.
* gettext-tools/src/msgconv.c (long_options): Likewise.
* gettext-tools/src/msgen.c (long_options): Likewise.
* gettext-tools/src/msgfilter.c (long_options): Likewise.
* gettext-tools/src/msgmerge.c (long_options): Likewise.
* gettext-tools/src/msgunfmt.c (long_options): Likewise.
* gettext-tools/src/msguniq.c (long_options): Likewise.
* gettext-tools/src/xgettext.c (long_options): Likewise.
2018-10-05 Bruno Haible <bruno@clisp.org>
Explain how to concatenate POT files.
Reported by Hadi Farah in
<https://lists.gnu.org/archive/html/bug-gettext/2018-09/msg00026.html>.
* gettext-tools/doc/msgcat.texi: Explain how to concatenate POT files.
2018-10-05 Bruno Haible <bruno@clisp.org>
Include gnulib module 'mkdir', needed for older mingw versions.
Reported by Maarten Bosmans at <https://savannah.gnu.org/bugs/?33379>.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'mkdir'.
2018-10-05 Bruno Haible <bruno@clisp.org>
Fix link error when building with --enable-shared on mingw.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add 'realloc-posix'.
2018-10-05 Bruno Haible <bruno@clisp.org>
Fix msginit-4 test failure on Cygwin with --enable-shared.
* gettext-tools/src/msginit.c (plural_forms): Include the program's directory
in argv[0].
2018-10-05 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gettext-runtime/intl/vasnprintf.c: Update from gnulib.
* gettext-runtime/libasprintf/vasnprintf.c: Update from gnulib.
2018-10-05 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-09-19 Bruno Haible <bruno@clisp.org>
Avoid test failures on 32-bit Cygwin in a 64-bit Cygwin environment.
In this situation, argv[0] is absolute, even though the program was invoked
as a file name without slashes (and thus found in $PATH).
* gettext-tools/tests/msgcmp-2: Normalize the program name better.
* gettext-tools/tests/msgcmp-3: Likewise.
* gettext-tools/tests/msgfmt-7: Likewise.
* gettext-tools/tests/msgfmt-8: Likewise.
* gettext-tools/tests/msgfmt-9: Likewise.
* gettext-tools/tests/msgfmt-10: Likewise.
* gettext-tools/tests/msgmerge-2: Likewise.
* gettext-tools/tests/msgmerge-9: Likewise.
2018-09-18 Bruno Haible <bruno@clisp.org>
Fix link error when building with --disable-shared on 64-bit Cygwin.
* gnulib-local/lib/execute.c.diff: Remove file.
* gnulib-local/lib/spawn-pipe.c.diff: Remove file.
* gnulib-local/tests/test-environ.c.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
2018-09-18 Bruno Haible <bruno@clisp.org>
Fix link error when building with --disable-shared on Cygwin and mingw.
* gettext-tools/configure.ac (LIBXML_STATIC): Define to 1 when using the
included libxml and building with --disable-shared.
* gnulib-local/lib/libxml/libxml.h (LIBXML_STATIC): Define to 1, not empty.
2018-09-17 Bruno Haible <bruno@clisp.org>
autogen.sh: Fix use of undefined function.
* autogen.sh: Rewrite error message code.
2018-09-17 Bruno Haible <bruno@clisp.org>
Fix link error on Cygwin.
Patch partially by Michael Haubenwallner at
https://gitlab.gnome.org/GNOME/libxml2/commit/c65c9e8ee07e2dab0647392c2bd1795a5bc99829
* gnulib-local/lib/libxml/xmlexports.in.h: Don't assume that _WIN32 is defined
on Cygwin.
(XMLPUBVAR): Define as 'extern', not as empty.
2018-09-17 Bruno Haible <bruno@clisp.org>
Fix "Unescaped left brace in regex is deprecated here" warnings from Perl 5.26.
Reported and patch by Jehan <jehan@girinstud.io> <jehan@zemarmot.net> at
<https://savannah.gnu.org/bugs/?54088>.
* gettext-tools/doc/texi2html: Escape braces in regular expressions.
* gettext-runtime/libasprintf/texi2html: Likewise.
2018-09-17 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/modules/fnmatch.diff: Update.
* gettext-runtime/intl/config.charset: Remove file.
* gettext-runtime/intl/localcharset.h: Update from gnulib.
* gettext-runtime/intl/localcharset.c: Likewise.
* gettext-runtime/intl/Makefile.in (DISTFILES.common): Remove config.charset.
(charset.alias): Remove target.
(install-exec): Don't install charset.alias.
(install-data): Don't chmod config.charset.
(installdirs): Don't create $(libdir).
(uninstall): Don't uninstall charset.alias.
(mostlyclean): Don't remove charset.alias.
* gettext-runtime/intl/lock.h: Update from gnulib.
* gettext-runtime/intl/verify.h: Likewise.
* gettext-runtime/intl/printf-parse.c: Likewise.
* gettext-runtime/libasprintf/printf-parse.c: Likewise.
* gettext-runtime/m4/extern-inline.m4: Likewise.
* gettext-runtime/m4/threadlib.m4: Likewise.
* Makefile.am (distcheck-hook): Don't compare config.charset, ref-add.sin,
ref-del.sin.
2018-09-17 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-09-17 Bruno Haible <bruno@clisp.org>
Fix lang-sh test failure in VPATH builds.
* gettext-tools/tests/lang-sh: Prepend the gettext-runtime/src build dir,
not the gettext-runtime/src source dir, to PATH.
2018-09-16 Bruno Haible <bruno@clisp.org>
libintl: Improve locale handling on macOS 10.12 or newer.
* gettext-runtime/intl/langprefs.c (_nl_language_preferences_default): Make the
logic also work in locales such as "zh-Hans-DE".
* gettext-runtime/intl/setlocale.c: Include header files for CoreFoundation.
(libintl_setlocale): Try harder to set a locale for categories LC_CTYPE and
LC_MESSAGES.
2018-09-16 Bruno Haible <bruno@clisp.org>
Don't assume that 'sed' supports alternation in regular expressions.
See https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Usual-Tools.html
* gettext-tools/tests/msginit-1: Don't use \| in a 'sed' regular expression.
* gettext-tools/tests/msginit-3: Likewise.
* gettext-tools/tests/msginit-4: Likewise.
2018-09-16 Bruno Haible <bruno@clisp.org>
Update list of locale names with scripts on macOS.
* gettext-runtime/intl/localename.c (gl_locale_name_canonicalize): Update
tables to match Mac OS X 10.13 and recent glibc.
2018-09-16 Bruno Haible <bruno@clisp.org>
Oops, fix typo.
* gettext-runtime/m4/intlmacosx.m4 (gt_INTL_MACOSX): Fix variable name.
2018-09-16 Bruno Haible <bruno@clisp.org>
Fix link error in "make check" when building with --disable-shared on macOS.
* gnulib-local/modules/term-ostream-tests (test_term_ostream_LDADD): Add
@INTL_MACOSX_LIBS@.
2018-09-16 Bruno Haible <bruno@clisp.org>
Use newer macOS APIs when possible.
* gettext-runtime/m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
CFLocaleCopyPreferredLanguages.
* gettext-runtime/intl/langprefs.c (_nl_language_preferences_default): Use
CFLocaleCopyPreferredLanguages when it exists.
2018-09-16 Bruno Haible <bruno@clisp.org>
Revisit macOS specific code.
* gettext-runtime/intl/localename.c (gl_locale_name_default): Reduce code
duplication. Fix comments about Mac OS X versions.
2018-09-16 Bruno Haible <bruno@clisp.org>
libintl: Fix language preferences on macOS 10.12 or newer.
Reported by Kristian Rietveld <kris@loopnest.org> at
<https://savannah.gnu.org/bugs/?49560>.
* gettext-runtime/intl/langprefs.c (_nl_language_preferences_default): Handle
preferences elements of the form "ll-CC" in a reasonable way.
* NEWS: Mention the change.
2018-09-16 Bruno Haible <bruno@clisp.org>
setlocale: Improve support for locales not supported by libc.
Reported by Dapeng Gao <peter@dpgao.cc> at
<https://savannah.gnu.org/bugs/?54479>.
* gettext-runtime/intl/setlocale.c: Include <stdio.h>.
(libintl_setlocale): Use a more error-tolerant strategy when the locale to be
set is not supported by libc: Emit warnings instead of failing.
2018-09-16 Bruno Haible <bruno@clisp.org>
Fix link error when linking with libintl.a on macOS.
* gettext-runtime/intl/loadmsgcat.c (_nl_msg_cat_cntr): Zero-initialize on
macOS.
2018-09-16 Bruno Haible <bruno@clisp.org>
doc: Assume texinfo 4.0 or newer.
* gettext-tools/doc/gettext.texi: Omit Next, Prev, Up fields from @node lines.
* gettext-runtime/libasprintf/autosprintf.texi: Likewise.
2018-09-16 Bruno Haible <bruno@clisp.org>
Reduce "make dist" time by 7 minutes.
* configure.ac (AM_INIT_AUTOMAKE): Remove dist-xz and dist-lzip options.
* Admin/release-steps: Mention how to create the tarballs with higher
compression after "make dist".
2018-09-15 Bruno Haible <bruno@clisp.org>
Add support for translation lookup with context in shell scripts.
Reported by Markus Gothe <nietzsche@lysator.liu.se>
in <https://savannah.gnu.org/bugs/?49899>.
* gettext-runtime/src/gettext.c (long_options): Add option '--context'.
(main): Handle option -c/--context.
(usage): Document option -c/--context. Split usage message.
* gettext-runtime/src/ngettext.c (long_options): Add option '--context'.
(main): Handle option -c/--context.
(usage): Document option -c/--context. Split usage message.
* gettext-runtime/src/gettext.sh.in (eval_pgettext, eval_npgettext): New
functions.
* gettext-tools/src/xgettext.h (struct arglist_parser): Add 'next_is_msgctxt'
field.
(arglist_parser_remember_msgctxt): New declaration.
* gettext-tools/src/xgettext.c (arglist_parser_alloc, arglist_parser_clone):
Update accordingly.
(arglist_parser_remember_msgctxt): New function.
* gettext-tools/src/x-sh.c (init_keywords): Recognize also eval_pgettext and
eval_npgettext.
(init_flag_table_sh): Set flags for eval_pgettext, eval_npgettext.
(substring_of_word): New function.
(read_command): Recognize and handle -c/--context argument of 'gettext' and
'ngettext'.
* gettext-tools/tests/lang-sh: Add test of message lookup with context.
* gettext-runtime/doc/rt-gettext.texi: Mention the --context option.
* gettext-runtime/doc/rt-ngettext.texi: Likewise.
* gettext-tools/doc/gettext.texi (sh, Preparing Shell Scripts, gettext.sh):
Mention the new shell functions.
(eval_pgettext Invocation, eval_npgettext Invocation): New subsubsections.
* gettext-tools/doc/xgettext.texi: Mention the support for eval_pgettext,
eval_npgettext.
* NEWS: Mention the changes.
2018-08-12 Bruno Haible <bruno@clisp.org>
gettext-runtime/intl/setlocale.c: Add fixes from gnulib.
2018-08-11 Bruno Haible <bruno@clisp.org>
setlocale: Trivial simplification.
* lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2017-04-21 Bruno Haible <bruno@clisp.org>
Fix test-mbrtowc5.sh failure on native Windows.
* setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
"C".
2016-03-22 Geert Janssens <janssens-geert@telenet.be>
setlocale: add "sv" to Windows language table
* setlocale.c (language_table) [W32]: Add "sv".
Reported in <https://savannah.gnu.org/bugs/?44588>.
2012-01-04 Bruno Haible <bruno@clisp.org>
Talk about "native Windows API", not "Win32".
* setlocale.c: Update comments to mention native Windows.
2018-07-25 Bruno Haible <bruno@clisp.org>
Upgrade to newer help2man.
Reported by Bernhard M. Wiedemann in <https://savannah.gnu.org/bugs/?54367>.
* gettext-runtime/man/help2man: Upgrade to version 1.47.6, with one change:
$source ||= "$program $version";
replaced by
$source ||= "$package $version";
* gettext-tools/man/help2man: Likewise.
2018-07-25 Bruno Haible <bruno@clisp.org>
Make it possible to copy&paste strings from the HTML-formatted man pages.
* gettext-runtime/man/Makefile.am (MAN2HTML_POSTPROCESS): New variable.
(gt_man2html): Use it.
* gettext-tools/man/Makefile.am (MAN2HTML_POSTPROCESS): New variable.
(gt_man2html): Use it.
2018-07-03 Bruno Haible <bruno@clisp.org>
Enable the format_arg attribute also on clang on Mac OS X.
Reported by Tom Tromey <tom@tromey.com>
in <https://lists.gnu.org/archive/html/bug-gettext/2018-07/msg00000.html>.
* gettext-runtime/intl/libgnuintl.in.h (_INTL_MAY_RETURN_STRING_ARG): On macOS,
use attribute __format_arg__ if the compiler is based on clang >= 3.0.
2018-07-03 Bruno Haible <bruno@clisp.org>
Make the format_arg attribute effective also in the case _INTL_REDIRECT_INLINE.
Reported by Tom Tromey <tom@tromey.com>
in <https://lists.gnu.org/archive/html/bug-gettext/2018-07/msg00000.html>.
* gettext-runtime/intl/libgnuintl.in.h (gettext, dgettext, dcgettext,
ngettext, dngettext, dcngettext): Add attribute __format_arg__ also to the
'static inline' functions.
2018-06-17 Bruno Haible <bruno@clisp.org>
Fix a NEWS entry.
NEWS: Fix entry from 2016-07-01.
2018-05-14 Bruno Haible <bruno@clisp.org>
Update .gitignore.
2018-05-14 Bruno Haible <bruno@clisp.org>
xgettext: Improve support for specialized vector syntax in Scheme.
Reported by Florent Angly <Florent.Angly@cslbehring.com>.
* gettext-tools/src/x-scheme.c (read_object): Don't call free_token on an
uninitialized token. Support recent syntax for homogeneous vector types (SRFI-4)
and byte vectors as well.
* NEWS: Mention the change.
2018-05-12 Bruno Haible <bruno@clisp.org>
libintl: Ensure the *printf function overrides are POSIX compatible.
Reported by Eli Zaretskii <eliz@gnu.org>.
* gettext-runtime/intl/printf.c (USE_REPLACEMENT_CODE_ALWAYS): New macro.
(libintl_vfprintf, libintl_vsprintf, libintl_vsnprintf, libintl_vfwprintf,
libintl_vswprintf): Use it.
* NEWS: Mention the change.
2018-05-05 Bruno Haible <bruno@clisp.org>
all: Replace more http and ftp URLs by https URLs.
* autogen.sh: Use https: URLs.
* gettext-runtime/doc/nls.texi (Translating Teams, Available Packages): Likewise.
* gettext-tools/doc/gettext.texi: Likewise.
* gettext-tools/doc/FAQ.html: Likewise.
* gettext-tools/doc/tutorial.html: Likewise.
* gettext-tools/misc/gettextize.in: Likewise.
* gettext-tools/projects/GNOME/team-address: Likewise.
* gettext-tools/projects/GNOME/teams.url: Likewise.
* gettext-tools/projects/KDE/team-address: Likewise.
* gettext-tools/projects/KDE/teams.url: Likewise.
* gettext-tools/projects/TP/teams.url: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/tests/xgettext-its-1: Likewise.
2018-05-05 Bruno Haible <bruno@clisp.org>
all: Use https: URLs in --version output.
* gettext-runtime/src/envsubst.c: Use https: URL in --version output.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/gettext.sh.in: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/misc/autopoint.in: Likewise.
* gettext-tools/misc/convert-archive.in: Likewise.
* gettext-tools/misc/gettextize.in: Likewise.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/tests/tstgettext.c: Likewise.
* gettext-tools/tests/tstngettext.c: Likewise.
* gnulib-local/build-aux/moopp: Likewise.
2018-05-05 Bruno Haible <bruno@clisp.org>
all: Replace http URLs by https URLs in copyright notices.
2018-05-05 Bruno Haible <bruno@clisp.org>
Simplify code. Drop support for Borland C++ on Windows.
* gettext-runtime/intl/dcigettext.c: Simplify
'defined _WIN32 || defined __WIN32__' to just 'defined _WIN32'.
* gettext-runtime/intl/l10nflist.c: Likewise.
* gettext-runtime/intl/langprefs.c: Likewise.
* gettext-runtime/intl/libgnuintl.in.h: Likewise.
* gettext-runtime/intl/loadinfo.h: Likewise.
* gettext-runtime/intl/setlocale.c: Likewise.
* gettext-runtime/intl/printf-parse.c: Likewise.
* gettext-runtime/libasprintf/printf-parse.c: Likewise.
* gettext-tools/src/format-c-parse.h: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gnulib-local/lib/basename.c: Likewise.
2018-05-05 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* Makefile.am (distcheck-hook): Update comparison of flexmember.h.
* gettext-runtime/intl/localcharset.c: Update from gnulib.
* gettext-runtime/intl/localename.c: Likewise.
* gettext-runtime/intl/lock.h: Likewise.
* gettext-runtime/intl/relocatable.c: Likewise.
* gettext-runtime/intl/vasnprintf.c: Likewise.
* gettext-runtime/intl/verify.h: Likewise.
* gettext-runtime/intl/xsize.h: Likewise.
* gettext-runtime/libasprintf/vasnprintf.c: Likewise.
* gettext-runtime/m4/*.m4: Likewise.
* gettext-tools/examples/po/remove-potcdate.sin: Likewise.
* gnulib-local/lib/execute.c.diff: Update.
2018-05-05 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2018-03-24 Bruno Haible <bruno@clisp.org>
Add support for recent Java versions.
Reported by Emmanuel Bourg <ebourg@apache.org>
at <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892733>
via Santiago Vila.
* gettext-runtime/configure.ac: Require a Java compiler that supports
source-version 1.5 and target-version 1.6 (such as Java 6 or newer, or
GCJ 4.3 or newer).
* gettext-tools/src/write-java.c (msgdomain_write_java): Likewise
* gettext-tools/examples/hello-java-qtjambi/configure.ac: Likewise.
* gettext-tools/configure.ac: Require a Java compiler that supports
source-version 1.5 (such as Java 5 or newer, or GCJ 4.3 or newer).
* gettext-tools/examples/hello-java/configure.ac: Likewise.
* gettext-tools/examples/hello-java-awt/configure.ac: Likewise.
* gettext-tools/examples/hello-java-swing/configure.ac: Likewise.
* NEWS: Mention the change.
2018-03-24 Bruno Haible <bruno@clisp.org>
Update README-alpha.
* README-alpha: Don't suggest private email for bug reports about test releases.
2018-03-24 Bruno Haible <bruno@clisp.org>
Comment.
* .dir-locals.el: Add comment.
2018-03-24 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/lib/unistd.in.h.diff: Update.
* gnulib-local/lib/regexec.c.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.
2018-03-24 Bruno Haible <bruno@clisp.org>
Update to newest gnulib
2018-03-24 Bruno Haible <bruno@clisp.org>
Update NEWS file.
* NEWS: Add a missing entry (for a change from 2016-12-15).
2018-03-15 Bruno Haible <bruno@clisp.org>
doc: Fix statement about required Bison version.
Reported by Amit Chaudhuri <amit.k.chaudhuri@gmail.com>.
* HACKING: Required minimum Bison version is now 3.0, for cldr-plural.y.
2018-01-27 Bruno Haible <bruno@clisp.org>
Rename some files.
* INSTALL.windows: Renamed from README.windows.
* Makefile.am (EXTRA_DIST): Update.
* gettext-runtime/INSTALL.windows: Renamed from gettext-runtime/README.windows.
* gettext-runtime/Makefile.am (EXTRA_DIST): Update.
* gettext-runtime/intl/INSTALL.windows: Renamed from gettext-runtime/intl/README.windows.
* gettext-runtime/intl/Makefile.in (DISTFILES.gettext): Update.
* gettext-runtime/libasprintf/INSTALL.windows: Renamed from gettext-runtime/libasprintf/README.windows.
* gettext-runtime/libasprintf/Makefile.am (EXTRA_DIST): Update.
* gettext-tools/INSTALL.windows: Renamed from gettext-tools/README.windows.
* gettext-tools/Makefile.am (EXTRA_DIST): Update.
2018-01-27 Bruno Haible <bruno@clisp.org>
xgettext: Support '_' in number tokens in C++.
* gettext-tools/src/x-c.c (phase5_get): Recognize '_' in C++.
* NEWS: Update.
2018-01-07 Bruno Haible <bruno@clisp.org>
xgettext: Support 'p'/'P' exponent markers in number tokens also in C.
* gettext-tools/src/x-c.c (phase5_get): Recognize sign after 'p' or 'P' also
in C.
* NEWS: Update.
2018-01-07 Bruno Haible <bruno@clisp.org>
Avoid a test failure of lang-gawk.
It's a bug in gawk 4.2.0, reported at
https://lists.gnu.org/archive/html/bug-gawk/2018-01/msg00026.html .
* gettext-tools/tests/lang-gawk: Skip the test if gawk's version is 4.2.0.
2018-01-06 Bruno Haible <bruno@clisp.org>
Add support for new C++ preprocessing number tokens.
Reported by Moritz Bunkus <moritz@bunkus.org>
at <https://savannah.gnu.org/bugs/?50117>.
* gettext-tools/src/x-c.c (phase5_get): Recognize C++14 and C++17 extensions of
preprocessing number tokens.
* gettext-tools/tests/xgettext-c-22: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* NEWS: Mention the change.
2018-01-06 Bruno Haible <bruno@clisp.org>
Comment fix.
* gettext-tools/tests/xgettext-c-20: Fix typo in comment.
2018-01-06 Bruno Haible <bruno@clisp.org>
doc: Document the data formats supported by the tools in a central place.
* gettext-tools/doc/gettext.texi (Data Formats): New chapter.
(Internationalizable Data): Moved here from chapter "Programming Languages".
2018-01-06 Bruno Haible <bruno@clisp.org>
Avoid a test failure of lang-csharp on Mac OS X.
* gettext-tools/tests/lang-csharp: Don't test in $LOCALE_FR on Mac OS X.
2018-01-06 Bruno Haible <bruno@clisp.org>
xgettext: Add support for .properties files in UTF-8 encoding.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add read-file, unistr/u8-check.
* gettext-tools/src/read-properties: Read the file into memory, then find out
about its encoding, then start parsing it.
* gettext-tools/tests/xgettext-properties-2: New file.
* gettext-tools/tests/xgettext-properties-3: New file.
* gettext-tools/tests/xgettext-properties-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* NEWS: Mention the change.
2018-01-05 Bruno Haible <bruno@clisp.org>
Add support for .rsj files.
* gettext-tools/src/x-rst.h (EXTENSIONS_RST, SCANNERS_RST): Add RSJ scanner.
(extract_rsj): New declaration.
* gettext-tools/src/x-rst.c: Implement extraction from .rsj files.
* gettext-tools/src/xgettext.c (usage): Mention RSJ along with RST.
* gettext-tools/tests/xgettext-rst-1: New file.
* gettext-tools/tests/xgettext-rst-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/tests/lang-pascal: Extract from .rsj file, if the compiler
generated it.
* gettext-tools/doc/gettext.texi (RST): Mention that .rsj files are supported
as well.
* gettext-tools/doc/xgettext.texi (Choice of input file language): Mention RSJ
along with RST.
* NEWS: Mention the change.
2018-01-05 Bruno Haible <bruno@clisp.org>
Fix failure of lang-javascript on Ubuntu 16.04.
pkg-config almost never works. It is best to never use it.
* gettext-tools/tests/lang-javascript: Don't use pkg-config to test whether
the installed gjs is appropriate.
2018-01-05 Bruno Haible <bruno@clisp.org>
Fix a comment.
* gettext-tools/src/x-stringtable.h: Fix typo in comment.
2018-01-04 Bruno Haible <bruno@clisp.org>
doc: More information for maintainers.
* HACKING: New section 'Additional requirements for maintainers'.
2018-01-04 Bruno Haible <bruno@clisp.org>
Use locales with the customary names.
On glibc systems, nowadays, the German and French locales are named
'de_DE.UTF-8' and 'fr_FR.UTF-8', respectively. This change avoids the need
to install similar locales with different names.
* gettext-tools/tests/gettext-3: Use locales with '.UTF-8' suffix.
* gettext-tools/tests/gettext-3-prg.c (lang): Likewise.
2018-01-04 Bruno Haible <bruno@clisp.org>
doc: Add information about lua-gettext package.
* gettext-tools/doc/gettext.texi (Lua): Describe from where to get the
lua-gettext package.
2018-01-04 Bruno Haible <bruno@clisp.org>
doc: Add information about Ubuntu packages.
* gettext-tools/doc/gettext.texi (List of Programming Languages): Add a
subsection 'Ubuntu packages' for each.
2018-01-03 Bruno Haible <bruno@clisp.org>
Fix msgunfmt-3 failure (regression from 2017-09-24).
* gettext-tools/tests/Makefile.am (EXTRA_DIST): Add sysdep-without-nul.mo.
2018-01-03 Bruno Haible <bruno@clisp.org>
Update dependencies list.
* HACKING: Add Lzip (needed for "make dist" since 2014-12-24).
2018-01-03 Bruno Haible <bruno@clisp.org>
Fix "make dist" of modified git checkouts.
This fixes error messages such as
tar: gettext-0.19.8.1.74-72e49-dirty/gettext-tools/gnulib-tests/test-term-ostream-xterm-linux-mandriva.out: file name is too long (max 99); not dumped
tar: gettext-0.19.8.1.74-72e49-dirty/gettext-runtime/intl-csharp/doc/GNU_Gettext_GettextResourceManager.html: file name is too long (max 99); not dumped
* configure.ac: Pass option 'tar-ustar' to AM_INIT_AUTOMAKE.
(am__tar): Use 'tar' option --format=ustar.
2018-01-02 Bruno Haible <bruno@clisp.org>
Clarify required bison version.
Reported by Roger Mc Murtrie <rogermc@grapevine.com.au>
at <https://savannah.gnu.org/bugs/?47484>.
* HACKING: Mention minimum version of bison.
2018-01-02 Bruno Haible <bruno@clisp.org>
Avoid build failures caused by parallel make.
Reported by Andrew Stormont <andyjstormont@gmail.com>
at <https://savannah.gnu.org/bugs/?48412>.
* gettext-tools/doc/Makefile.am (GNUMAKEFLAGS): New variable.
* gettext-tools/src/Makefile.am (cldr-plural.h): Add dependency.
2018-01-02 Bruno Haible <bruno@clisp.org>
Fix 'ar' invocation when cross-compiling and in 64-bit mode on AIX.
Reported by Benedikt Morbach <bmorbach@redhat.com>
at <https://savannah.gnu.org/bugs/?43037>.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require gl_PROG_AR_RANLIB if
available. Otherwise, use AC_PROG_RANLIB and set AR and ARFLAGS.
* gettext-runtime/intl/Makefile.in (AR): Use the value determined through
autoconf.
(ARFLAGS): New variable.
(libintl.a, libgnuintl.a): Use it.
* gettext-runtime/configure.ac: Invoke gl_PROG_AR_RANLIB.
* gettext-runtime/libasprintf/configure.ac: Likewise.
* gettext-tools/configure.ac: Likewise.
2018-01-02 Bruno Haible <bruno@clisp.org>
Don't use -lc explicitly when linking with libtool.
libtool has logic that determines whether it should add -lc, and this logic
works fine on all modern platforms.
Reported by Michael Forney <mforney@mforney.org>
at <https://savannah.gnu.org/bugs/?40192>.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't set LTLIBC.
* gettext-runtime/intl/Makefile.in (libintl.la, libgnuintl.la): Don't use
LTLIBC.
2017-10-15 Bruno Haible <bruno@clisp.org>
Clarify copyright and license of some files.
Reported by Joël Krähemann at <https://savannah.gnu.org/bugs/?52227>.
* gettext-runtime/po/Makefile.in.in: Correct copyright holder.
* gettext-runtime/po/remove-potcdate.sin: Use the same licensing terms as Makefile.in.in.
* gettext-runtime/po/Rules-quot: Use an all-permissive license.
* gettext-tools/po/Makevars.template: Likewise.
* gettext-runtime/po/Makevars: Likewise.
* gettext-tools/po/Makevars: Likewise.
* gettext-runtime/po/POTFILES.in: Use GPLv3+.
* gettext-tools/po/POTFILES.in: Likewise.
2017-09-30 Bruno Haible <bruno@clisp.org>
Fix an out-of-bounds memory read.
Reported by Jakub Wilk <jwilk@jwilk.net>.
* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Pass the correct
length to memcmp().
2017-09-24 Daiki Ueno <ueno@gnu.org>
Test of verification of system dependent strings in .mo files.
* gettext-tools/tests/sysdep-without-nul.mo: New file, from Jakub Wilk.
* gettext-tools/tests/msgunfmt-3: Add test of sysdep-without-nul.mo.
2017-09-24 Bruno Haible <bruno@clisp.org>
Verify that system dependent strings in .mo files are NUL terminated.
Reported by Jakub Wilk <jwilk@jwilk.net> in
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876498>.
* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Bail out if some of the
system-dependent strings has a last static segment that is not NUL terminated.
* gettext-tools/src/read-mo.c (get_sysdep_string): Likewise.
2017-09-24 Bruno Haible <bruno@clisp.org>
libintl: Fix pointer use after free.
* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Perform the same lock
deallocation outside libc as in libc (patch from 2013-09-06).
2017-08-29 Bruno Haible <bruno@clisp.org>
AppData: Update documentation.
* gettext-tools/doc/gettext.texi (AppData): Add reference to the specification.
Mention support for file extension .metainfo.xml.
2017-08-29 Matthias Klumpp <matthias@tenstral.net>
Extend the AppData "language" to also support AppStream metainfo files.
Fixes <https://savannah.gnu.org/bugs/?50414>,
reported by Piotr Drąg <piotrdrag@gmail.com>.
* gettext-tools/its/metainfo.its: Renamed from gettext-tools/its/appdata.its.
* gettext-tools/its/metainfo.loc: Renamed from gettext-tools/its/appdata.loc.
Recognize also suffix ".metainfo.xml".
* gettext-tools/its/Makefile.am (dist_its_DATA): Update.
* gettext-tools/src/x-appdata.h: Update comment.
2017-08-29 Bruno Haible <bruno@clisp.org>
AppData: Simplify code.
* gettext-tools/src/x-appdata.h (EXTENSIONS_APPDATA): Define to empty, as the
supported extensions are now defined in the *.loc files.
2017-08-29 Matthias Klumpp <matthias@tenstral.net>
Translate <developer_name> elements in AppData files.
Fixes <https://savannah.gnu.org/bugs/?50408>,
reported by Piotr Drąg <piotrdrag@gmail.com>.
* gettext-tools/its/appdata.its: Mark <developer_name> elements as translatable.
2017-08-22 Bruno Haible <bruno@clisp.org>
Remove an obsolete configure test.
* gettext-tools/configure.ac: Remove obsolete test that used the obsolete file
<xlocale.h>.
2017-08-22 Bruno Haible <bruno@clisp.org>
Avoid extraneous NUL bytes in .mo files.
Reported by Jakub Wilk <jwilk@jwilk.net> via Santiago Vila <sanvila@unex.es>
in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872869>.
* gettext-tools/src/msgl-header.c (msgdomain_list_set_header_field,
message_list_delete_header_field): Adjust msgstr_len when modifying msgstr.
2017-07-15 Bruno Haible <bruno@clisp.org>
Get rid of autom4te.cache directories, as far as possible.
* autogen.sh: Remove autom4te.cache directories after running autoconf,
autoheader, automake.
2017-07-15 Bruno Haible <bruno@clisp.org>
Fix bug: gettextize does not add intlmacosx.m4 file.
Reported by Eli Zaretskii via Gavin Smith in
<http://lists.gnu.org/archive/html/bug-texinfo/2017-07/msg00026.html>.
* gettext-tools/misc/gettextize.in (m4filelist): Include intlmacosx.m4 also
when --intl option is not given.
* gettext-tools/doc/gettext.texi (aclocal): Add intlmacosx.m4 to file list.
2017-06-15 Bruno Haible <bruno@clisp.org>
gettext.h: Update theoretical condition for use of variable size arrays.
Reported by Paul Eggert.
* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend
comment to include the theoretical condition for availability of variable size
arrays, if we could trust the value of __STDC_VERSION__.
2017-05-22 Bruno Haible <bruno@clisp.org>
Fix hyperlink to CLHS.
* gettext-tools/doc/gettext.texi (lisp-format): Fix hyperlink.
2017-05-19 Bruno Haible <bruno@clisp.org>
Fix memory leaks.
Found by Coverity.
* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Free allocated memory
before returning in out-of-memory case.
* gettext-runtime/intl/localealias.c (relocate2): Define fallback.
(read_alias_file): Invoke relocate2 instead of relocate. Free the allocated
memory.
2017-05-19 Bruno Haible <bruno@clisp.org>
Fix missing unlock.
Found by Coverity.
* gettext-runtime/intl/dcigettext.c (_nl_find_msg): Unlock the lock and
free allocated memory before returning.
2017-05-19 Bruno Haible <bruno@clisp.org>
Update gettext-runtime files from gnulib.
* Makefile.am (distcheck-hook): Check also flexmember.m4, flexmember.h.
* gettext-runtime/intl/Makefile.in (SOURCES): Add flexmember.h.
* gettext-runtime/intl/flexmember.h: New file, from gnulib.
* gettext-runtime/intl/localcharset.c:
* localcharset.c (relocate2): Define fallback.
(get_charset_aliases): Invoke relocate2 instead of relocate. Free the
allocated memory.
* localcharset.c (WINDOWS_NATIVE): Don't define on Cygwin.
* localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
return value from setlocale if it would lead to a buffer overrun.
* gettext-runtime/intl/localename.c:
* localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
where NL_LOCALE_NAME is defined.
* localename.c (WINDOWS_NATIVE): Don't define on Cygwin.
* localename.c (gl_locale_name_thread_unsafe): Add clause for
Cygwin.
* localename.c (struct hash_node): Use FLEXIBLE_ARRAY_MEMBER.
* gettext-runtime/intl/lock.c:
* lock.c: On glibc systems without
PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
implementation of rwlocks.
* lock.c [USE_POSIX_THREADS]
(glthread_rwlock_init_for_glibc): New function.
[USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
comment.
[USE_PTH_THREADS]: New implementation of rwlocks.
[USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
readers.
* gettext-runtime/intl/lock.h:
* lock.h (pthread_rwlockattr_setkind_np): Don't declare
weak on non-glibc platforms.
* lock.h: On glibc systems without
PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
implementation of rwlocks.
* lock.h [USE_POSIX_THREADS_WEAK]: Declare also
pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
pthread_rwlockattr_destroy weak.
* lock.h [USE_POSIX_THREADS]: Test
HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
of rwlock initialization on glibc systems without
HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
of rwlocks altogether on non-glibc systems without
HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
[USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
* gettext-runtime/intl/relocatable.c:
* relocatable.c (relocate2): New function.
* relocatable.c (relocate): Assume pathname is non-NULL. Use
ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
* gettext-runtime/intl/relocatable.h:
* relocatable.h (relocate2): New declaration/macro.
* gettext-runtime/intl/vasnprintf.c, gettext-runtime/libasprintf/vasnprintf.c:
* vasnprintf.c (FALLTHROUGH): New macro.
Use it whenever one switch case falls through into the next.
* vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
of !HAVE_SNPRINTF_RETVAL_C99.
* vasnprintf.c (VASNPRINTF): Move comment down past two cpp
directives, so that it takes effect once again. This is clearly
not a proper change, and I will revert it once this bug is fixed:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
* vasnprintf.c (IF_LINT): Treat GCC_LINT like lint.
* gettext-runtime/intl/verify.h:
* verify.h (verify) [!__GNUC__]:
Use shorter albeit meaningless string to bypass silly compiler limits.
* verify.h (assume): Treat GCC_LINT like lint.
* gettext-runtime/intl/xsize.h: Update.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Add flexmember.m4.
* gettext-runtime/m4/extern-inline.m4: Update.
* gettext-runtime/m4/fcntl-o.m4: Update.
* gettext-runtime/m4/flexmember.m4: New file, from gnulib.
* gettext-runtime/m4/glibc2.m4: Update.
* gettext-runtime/m4/glibc21.m4: Update.
* gettext-runtime/m4/intdiv0.m4: Update.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
* gettext-runtime/m4/intmax.m4: Update.
* gettext-runtime/m4/inttypes-pri.m4: Update.
* gettext-runtime/m4/inttypes_h.m4: Update.
* gettext-runtime/m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
* gettext-runtime/m4/longlong.m4: Update.
* gettext-runtime/m4/printf-posix.m4: Update.
* gettext-runtime/m4/progtest.m4: Update.
* gettext-runtime/m4/size_max.m4: Update.
* gettext-runtime/m4/stdint_h.m4: Update.
* gettext-runtime/m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
* gettext-runtime/m4/uintmax_t.m4: Update.
* gettext-runtime/m4/visibility.m4: Update.
* gettext-runtime/m4/wchar_t.m4: Update.
* gettext-runtime/m4/xsize.m4: Update.
* gettext-runtime/tests/test-lock.c:
* test-lock.c: On Mac OS X, use named semaphores, not unnamed
semaphores.
(USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
(atomic_int_semaphore): New macro.
* test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
exist.
* test-lock.c (USE_SEMAPHORE): New constant.
(struct atomic_int, init_atomic_int, get_atomic_int_value,
set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
Suggested by Torvald Riegel <triegel@redhat.com>.
2017-05-18 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/lib/fnmatch_loop.c.diff: Update.
2017-05-18 Bruno Haible <bruno@clisp.org>
Update gnulib
2017-05-16 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
* gnulib-local/lib/getopt-core.h.diff: New file.
* gnulib-local/lib/getopt.in.h.diff: Remove file.
* gnulib-local/lib/unistd.in.h.diff: Update.
* gnulib-local/modules/fnmatch.diff: Update.
* gnulib-local/Makefile.am (EXTRA_DIST): Add lib/getopt-core.h.diff. Remove
lib/getopt.in.h.diff.
* gettext-runtime/m4/wint_t.m4: Update from gnulib.
* autogen.sh: In the gnulib-tool invocations, avoid gnulib test modules that
depend on 'hash' (because we use a different 'hash' module).
* .gitignore: Update.
2017-05-15 Bruno Haible <bruno@clisp.org>
Update gnulib
2017-05-15 Bruno Haible <bruno@clisp.org>
doc: Fix statement about Bulgarian.
Reported by Domingo Bernardo <domingopbernardo@gmail.com>.
* gettext-tools/doc/gettext.texi (Plural forms): Fix classification of
Bulgarian.
2017-05-15 Bruno Haible <bruno@clisp.org>
Respect the configure option --localedir.
Reported by Markus Gothe at https://savannah.gnu.org/bugs/index.php?49862 .
The AC_SUBSTed variable @localedir@ is supported since Autoconf 2.60.
* gettext-runtime/intl/Makefile.in (localedir): Set to @localedir@. Suggested
by Markus Gothe <nietzsche@lysator.liu.se>.
* gettext-runtime/m4/intldir.m4: Require Autoconf 2.60 or newer.
* gettext-tools/doc/gettext.texi (src/Makefile): Assume Autoconf 2.60 or newer.
2017-05-04 Bruno Haible <bruno@clisp.org>
Remove the ability to compile the Java programs to native executables.
This ability relied on GCJ, and GCJ was removed from GCC in version 7.1.
* gnulib-local/modules/gcj: Remove file.
* gnulib-local/m4/gcj.m4: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove both.
* gnulib-local/m4/java.m4 (gt_JAVA_CHOICE): Map value 'bytecode' to 'yes'.
* autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Remove 'gcj'.
* gettext-tools/configure.ac: Don't invoke gt_GCJ. Don't set BUILDJAVAEXE.
* gettext-tools/src/Makefile.am (DEFS): Remove USEJEXE, GETTEXTJEXEDIR defines.
(GCJ, GCJFLAGS): Remove variables.
(USEJAVA, USEJEXE): Assume BUILDJAVAEXE is false.
(all-java-*, install-data-java-*, installdirs-java-*, uninstall-java-*): Remove
targets that assume BUILDJAVAEXE = true. Rename remaining targets.
(install-exec-java-*): Remove targets.
* gettext-tools/src/read-java.c (msgdomain_read_java: Assume USEJEXE is false.
* gettext-tools/src/urlget.c (fetch): Likewise.
* gettext-tools/tests/msgunfmt-java-1: Don't set GETTEXTJEXEDIR.
* PACKAGING (Java support): Drop text about native executables.
* gettext-tools/m4/Makefile.am (examplesbuildaux_DATA): Remove gcj.m4.
* gettext-tools/examples/hello-java*/autogen.sh: Don't copy gcj.m4.
* gettext-tools/examples/hello-java*/autoclean.sh: Don't remove m4/gcj.m4.
* gettext-tools/examples/hello-java*/m4/Makefile.am (EXTRA_DIST): Remove
gcj.m4.
* gettext-tools/examples/hello-java*/configure.ac: Don't invoke gt_GCJ,
AC_PROG_RANLIB. Remove option --enable-java-exe. Don't set BUILDJAVAEXE. Don't
set USEJEXE.
* gettext-tools/examples/hello-java*/Makefile.am (GCJ, GCJFLAGS, AR, RANLIB):
Remove variables.
[USEJEXE]: Remove section.
2017-04-22 Bruno Haible <bruno@clisp.org>
Avoid -Wundef warning in gettext.h.
* gnulib-local/lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
2017-04-19 Bruno Haible <bruno@clisp.org>
PO mode: Fix typo.
* gettext-tools/misc/po-mode.el (po-select-mark-and-mark): Fix typo in message.
2017-04-19 Bruno Haible <bruno@clisp.org>
PO mode: Fix recognition of C and C++ modes.
The variable 'mode-name' can contain a suffix, see
https://www.gnu.org/software/emacs/manual/html_node/ccmode/Minor-Modes.html
https://www.gnu.org/software/emacs/manual/html_node/emacs/Electric-C.html
Therefore use 'major-mode' instead of 'mode-name'.
* gettext-tools/misc/po-mode.el (po-preset-string-functions): Test major-mode,
not mode-name.
(po-mode-version-string): Bump to 2.25.
Reported at <https://savannah.gnu.org/bugs/index.php?50830>
by Peter Hull <peterhull90@gmail.com>.
2017-03-20 Bruno Haible <bruno@clisp.org>
Fix compilation error in <libintl.h> on Cygwin.
Reported by Michael Haubenwallner at https://savannah.gnu.org/bugs/?50595 .
* gettext-runtime/intl/libgnuintl.in.h (newlocale): Hide declaration if
locale_t type is not visible on Cygwin.
2017-02-16 Bruno Haible <bruno@clisp.org>
Support for Automake targets install-{dvi,ps,pdf,html}.
Reported by Eric Blake at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25690
via Assaf Gordon.
* gettext-runtime/po/Makefile.in.in (install-dvi, install-ps, install-pdf,
install-html): New empty targets.
2017-01-10 Bruno Haible <bruno@clisp.org>
Update URLs in READMEs.
* README: Prefer https protocol over http or ftp protocol.
* DEPENDENCIES: Likewise. Point to OpenJDK instead of gcj. Point to Mono instead
of pnet.
2017-01-02 Bruno Haible <bruno@clisp.org>
lock test: Fix performance problem on multi-core machines.
* gettext-runtime/tests/test-lock.c (USE_VOLATILE): New macro.
(struct atomic_int): New type.
(init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
functions.
(lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
as 'struct atomic_int'.
(lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
reclock_checker_thread, test_recursive_lock): Use the new functions.
Reported by Eric Blake in
https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
and by Pádraig Brady in
http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
2016-12-16 Bruno Haible <bruno@clisp.org>
Add comments about test failures with --disable-nls.
* gettext-tools/tests/lang-bash: Add comment.
* gettext-tools/tests/lang-sh: Likewise.
* gettext-tools/tests/lang-c: Likewise.
* gettext-tools/tests/lang-c++: Likewise.
* gettext-tools/tests/lang-objc: Likewise.
2016-12-15 Bruno Haible <bruno@clisp.org>
Polish the last commit.
2016-12-15 John Darrington <john@darrington.wattle.id.au>
msgfmt: Remove POT-Creation-Date field from the header in the output.
This helps reproducible builds.
Reported at <https://savannah.gnu.org/bugs/?49654>.
* gettext-tools/src/msgl-header.h (message_list_delete_header_field): New
declaration.
* gettext-tools/src/msgl-header.c (known_fields): New variable, extracted from
msgdomain_list_set_header_field.
(message_list_delete_header_field): New function.
* gettext-tools/src/write-mo.c: Include msgl-header.h.
(msgdomain_write_mo): Delete the POT-Creation-Date field.
* gettext-tools/src/write-java.c: Include msgl-header.h.
(msgdomain_write_java): Delete the POT-Creation-Date field.
* gettext-tools/src/write-csharp.c: Include msgl-header.h.
(msgdomain_write_csharp): Delete the POT-Creation-Date field.
* gettext-tools/src/write-resources.c: Include msgl-header.h.
(msgdomain_write_csharp_resources): Delete the POT-Creation-Date field.
* gettext-tools/src/write-tcl.c: Include msgl-header.h.
(msgdomain_write_tcl): Delete the POT-Creation-Date field.
* gettext-tools/src/write-qt.c: Include msgl-header.h.
(msgdomain_write_qt): Delete the POT-Creation-Date field.
* gettext-tools/src/write-desktop.c: Include msgl-header.h.
(msgdomain_write_desktop): Delete the POT-Creation-Date field.
* gettext-tools/src/write-xml.c: Include msgl-header.h.
(msgdomain_write_xml): Delete the POT-Creation-Date field.
* gettext-tools/tests/msgfmt-19: New file, based on
gettext-tools/tests/msgfmt-18.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
2016-12-15 Bruno Haible <bruno@clisp.org>
Fix typo in comment.
2016-12-12 Bruno Haible <bruno@clisp.org>
Fix error handling in autogen.sh.
* autogen.sh: Don't invoke automake if aclocal, autoconf, or autoheader failed.
2016-12-11 Bruno Haible <bruno@clisp.org>
Simplify .gitignore.
2016-12-11 Bruno Haible <bruno@clisp.org>
Remove files deleted by "make maintainer-clean" from version control.
2016-12-11 Bruno Haible <bruno@clisp.org>
Merge all .gitignore files into a single .gitignore file.
2016-12-11 Bruno Haible <bruno@clisp.org>
Update and organize the .gitignore files.
2016-12-10 Bruno Haible <bruno@clisp.org>
Update to newest gnulib.
2016-12-09 Bruno Haible <bruno@clisp.org>
Fix crash of xgettext with --its option.
* gettext-tools/src/xgettext.c (main): Free contents of its_dirs only when it
was initialized. Fixes bug introduced on 2016-05-16.
2016-12-05 KO Myung-Hun <komh78-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
intl: Fix that /@unixroot prefix is not working on OS/2 kLIBC
OS/2 kLIBC has a feature to rewrite some path components. For example,
'/@unixroot' is replaced with a value of $UNIXROOT if it is.
So prepending a drive letter to the path starting with '/' makes the
path starting with '/@unixroot' to 'x:/@unixroot' which is unexpected.
This will breaks the behavior of some programs depending on /@unixroot
prefix.
* gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Do not touch
dirname if it is started with '/@unixroot'.
* gettext-runtime/intl/relocatable.c (relocate): Do not touch pathname
if it is started with '/@unixroot'.
2016-12-05 Bruno Haible <bruno@clisp.org>
Fix the last commit.
* autogen.sh: Enable the code of the last commit. Force an update of
build-aux/ylwrap.
2016-12-04 Bruno Haible <bruno@clisp.org>
Always use the newest released copies of files brought in from Automake.
* autogen.sh: Make sure to get new versions of files brought in by automake.
2016-12-04 Bruno Haible <bruno@clisp.org>
Make xgettext-its-2 test stronger.
* gettext-tools/tests/xgettext-its-2: Set each environment variable only for
the scope of a single xgettext invocation.
2016-12-04 Bruno Haible <bruno@clisp.org>
Avoid test failure in non-English locale.
* gettext-tools/tests/xgettext-its-2: Set the environment variable LC_MESSAGES
when we want to check for an error message in English.
2016-12-04 Bruno Haible <bruno@clisp.org>
Fix an error message when gettextize if run with option -n.
* gettext-tools/misc/gettextize.in: Consider the Makevars.template file at the
location where it is installed, not in $srcdir.
2016-12-04 Bruno Haible <bruno@clisp.org>
Tweak installation instructions for Windows.
* README.windows: Fix the mingw32 PATH.
2016-11-26 Guido Flohr <guido.flohr@cantanea.com>
doc: corrected argument numbers
2016-11-25 Guido Flohr <guido.flohr@cantanea.com>
Perl supports pgettext() and similar functions
2016-11-24 Guido Flohr <guido.flohr@cantanea.com>
xgettext-perl: detect question mark as operator
After an explicit function call like "somefunc()" a question mark or
slash cannot be regex delimiters.
2016-11-23 Bruno Haible <bruno@clisp.org>
Update installation instructions for Windows.
* README.windows: Assume a 64-bit Windows. Explain both 32-bit and 64-bit
builds. Add instructions for the MS Visual C/C++ tool chain. Revamp instructions
for Cygwin.
* gettext-runtime/README.windows: Generic reference to top-level file.
* gettext-runtime/intl/README.windows: Likewise.
* gettext-runtime/libasprintf/README.windows: Likewise.
* gettext-tools/README.windows: Likewise.
2016-11-23 Bruno Haible <bruno@clisp.org>
Drop the nickname "woe32".
* README.windows: Renamed from README.woe32.
* Makefile.am (EXTRA_DIST): Update.
* gettext-runtime/README.windows: Renamed from gettext-runtime/README.woe32.
* gettext-runtime/Makefile.am (EXTRA_DIST): Update.
* gettext-runtime/intl/README.windows: Renamed from gettext-runtime/intl/README.woe32.
* gettext-runtime/intl/Makefile.in (DISTFILES.gettext): Update.
* gettext-runtime/libasprintf/README.windows: Renamed from gettext-runtime/libasprintf/README.woe32.
* gettext-runtime/libasprintf/Makefile.am (EXTRA_DIST): Update.
* gettext-tools/README.windows: Renamed from gettext-tools/README.woe32.
* gettext-tools/Makefile.am (EXTRA_DIST): Update.
2016-11-14 Daiki Ueno <ueno@gnu.org>
intl: Fix compilation on a system without alloca
* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Fix typo 'tmp_dirname'
-> 'resolved_dirname'. Reported by Egor Pugin in:
http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00008.html
2016-11-02 Daiki Ueno <ueno@gnu.org>
doc: Mention new bootstrap requirements
* autogen.sh: Require automake >= 1.13.
* HACKING: Require automake >= 1.13, wget, and xz.
Reported by Karl-P. Richter and Bruno Haible in:
https://savannah.gnu.org/bugs/?49497
2016-10-25 Bruno Haible <bruno@clisp.org>
Update iconv.m4 from Gnulib.
* gettext-runtime/m4/iconv.m4: Update from Gnulib.
2016-10-25 Bruno Haible <bruno@clisp.org>
Add comments about the implementation of 'autosprintf::operator='.
* gettext-runtime/libasprintf/autosprintf.in.h (autosprintf::operator=): Add
comments. Rename parameter.
* gettext-runtime/libasprintf/autosprintf.cc (autosprintf::operator=): Likewise.
2016-09-15 Daiki Ueno <ueno@gnu.org>
xgettext: Fix crash with *.po file input
When xgettext was given two *.po files with the same msgid_plural, it
crashed with double-free. Problem reported by Davlet Panech in:
http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00001.html
* gettext-tools/src/po-gram-gen.y: Don't free msgid_pluralform after
calling do_callback_message, assuming that it takes ownership.
* gettext-tools/src/read-catalog.c (default_add_message): Free
msgid_plural after calling message_alloc.
* gettext-tools/tests/xgettext-po-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new test.
2016-08-27 Akinori MUSHA <knu@idaemons.org>
Add autoload magic comments
2016-08-27 Akinori MUSHA <knu@idaemons.org>
Fix elisp package headers
2016-08-09 Daiki Ueno <ueno@gnu.org>
gettextize: Don't add config.rpath to EXTRA_DIST
The file is automatically included in the distribution by Automake,
because of an AC_REQUIRE_AUX_FILE invocation. Reported in:
http://savannah.gnu.org/bugs/?48729
* gettext-tools/misc/gettextize.in: Don't add config.rpath to
added_extradist.
2016-08-03 Daiki Ueno <ueno@gnu.org>
po-mode: Fix po-send-mail behaviour on Emacs 25
* gettext-tools/misc/po-mode.el (po-send-mail): Don't rely on
region markers.
Reported by Göran Uddeborg in:
http://lists.gnu.org/archive/html/bug-gettext/2016-07/msg00027.html
2016-07-12 Daiki Ueno <ueno@gnu.org>
Update after gnulib changed
2016-07-12 Daiki Ueno <ueno@gnu.org>
Update gnulib
2016-07-12 Michele Locati <michele@locati.it>
Better description of GETTEXTCLDRDIR for msginit
Let's explain better where the GETTEXTCLDRDIR should point to and where the
CLDR data could be retrieved.
2016-07-09 Stanislav Brabec <sbrabec@suse.com>
Add support for msgmerge --previous
msgmerge --previous is a very useful feature that makes adjusting of
translation much easier when small changes in the source code are done.
msgmerge supports it for 10 years, but it is not used by most projects,
as Makefile.in.in never added support for it.
Use msgmerge --previous as default on all systems with gettext >= 0.16.
2016-06-28 Daiki Ueno <ueno@gnu.org>
gnulib-local: Fix the last change
* gnulib-local/Makefile.am (EXTRA_DIST): Remove generated files.
2016-06-28 Daiki Ueno <ueno@gnu.org>
gnulib-local: Add more files to distribution
Problem reported by Xen.
* gnulib-local/Makefile.am (EXTRA_DIST): Regenerate.
2016-06-11 Daiki Ueno <ueno@gnu.org>
build: Fix unintentional soname bump
* gettext-runtime/intl/Makefile.in: Revert LTV_CURRENT and increment
LTV_REVISION.
* gettext-tools/libgettextpo/Makefile.am: Likewise.
2016-06-09 Daiki Ueno <ueno@gnu.org>
Update translations
* gettext-runtime/po/eo.po: Update from Felipe Castro <fefcas@gmail.com>
* gettext-runtime/po/hr.po: Update from Božidar Putanec <bozidarp@yahoo.com>
* gettext-runtime/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
* gettext-tools/examples/po/eo.po: Update from Felipe Castro <fefcas@gmail.com>
* gettext-tools/examples/po/hr.po: Update from Božidar Putanec <bozidarp@yahoo.com>
* gettext-tools/examples/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
* gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>
* gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>
* gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>
* gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>
* gettext-tools/po/ko.po: Update from Changwoo Ryu <cwryu@debian.org>
* gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>
* gettext-tools/po/pl.po: Update from Rafał Maszkowski <rzm@icm.edu.pl>
* gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>
* gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>
* gettext-tools/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
* gettext-tools/po/tr.po: Update from Nilgün Belma Bugüner <nilgun@buguner.name.tr>
* gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>
* gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>
2016-06-09 Daiki Ueno <ueno@gnu.org>
Update matrix
2016-06-09 Daiki Ueno <ueno@gnu.org>
NEWS: Fix release date of 0.19.8
2016-06-09 Daiki Ueno <ueno@gnu.org>
Prepare for 0.19.8
2016-06-09 Daiki Ueno <ueno@gnu.org>
THANKS: Update
2016-06-08 Daiki Ueno <ueno@gnu.org>
gnulib-local: Work around regcomp.c compile error
* gnulib-local/Makefile.am (EXTRA_DIST): Add lib/regcomp.c.diff.
* gnulib-local/lib/regcomp.c.diff: New file, partially revert Gnulib
commit f97745b0.
2016-06-08 Daiki Ueno <ueno@gnu.org>
tests: Use Exit instead of exit if init.sh is used
* gettext-tools/tests/*: Use Exit instead of exit, as suggested by
init.sh.
2016-06-07 Daiki Ueno <ueno@gnu.org>
build: Create intl/ChangeLog
* autogen.sh: Create an empty ChangeLog for gettext-runtime/intl, which
is necessary when running "make dist" from the top level directory.
2016-06-02 Daiki Ueno <ueno@gnu.org>
build: Simplify placeholder ChangeLog creation
* autogen.sh: Use empty ChangeLog for placeholder. Bail out if any
error occurs in autoreconf phase.
2016-06-02 Daiki Ueno <ueno@gnu.org>
maint: Update release steps
2016-06-01 Daiki Ueno <ueno@gnu.org>
tests: Check invalid input in sentence-1-prg
* gettext-tools/tests/sentence-1-prg.c (main): Check input buffer
overflow, while it is not possible with the current test case.
2016-06-01 Daiki Ueno <ueno@gnu.org>
tests: Fix test data for sentence-1
* gettext-tools/tests/sentence-1: Use NO-BREAK SPACE instead of
IDEOGRAPHIC SPACE.
2016-05-31 Daiki Ueno <ueno@gnu.org>
tests: Fix location of valgrind suppression file
* gettext-tools/tests/Makefile.am (CHECKER): Use $(abs_srcdir) instead
of $(srcdir).
2016-05-31 Daiki Ueno <ueno@gnu.org>
tests: Turn sentence test into a shell script
For consistency with other tests. Also it fixes a test failure when
built with --disable-shared, since LOG_COMPILER set to $(SHELL) doesn't
recognize binary executable.
* gettext-tools/tests/Makefile.am (TESTS): Rename 'sentence' to
'sentence-1'.
(check_PROGRAMS): Rename 'sentence' to 'sentence-1-prg'.
(sentence_1_prg_SOURCES): Rename from 'sentence_SOURCES'.
(sentence_1_prg_CPPFLAGS): Rename from 'sentence_CPPFLAGS'.
(sentence_1_prg_LDADD): Rename from 'sentence_LDADD'.
* gettext-tools/tests/sentence-1: New file.
* gettext-tools/tests/sentence-1-prg.c: Rename from sentence.c, move the
test data to sentence-1.
* gettext-tools/tests/.gitignore: Ignore sentence-1-prg.
2016-05-30 Daiki Ueno <ueno@gnu.org>
maint: Update copyright year
2016-05-30 Daiki Ueno <ueno@gnu.org>
xgettext: Update usage documentation
* gettext-tools/src/xgettext.c (usage): Mention 'bullet-unicode' check.
2016-05-28 Daniel Burr <dburr@dburr.net> (tiny change)
build: Make libxml2 check tighter
* gnulib-local/m4/libxml.m4 (gl_LIBXML): Try to check
xmlXPathSetContextNode, which is available in libxml2 2.9.1 or later.
Problem reported by Dominyk in:
http://savannah.gnu.org/bugs/?46844
2016-05-27 Daiki Ueno <ueno@gnu.org>
desktop: Add missing "extern" in header
* gettext-tools/src/read-desktop.h: Add "extern" to each function
declaration.
Possibly related to: https://savannah.gnu.org/bugs/?45896
2016-05-27 Daiki Ueno <ueno@gnu.org>
NEWS: Mention gettext.m4 change
2016-05-27 Daiki Ueno <ueno@gnu.org>
m4: Rely less on internal symbols
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Skip checks for the
internal symbols _nl_msg_cat_cntr, _nl_domain_bindings, and
_nl_expand_alias, if __GNU_GETTEXT_SUPPORTED_REVISION is defined.
Problem reported and fix suggested by Masanori Ogino in:
https://lists.gnu.org/archive/html/bug-gettext/2016-04/msg00000.html
The rationale behind this is: (1) those symbol checks are for detecting
certain broken implementations, namely NetBSD and Solaris 7, and
(2) __GNU_GETTEXT_SUPPORTED_REVISION is not defined in those
implementations, while it is defined on compatible implementations, such
as musl-libc which doesn't have those internal symbols.
2016-05-25 Daiki Ueno <ueno@gnu.org>
NEWS: Add 0.19.8 changes
2016-05-25 Daiki Ueno <ueno@gnu.org>
intl: Pacify pre-C99 compilers
* gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): New
macro, based on the check previously in plural-exp.c. Also add check
for __SUNPRO_C for Solaris Studio C compiler.
(GERMANIC_PLURAL): Define as 'struct expression' not 'const struct
expression' if struct/union initializers are not supported by the
compiler.
* gettext-runtime/intl/plural-exp.c: Use HAVE_STRUCT_INITIALIZER.
Reported by Dagobert Michelsen and investigated by pan7 in:
https://savannah.gnu.org/support/?108743
2016-05-24 David Shea <dshea@redhat.com>
desktop: Fix invalid memory access
* gettext-tools/src/read-desktop.c (desktop_lex): Don't access memory
deallocated with realloc(). Reported in:
http://savannah.gnu.org/bugs/?47991
2016-05-23 Daiki Ueno <ueno@gnu.org>
tests: Add more tests for JavaScript format string
* gettext-tools/tests/format-javascript-1: Add test for multiple uses of
same argument.
* gettext-tools/tests/format-javascript-2: Use proper flag to activate
javascript format checker.
2016-05-23 Daiki Ueno <ueno@gnu.org>
javascript: Fix format type compatibility check
* gettext-tools/src/format-javascript.c (format_check): Check if the two
argument types are the same.
2016-05-20 Daiki Ueno <ueno@gnu.org>
tests: Add test for ITS search path
* gettext-tools/tests/Makefile.am (TESTS): Add new test.
* gettext-tools/tests/xgettext-its-2: New file.
2016-05-20 Daiki Ueno <ueno@gnu.org>
search-path: Fix XDG_DATA_DIRS traversal
* gettext-tools/src/search-path.c (foreach_elements): Append "gettext"
suffix to each element from XDG_DATA_DIRS.
2016-05-20 Daiki Ueno <ueno@gnu.org>
search-path: Don't relocate dirs given as envvar
* gettext-tools/src/search-path.c (foreach_function_ty): New typedef.
(path_array_ty): New struct.
(foreach_components, increment, fill): New functions.
(get_search_path): Rewrite using those functions. Relocate
GETTEXTDATADIR here.
* gettext-tools/src/search-path.h (get_search_path): Update documentation.
* gettext-tools/src/msgfmt.c (main): Don't relocate directories in ITS
search path.
* gettext-tools/src/xgettext.c (main): Likewise.
2016-05-19 Daiki Ueno <ueno@gnu.org>
Update after Gnulib changed
* gnulib-local/lib/gettext.h: Update from gnulib.
* gettext-runtime/m4/extern-inline.m4: Likewise.
* gettext-runtime/m4/intdiv0.m4: Likewise.
2016-05-19 Daiki Ueno <ueno@gnu.org>
Update gnulib
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Explicitly pull 'gettext',
as the module is now marked as obsolete.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove m4/hard-locale.m4.diff.
* gnulib-local/m4/hard-locale.m4.diff: Remove, as it is no longer
needed.
* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gettext-tools/libgettextpo/.gitignore: Likewise.
2016-05-18 Daiki Ueno <ueno@gnu.org>
maint: Add --no-git option to autogen.sh
* autogen.sh: Port --no-git option from Gnulib's bootstrap.
2016-05-16 Daiki Ueno <ueno@gnu.org>
msgfmt, xgettext: Respect XDG_DATA_DIRS
Suggested in https://savannah.gnu.org/bugs/?47123
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'xmemdup0'.
* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gettext-tools/src/search-path.c: New file.
* gettext-tools/src/search-path.h: New file.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add search-path.h.
(libgettextsrc_la_SOURCES): Add search-path.c.
* gettext-tools/src/msgfmt.c: Include "search-path.h".
(main): Use get_search_path to locate ITS directories.
* gettext-tools/src/xgettext.c: Include "search-path.h".
(main): Use get_search_path to locate ITS directories.
2016-05-16 Daiki Ueno <ueno@gnu.org>
javascript: Avoid uninitialized variable
* gettext-tools/src/format-javascript.c (format_check): Fix
loop initialization. Spotted by clang-analyzer.
2016-03-25 Hanno Boeck <hanno@gentoo.org> (tiny change)
lua: Avoid heap buffer overflow
* gettext-tools/src/x-lua.c (string_end): Allocate a room for
terminating NUL. Reported in: http://savannah.gnu.org/bugs/?4753
2016-03-23 Daiki Ueno <ueno@gnu.org>
format-python-brace: Support chained expression
* gettext-tools/src/format-python-brace.c (parse_directive): Recognize
chained getattr/getitem expressions.
* gettext-tools/tests/format-python-brace-1: Add test for the case where
both getattr and getitem are used.
Reported by Paul Franklin in:
https://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00017.html
2016-03-23 Daiki Ueno <ueno@gnu.org>
doc: Fix ngettext usage example
* gettext-tools/doc/gettext.texi (Plural forms): Fix positional argument
syntax in the C example. Reported by Jonathan Leffler in:
http://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00002.html
2016-03-22 Daiki Ueno <ueno@gnu.org>
javascript: Fix invalid memory access
* gettext-tools/src/format-javascript.c (format_parse): Fix numbered_arg
allocation for the unnumbered case.
Reported by Roger Mc Murtrie in: <http://savannah.gnu.org/bugs/?47492>.
2016-03-22 Daiki Ueno <ueno@gnu.org>
maint: Clean up .gitignore
* gettext-tools/gnulib-lib/.gitignore: Sort lines.
2016-03-02 Daiki Ueno <ueno@gnu.org>
xgettext: Put --its help in the right section
* gettext-tools/src/xgettext.c (usage): Move --its=FILE option under
"Language specific options" from "Output details".
2016-02-22 Daiki Ueno <ueno@gnu.org>
xgettext: Add new check bullet-unicode
* gettext-tools/src/xgettext.c (main): Generalize --check option
handling.
* gettext-tools/src/message.h (enum syntax_check_type): New enum value
sc_bullet_unicode.
(NSYNTAXCHECKS): Increment.
* gettext-tools/src/message.c (syntax_check_name): Add name for
sc_bullet_unicode.
* gettext-tools/src/msgl-check.c (struct bullet_ty, struct
bullet_stack_ty): New struct.
(bullet_stack): New variable.
(syntax_check_bullet_unicode): New function.
(sc_funcs): Register syntax_check_bullet_unicode as a check function for
sc_bullet_unicode.
* gettext-tools/tests/xgettext-14: Add tests for --check=bullet-unicode
2016-02-10 Daiki Ueno <ueno@gnu.org>
doc: Mention the behavior stripping *.in
* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Add footnote
explaining the matching behavior if the input file name has the .in
suffix. Suggested by Jan Synacek.
2016-02-08 Daiki Ueno <ueno@gnu.org>
javascript: Support '%m$' in format strings
Gjs has had support for numbered arguments in format strings since 1.40.
Recognize it as well in format-javascript, so msgfmt -c doesn't fail
when numbered arguments are in msgstr. Reported by Sean Burke in:
https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00002.html
* gettext-tools/src/format-javascript.c (struct numbered_arg): New
struct.
(struct spec): Rename format_args_count to numbered_arg_count. Add
NUMBERED field in place of FORMAT_ARGS. All callers changed.
(numbered_arg_compare): New function.
(format_parse): Handle numbered arguments. Based on format-awk.c.
(format_check): Add check for numbered arguments.
* gettext-tools/tests/format-javascript-1: Add tests for numbered
arguments.
* gettext-tools/tests/lang-javascript: Use numbered argument in format
strings. Add check for Gjs version >= 1.40.
2016-02-08 Daiki Ueno <ueno@gnu.org>
moopp: Revert file modes accidentally set
2016-01-20 KO Myung-Hun <komh78@gmail.com>
gettext-tools: Use a short name for DLLs on OS/2
OS/2 does not support a DLL name longer than 8 characters.
* gettext-tools/configure.ac (OS2): Define on OS/2.
* gettext-tools/gnulib-lib/Makefile.am (libgettextlib_la_LDFLAGS):
Set a DLL name to gtlib on OS/2.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS):
Set a DLL name to gtpo on OS/2.
* gettext-tools/src/Makefile.am (libgettextsrc_la_LDFLAGS): Set a DLL
name to gtsrc on OS/2.
2016-01-20 KO Myung-Hun <komh78@gmail.com>
libasprintf: Build a shared library on OS/2
* gettext-runtime/libasprintf/configure.ac (LTNOUNDEF): Set to
-no-undefined on OS/2.
2016-01-20 KO Myung-Hun <komh78@gmail.com>
intl: Support UNIXROOT in BINDTEXTDOMAIN () on EMX
$UNIXROOT is a drive on which a root of FHS is.
* gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Prepend
$UNIXROOT to dirname if it is started '/' or it is an empty string.
2016-01-20 KO Myung-Hun <komh78@gmail.com>
moop: Replace CR as well as LF with a space
On OS/2, EOL marker is CR+LF.
* gnulib-local/bulid-aux/moopp (func_check_header_syntax):
Replace CR as well as LF with a space.
2016-01-15 Bruno Haible <bruno@clisp.org>
Change msgfmt to produce little-endian .mo files by default.
* gettext-tools/src/msgfmt.c (main): Initialize 'byteswap' so as to
produce little-endian .mo files by default.
* gettext-tools/doc/gettext.texi: Update documentation.
* gettext-tools/doc/msgfmt.texi (--endianness): Likewise.
2016-01-13 Daiki Ueno <ueno@gnu.org>
maint: Revert copyright year changes in test data
Some test programs started failing after mass update of copyright notice
for year 2016 (commit 7fa0c277), because of embedded test data with
fixed copyright dates. Revert the commit for those files.
Reported by Bruno Haible.
* .x-update-copyright: Exclude test programs embedding copyright date.
* gettext-tools/tests/msgcomm-22: Revert the last change.
* gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
* gettext-tools/tests/msggrep-1: Likewise.
* gettext-tools/tests/msggrep-2: Likewise.
* gettext-tools/tests/msggrep-3: Likewise.
* gettext-tools/tests/msggrep-4: Likewise.
* gettext-tools/tests/msggrep-5: Likewise.
* gettext-tools/tests/msggrep-9: Likewise.
* gettext-tools/tests/msggrep-11: Likewise.
* gettext-tools/tests/msgmerge-14: Likewise.
2016-01-07 Daiki Ueno <ueno@gnu.org>
its: Recognize *.glade as a GtkBuilder file too
2016-01-05 Santiago Vila <sanvila@unex.es> (tiny change)
* PACKAGING: List version specific files
2016-01-02 Daiki Ueno <ueno@gnu.org>
maint: Update copyright year
2016-01-02 Daiki Ueno <ueno@gnu.org>
Update gnulib
2016-01-02 Daiki Ueno <ueno@gnu.org>
maint: Use maintainer-makefile from gnulib
* autogen.sh: Pull GNUmakefile, maint.mk, and dependency scripts in
build-aux.
* cfg.mk (update-copyright-env): Adjust for gettext.
* .x-update-copyright: New file.
* .gitignore: Ignore files brought in by gnulib-tool.
2015-12-28 Daiki Ueno <ueno@gnu.org>
maint: Update release-steps to current practice
* Admin/release-steps: Split document into two sections ('Making a
snapshot release' and 'Making an official release'), reorder some steps,
and remove mention of manual generation of PO/POT files.
2015-12-27 Daiki Ueno <ueno@gnu.org>
Update translations
* gettext-runtime/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
* gettext-runtime/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>.
* gettext-runtime/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>.
* gettext-runtime/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
* gettext-runtime/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>.
* gettext-tools/examples/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
* gettext-tools/examples/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>.
* gettext-tools/examples/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>.
* gettext-tools/examples/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
* gettext-tools/examples/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>.
* gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>.
* gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>.
* gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
* gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>.
* gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>.
* gettext-tools/po/pt_BR.po: Update from Rafael Fontenelle <rffontenelle@gmail.com>.
* gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>.
* gettext-tools/po/sl.po: Update from Primoz PETERLIN <primozz.peterlin@gmail.com>.
* gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
* gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>.
* gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>.
2015-12-27 Daiki Ueno <ueno@gnu.org>
Prepare for 0.19.7
2015-12-27 Daiki Ueno <ueno@gnu.org>
doc: Regenerate translation matrix
* gettext-runtime/ABOUT-NLS: Regenerate for 0.19.7.
* gettext-runtime/doc/matrix.texi: Regenerate for 0.19.7.
2015-12-27 Daiki Ueno <ueno@gnu.org>
NEWS: Add 0.19.7 changes
2015-12-27 Daiki Ueno <ueno@gnu.org>
Update gnulib
2015-12-27 Daiki Ueno <ueno@gnu.org>
Ignore file brought by gnulib-tool
* gettext-tools/gnulib-tests/.gitignore: Ignore file brought by
gnulib-tool.
2015-12-23 Daiki Ueno <ueno@gnu.org>
term-ostream-tests: Add test data for FreeBSD 10.1
* gnulib-local/modules/term-ostream-tests: Add
test-term-ostream-xterm-freebsd101.out.
* gnulib-local/tests/test-term-ostream-xterm: Use new test data.
* gnulib-local/tests/test-term-ostream-xterm-freebsd101.out: New file.
2015-12-21 Daiki Ueno <ueno@gnu.org>
cldr-plurals: Fix errors from clang-analyzer
* gettext-tools/src/cldr-plurals.c (extract_rules): Add extra null
checks for NODE and BUFFER. Don't add NUL byte to the end of buffer
manually.
2015-12-17 Daiki Ueno <ueno@gnu.org>
po: Prefer to use host tools when cross compiling
* gettext-runtime/po/Makefile.in.in (CROSS_COMPILING): New substitute
variable.
(.nop.po-update): Don't prepend ../src to $PATH when cross compiling.
* gettext-runtime/po/Rules-quot (.insert-header.po-update-en): Likewise.
2015-12-17 Daiki Ueno <ueno@gnu.org>
its: Allow CDATA and comments in translatable node
* gettext-tools/src/its.c (its_rule_list_is_translatable): Don't return
false on CDATA and comments.
2015-12-17 Daiki Ueno <ueno@gnu.org>
its: Fix typo in GSettings rule
* gettext-tools/its/gsettings.its: Fix typo in escape rule.
2015-12-15 Daiki Ueno <ueno@gnu.org>
gnulib-local: Fix link error due to symbol dupes
* gnulib-local/lib/libxml/trionan.c (minus_zerod): Mark as static.
2015-12-15 Daiki Ueno <ueno@gnu.org>
gnulib-local: Pull more functions for libxml
* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by
gnulib-tool.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gnulib-local/modules/libxml (Depends-on): Add 'pow', 'log10', and
'fabs'.
2015-12-15 Daiki Ueno <ueno@gnu.org>
gnulib-local: Replace libxml2 trio with Gnulib
* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by
gnulib-tool.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gnulib-local/lib/libxml/triodef.h: Remove.
* gnulib-local/lib/libxml/trionan.c: Replace it with Gnulib functions.
* gnulib-local/lib/libxml/trionan.h: Remove.
* gnulib-local/modules/libxml (Depends-on): Add 'isinf', 'isnan', and
'signbit'.
2015-12-14 Daiki Ueno <ueno@gnu.org>
gnulib-local: Update included libxml2 to 2.9.3
* gnulib-local/lib/libxml/*: Update from libxml2 2.9.3. Add buf.[ch],
enc.h, save.h, triodef.h, trionan.[ch]. Enable XPath and XPointer
support.
* gnulib-local/modules/libxml (Files): Add new files from libxml2 2.9.3.
2015-12-10 Daiki Ueno <ueno@gnu.org>
gettext-tools: Update POTFILES.in
* gettext-tools/po/POTFILES.in: Add newly added files.
2015-12-10 Daiki Ueno <ueno@gnu.org>
gnulib-local: Make markup.c translator friendly
* gnulib-local/lib/markup.c: Reuse strings.
2015-12-10 Daiki Ueno <ueno@gnu.org>
its: Mark some attributes as escape="no"
* gettext-tools/its/glade2.its: Mark "comments" attribute as
escape="no".
* gettext-tools/its/gsettings.its: Mark "context" attribute as
escape="no".
* gettext-tools/its/gtkbuilder.its: Mark "comments" attribute as
escape="no".
2015-12-10 Daiki Ueno <ueno@gnu.org>
xgettext: Respect ITS escape rule for attributes
* gettext-tools/src/its.c (its_rule_list_extract_text): Check for
"escape" value for an attribute node.
* gettext-tools/tests/xgettext-its-1: Add tests for gt:escapeRule.
2015-12-10 KO Myung-Hun <komh78@gmail.com> (tiny change)
intl: Fix name resolution failures on kLIBC
kLIBC already has _nl_default_dirname and _nl_msg_cat_cntr in its own
gettext implmenetation.
* gettext-runtime/intl/dcigettext.c: Do not declare _nl_default_dirname
on kLIBC.
* gettext-runtime/intl/gettextP.h: Define _nl_msg_cat_cntr to
libintl_nl_msg_cat_cntr on kLIBC.
2015-12-10 KO Myung-Hun <komh78@gmail.com> (tiny change)
build: Do not include os2compat.[ch]
kLIBC does not need os2compat.[ch]
* gettext-runtime/configure.ac (AH_BOTTOM): Do not include
intl/os2compat.h on kLIBC.
* gettext-runtime/intl/osdep.c: Do not include os2compat.c on kLIBC.
* gettext-tools/configure.ac (AH_BOTTOM): Do not include
intl/os2compat.h on kLIBC.
2015-12-10 KO Myung-Hun <komh78@gmail.com> (tiny change)
test-lock: Do not include sched.h on kLIBC
* gettext-runtime/tests/test-lock.c: Do not include sched.h on kLIBC,
since kLIBC does not have sched.h.
2015-12-10 Daiki Ueno <ueno@gnu.org>
kde: Fix KUIT error handling when libxml2 is used
* gettext-tools/src/format-kde-kuit.c (format_parse): Return NULL if
xmlReadMemory returns NULL.
2015-12-10 Daiki Ueno <ueno@gnu.org>
xgettext: Add --its option for ease of testing
* gettext-tools/doc/xgettext.texi (Output details): Mention --its
option.
* gettext-tools/src/xgettext.c (long_options): Add --its option.
(main): Handle --its option. Suggested by Sébastien Wilmet.
2015-12-10 Daiki Ueno <ueno@gnu.org>
xgettext: Improve error reporting when ITS is used
* gettext-tools/src/xgettext.c (main): Print error when an ITS file is
designated through a locating rule, but the file does not exist.
2015-12-09 Daiki Ueno <ueno@gnu.org>
build: Update DEPENDENCIES
* DEPENDENCIES: Remove duplicate entry for libxml2.
2015-12-09 Daiki Ueno <ueno@gnu.org>
build: Remove expat dependency
* DEPENDENCIES: Suggest libxml2 instead of expat.
* gnulib-local/lib/markup.c: New file.
* gnulib-local/lib/markup.h: New file.
* gnulib-local/modules/markup: New file.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add markup module.
* gettext-tools/configure.ac: Remove checks for expat.
* gettext-tools/gnulib-lib/.gitignore: Ignore modules pulled by
gnulib-tool due to the markup module usage.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gettext-tools/libgettextpo/.gitignore: Likewise.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES):
Remove ../src/libexpat-compat.c.
(libgettextpo_la_LDFLAGS): Remove @LTLIBEXPAT@.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove
libexpat-compat.h.
(libgettextsrc_la_SOURCES): Remove libexpat-compat.c.
(libgettextsrc_la_LDFLAGS): Remove @LTLIBEXPAT@.
* gettext-tools/src/format-kde-kuit.c: Use functions from markup.h, when
the file is being compiled as part of libgettextpo. Otherwise use
libxml2.
* gettext-tools/src/libexpat-compat.c: Remove.
* gettext-tools/src/libexpat-compat.h: Remove.
2015-12-08 Daiki Ueno <ueno@gnu.org>
build: Fix texi2html failure with perl 5.22
* gettext-runtime/libasprintf/texi2html (update_sec_num): Don't use
"defined" against an array ref.
* gettext-tools/doc/texi2html (update_sec_num): Likewise.
2015-12-08 Daiki Ueno <ueno@gnu.org>
Update gnulib
2015-12-08 Daiki Ueno <ueno@gnu.org>
xgettext: Ignore --from-code when XML mode
* gettext-tools/src/xgettext.c (extract_from_xml_file): Forcibly set
current source encoding to UTF-8, on XML mode.
2015-12-08 Daiki Ueno <ueno@gnu.org>
build: Suppress compiler warning
* gettext-tools/src/its.c (its_rule_list_extract_text): Remove unused
local variable "message".
2015-12-04 Daiki Ueno <ueno@gnu.org>
msgfmt: Support XML file merging
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add write-xml.h.
(msgfmt_SOURCES): Add write-xml.c.
* gettext-tools/src/its.c (its_merge_context_merge_node): New function.
(its_merge_context_merge): New function.
(its_merge_context_alloc): New function.
(its_merge_context_write): New function.
(its_merge_context_free): New function.
* gettext-tools/src/its.h (its_merge_context_ty): New type.
* gettext-tools/src/msgfmt.c: Include "its.h", "locating-rule.h", and
"write-xml.h".
(SIZEOF): New macro.
(xml_mode, xml_locale_name, xml_template_name, xml_base_directory,
xml_language, xml_its_rules): New variable.
(long_options): Add --language and --xml.
(main): Handle new options.
(usage): Document new options.
(msgfmt_xml_bulk): New function.
* gettext-tools/src/write-xml.c: New file.
* gettext-tools/src/write-xml.h: New file.
* gettext-tools/doc/gettext.texi: Mention XML file merging use-case.
* gettext-tools/doc/msgfmt.texi: Mention --xml option.
* gettext-tools/tests/msgfmt-xml-1: New file.
* gettext-tools/tests/msgfmt-xml-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new tests.
2015-12-04 Daiki Ueno <ueno@gnu.org>
xgettext: Rewrite Glade scanner in ITS
* gettext-tools/its/glade.loc: New file.
* gettext-tools/its/glade1.its: New file.
* gettext-tools/its/glade2.its: New file.
* gettext-tools/its/gtkbuilder.its: New file.
* gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
* gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-glade.c.
* gettext-tools/src/x-glade.c: Remove.
* gettext-tools/src/x-glade.h (EXTENSIONS_GLADE): Set language field to
NULL.
(SCANNERS_GLADE): Set func field to NULL.
* gettext-tools/po/POTFILES.in: Remove x-glade.c
2015-12-04 Daiki Ueno <ueno@gnu.org>
xgettext: Rewrite GSettings scanner in ITS
* gettext-tools/its/gsettings.its: New file.
* gettext-tools/its/gsettings.loc: New file.
* gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
* gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-gsettings.c.
* gettext-tools/src/x-gsettings.c: Remove.
* gettext-tools/src/x-gsettings.h (EXTENSIONS_GSETTINGS): Set language
field to NULL.
(SCANNER_GSETTINGS): Set func field to NULL.
2015-12-04 Daiki Ueno <ueno@gnu.org>
xgettext: Rewrite AppData scanner in ITS
* gettext-tools/its/appdata.loc: New file.
* gettext-tools/its/appdata.its: New file.
* gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
* gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-appdata.c.
* gettext-tools/src/x-appdata.c: Remove.
* gettext-tools/src/x-appdata.h (EXTENSIONS_APPDATA): Set language
field to NULL.
(SCANNERS_APPDATA): Set func field to NULL.
2015-12-04 Daiki Ueno <ueno@gnu.org>
xgettext: Add support for generic XML files
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add trim module.
* gettext-tools/src/locating-rule.h: New file.
* gettext-tools/src/locating-rule.c: New file.
* gettext-tools/src/its.h: New file.
* gettext-tools/src/its.c: New file.
* gettext-tools/src/xgettext.c: Include "locating-rule.h" and "its.h".
(its_locators): New variable.
(long_options): Add --itstool option.
(extract_from_xml_file): New function.
(main): Handle --itstool option.
(usage): Document --itstool option.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add locating-rule.h
and its.h.
(libgettextsrc_la_CPPFLAGS): Add $(INCXML).
(libgettextsrc_la_SOURCES): Add locating-rule.c and its.c.
* gettext-tools/Makefile.am (SUBDIRS): Add its directory.
* gettext-tools/configure.ac: Output its/Makefile.
* gettext-tools/doc/gettext.texi (Preparing ITS Rules): New section.
* gettext-tools/doc/xgettext.texi: Mention --itstool option.
* gettext-tools/tests/Makefile.am (TESTS): Add new tests.
* gettext-tools/tests/xgettext-its-1: New file
* gettext-tools/tests/init-env.in: Set GETTEXTDATADIR for ITS tests.
2015-11-18 Daiki Ueno <ueno@gnu.org>
cldr-plurals: Add sanity checks for input
* gettext-tools/src/cldr-plurals.c (extract_rules): Add null checks and
element type checks.
2015-11-17 Daiki Ueno <ueno@gnu.org>
cldr-plurals: Rewrite XML handling using libxml2
* src/cldr-plurals.c: Include <libxml/tree.h> and
<libxml/parser.h>, instead of "libexpat-compat.h".
(extract_locale, extracted_rules, parser, logical_file_name)
(struct element_state, stack, stack_size, stack_depth)
(ensure_stack_size, start_element_handler, end_element_handler)
(character_data_handler): Remove.
(extract_rules): Rename from extract_rule and rewrite using DOM.
(main): Use extract_rules.
* src/Makefile.am (cldr_plurals_CFLAGS): Add $(INCXML).
2015-11-17 Daiki Ueno <ueno@gnu.org>
cldr-plurals: Fix a trivial leak
* src/cldr-plural.y (sample_range): Free unused operand value.
2015-11-17 Phil Davis <phil.davis@inf.org> (tiny change)
doc: Fix typo in gettext_noop example
* doc/gettext.texi (Special cases): Add missing ')' to
a gettext_noop call.
2015-10-29 Daiki Ueno <ueno@gnu.org>
maint: Ignore more generated ChangeLogs
* .gitignore: Add gettext-runtime/intl/ChangeLog,
gettext-runtime/po/ChangeLog, and gettext-tools/po/ChangeLog.
2015-10-29 Daiki Ueno <ueno@gnu.org>
m4: Fix typo in usage comment
* gettext-runtime/m4/gettext.m4: Remove duplicate words.
* gettext-runtime/m4/intl.m4: Likewise.
* gettext-runtime/m4/intldir.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/lcmessage.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
* gettext-runtime/m4/progtest.m4: Likewise.
Reported by Jakub Wilk in:
https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00026.html.
2015-10-29 Daiki Ueno <ueno@gnu.org>
doc: Fix typo in msgfmt invocation
* gettext-tools/doc/msgfmt.texi: Fix the documentation of -d option,
used in the Desktop Entry mode.
2015-10-15 Daiki Ueno <ueno@gnu.org>
build: Generate ChangeLogs for intl and po
* autogen.sh: Create empty ChangeLog files under intl and po.
* Makefile.am (gen-ChangeLogs): Rename from gen-ChangeLog. Generate
ChangeLog files for */intl and */po as well as top-level.
* gettext-runtime/intl/ChangeLog.0: Rename from ChangeLog.
* gettext-runtime/po/ChangeLog.0: Rename from ChangeLog.
* gettext-tools/po/ChangeLog.1: Rename from ChangeLog.
2015-10-15 Daiki Ueno <ueno@gnu.org>
build: Distribute old ChangeLogs in tarball
* Makefile.am (changelog_etc): Remove non-existent ChangeLog files
under intl and po.
(EXTRA_DIST): Add $(changelog_etc).
2015-10-14 Mike Frysinger <vapier@chromium.org>
tests: use check_PROGRAMS
The noinst_xxx targets will be compiled all the time. For test programs,
the check_xxx targets make more sense as they'll only be built when the
user runs `make check`.
* gettext-runtime/tests/Makefile.am (noinst_PROGRAMS): Rename to ...
(check_PROGRAMS): ... this.
2015-10-14 Mike Frysinger <vapier@chromium.org>
intl/localename: control langinfo.h inclusion
This header is only used to work around buggy behavior in old versions
of glibc, so do not include it all the time. Otherwise we get build
failures on systems that do not provide langinfo.h.
* gettext-runtime/intl/localename.c: Wrap langinfo.h include with same
ifdefs used in the source later on.
2015-10-14 Daiki Ueno <ueno@gnu.org>
build: Remove ChangeLogs
Generate ChangeLog files at "make dist" time, using
gitlog-to-changelog. We still keep ChangeLog files under "po" and
"intl" directories, since those files are copied as part of gettext
infrastructure and it is still meaningful to have them there.
* .gitignore: Add ChangeLog files.
* Admin/release-steps: Remove mention of running update-changelog
script.
* Admin/update-changelog: Remove.
* Makefile.am (gen-ChangeLog): New rule.
* autogen.sh: Copy gitlog-to-changelog from gnulib. Create empty
ChangeLog files to suppress Automake errors.
* gettext-tools/doc/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
* gettext-tools/man/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
* gettext-tools/src/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
* gettext-tools/tests/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove ChangeLog files.
* */ChangeLog: Rename to ChangeLog.0 or ChangeLog.1.
* HACKING: Add brief guideline to submit patches.
|