Bug 65503 - A corrupted string is returned for paths containing UTF-8 characters
Summary: A corrupted string is returned for paths containing UTF-8 characters
Status: RESOLVED MOVED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: pkg-config
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 11:04 UTC by Nikos Chantziaras
Modified: 2018-08-25 12:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Nikos Chantziaras 2013-06-07 11:04:24 UTC
When a *.pc file contains paths with UTF-8 characters in them, pkg-config returns a corrupted string sequence (which appears as gibberish on the terminal.)

To reproduce, glib-2.0.pc can be temporarily edited to contain this:

  includedir=${prefix}/τεστ

This results in:

$ pkg-config glib-2.0 --cflags
-I/usr/\�\�\�\�\�\�\�\�/glib-2.0 -I/usr/lib64/glib-2.0/include

Because of this, packages using this will fail to build.

I'm using pkg-config 0.28 on Gentoo Linux AMD64.
Comment 1 GitLab Migration User 2018-08-25 12:52:28 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/3.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.