/usr/include/podofo/base/PdfLocale.h is in libpodofo-dev 0.9.4-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #ifndef PODOFO_PDFLOCALE_H
#define PODOFO_PDFLOCALE_H
#include <ios>
namespace PoDoFo {
/**
* The locale to use for PDF I/O . See PoDoFo::PdfLocaleImbue() .
*/
static const char PdfIOLocale[] = "C";
/**
* Imbue the passed stream with a locale that will be safe to do
* I/O of the low level PDF format with.
*
* PDF document structure I/O is done with the C++ standard library
* IOStreams code. By default, this will adapt to the current locale.
* That's not good at all when doing I/O of PDF data structures, which
* follow POSIX/english locale conventions irrespective of runtime locale.
* Make sure to to call this function on any stream you intend to use for
* PDF I/O. Avoid using this stream for anything that should be done in the
* regional locale.
*
* \warning This method may throw ePdfError_InvalidDeviceOperation
* if your STL does not support the locale string in PdfIOLocale .
*
* If you fail to call this on a stream you use for PDF I/O you will encounter
* problems like German and other European users getting numbers in the format
* "10110,4" or even "10.110,4" instead of "10110.4" .
*/
void PODOFO_API PdfLocaleImbue(std::ios_base&);
};
#endif
|