https://bugs.freedesktop.org/show_bug.cgi?id=47750

             Bug #: 47750
           Summary: Need to audit for [A-Z] regexp usage (might break
                    build with certain locales) in build scripts
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO Master
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Libreoffice
        AssignedTo: [email protected]
        ReportedBy: [email protected]


This might sound a bit 'crackpot', but using [A-Z] range in build scripts can
introduce subtle issues under certain locales (one example is et_EE/Estonian)
because the A-Z range cuts off some regular ascii characters (tuvxy in
Estonian). This causes either build errors with package or even subtler issues
like some symbols in shared library don't exported...

The solution is to either prefix the commands where such kind of range is used
(sed, tr) with `LC_ALL=C` or writing out the whole ascii alphabet range
(abcd...xyz). Please note that '[:alpha:]' is not an answer and can cause
similar issues.

Some examples of the [A-Z] gone wrong:
http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=6b234d7ce4b687912e4778327945c64743db90ea

Should note here that [:alpha:] was later replaced with full-range abcd..xyz:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=03994f01e8b72b3d01fd3d09d1cc7c9f421a727c;hp=2b775a27c0d9fdf8078d5b31e1e27411e5bf2a91

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to