summaryrefslogtreecommitdiff
path: root/l10ntools/source/common.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-10 10:44:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-10 10:45:58 +0100
commit718ce84a06f18a3000d23287a2238a5a5299627a (patch)
tree5e445f530282a323b9aa75b78376209ecc3ab941 /l10ntools/source/common.hxx
parent71530f9cb01ade01505f4a5418fed28af76c8429 (diff)
Various more l10ntools clean up
"localize" is now directly a C++ program w/o wrapper script. Also, its command line has changed slightly, taking the source root as explicit argument (instead of implicitly as cwd).
Diffstat (limited to 'l10ntools/source/common.hxx')
-rw-r--r--l10ntools/source/common.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/l10ntools/source/common.hxx b/l10ntools/source/common.hxx
index 89808f7d2ca0..fb11844e6b1b 100644
--- a/l10ntools/source/common.hxx
+++ b/l10ntools/source/common.hxx
@@ -64,10 +64,16 @@ inline rtl::OString pathnameToken(char const * pathname, char const * root) {
std::cerr << "Error: Cannot convert input pathname to UTF-16\n";
std::exit(EXIT_FAILURE);
}
+ if (osl::FileBase::getFileURLFromSystemPath(full, full)
+ != osl::FileBase::E_None)
+ {
+ std::cerr << "Error: Cannot convert input pathname to URL\n";
+ std::exit(EXIT_FAILURE);
+ }
if (osl::FileBase::getAbsoluteFileURL(cwd, full, full)
!= osl::FileBase::E_None)
{
- std::cerr << "Error: Cannot convert input pathname to absolute URL\n";
+ std::cerr << "Error: Cannot convert input URL to absolute URL\n";
std::exit(EXIT_FAILURE);
}
if (root == 0) {