Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 681940

Summary: dev-libs/libebml-1.4.2 uses internal copy of dev-libs/utfcpp
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: CONFIRMED ---    
Severity: normal CC: esigra, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 251464    

Description Arfrever Frehtes Taifersar Arahesis 2019-03-28 17:55:13 UTC
dev-libs/libebml-1.3.7 bundles copy of dev-libs/utfcpp (snapshot from commit 1537543999978d3a0464560a9a940d6140c6ba59 between release 2.3.5 and release 2.3.6) since this commit:

https://github.com/Matroska-Org/libebml/commit/a880df6db601ec18f4143f830a81aaf57b69fe02
"""
EbmlUnicodeString: use UTF8-CPP library for UTF-8/UCS2 conversions

The custom code for converting between UTF-8-encoded std::strings and
the internal UCS2-encoded buffer did not handle code points > U+FFFF
correctly — meaning the code neither created nor read surrogate pairs
for such code points.

Instead of re-implementing even more functionality, we now include the
header-only library "utf8-cpp" and use its well-tested functionality
for the conversions.
"""

--- a/README.md
+++ b/README.md
@@ -31,6 +31,17 @@
 * `-DBUILD_SHARED_LIBS=YES` — build the shared library instead of the
   static one (default: no)
 
-## Code of conduct
+# Code of conduct
 
 Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
+
+# Included third-party components and their licenses
+
+## utf8-cpp
+
+UTF-8 with C++ in a Portable Way
+
+  * Copyright: 2006 Nemanja Trifunovic
+  * License: custom (see `src/lib/utf8-cpp/source/utf8.h`)
+  * URL: http://utfcpp.sourceforge.net/
+  * Corresponding files: `src/lib/utf8-cpp/*`