boost/boost-1.48.0-fix-non-utf8-files.patch
Denis Arnaud 3957a04980 Upgrade to Boost-1.48.0, adding two new header-only components
(Container and Move) and a new library (Locale).
Resolves: #754865
Added a patch with a manual page for the bjam executable.
Added a patch to fix the non-UTF8-encoded example source file.
Re-worked a little bit the example section, so as to fix the
DOS-formatted and the ISO-8859-encoded files. The examples
sub-package itself has been renamed into examples-devel.
2011-11-20 01:30:18 +01:00

23 lines
932 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff --git a/libs/units/example/autoprefixes.cpp b/libs/units/example/autoprefixes.cpp
index 8b2bc43..d04f2fe 100644
--- a/libs/units/example/autoprefixes.cpp
+++ b/libs/units/example/autoprefixes.cpp
@@ -67,7 +67,7 @@ struct thing_base_unit : boost::units::base_unit<thing_base_unit, boost::units::
struct euro_base_unit : boost::units::base_unit<euro_base_unit, boost::units::dimensionless_type, 5>
{
static const char* name() { return("EUR"); }
- static const char* symbol() { return("€"); }
+ static const char* symbol() { return("€"); }
};
int main()
@@ -140,7 +140,7 @@ int main()
quantity<euro_base_unit::unit_type> ce = 2048. * euro_base_unit::unit_type();
cout << name_format << engineering_prefix << ce << endl; // 2.048 kiloEUR
- cout << symbol_format << engineering_prefix << ce << endl; // 2.048 k€
+ cout << symbol_format << engineering_prefix << ce << endl; // 2.048 kâ¬
return 0;