Comments (7)
Hello,
I've just activated the appveyor CI solution to investiguate windows issues. Say tuned ;)
from po4a.
It does not seem to be directly linked to windows, as all our tests pass on Windows too. I think we need another test for the split mode.
from po4a.
I have tested this issue thoroughly and found out what's wrong.
It is msggrep that doesn't output anything, because source file parameter of -N is enclosed in quotes. So output temp file is not created. Here is where the script ends (using --debug):
po4a::transtractor::process: Chdir . (calldir)
(4951 entries)
msggrep.exe -N 'c:/Data/Projects/doc-prevod/original/TXT/usr_22.txt' -o C:\temp\po4adulK.pot C:\temp\po4aOECy.pot
diff: C:\temp\po4adulK.pot: No such file or directory
Can't unlink C:\temp\po4adulK.pot: No such file or directory.
So I have removed the quotes from the line 1345 of po4a:
my $cmd = "msggrep".$Config{_exe}." -N '$master' -o ".
to become:
my $cmd = "msggrep".$Config{_exe}." -N $master -o ".
After that everything works fine.
It is interesting to note that on Linux the original code with quotes around $master work OK. I haven't tried yet to remove them and see if it will break.
from po4a.
I forgot to mention, the line number is from the version 0.55.
In the current one (0.55-alpha) it is the line 1292.
from po4a.
Does it work if you use some double quotes intead of single quotes?
my $cmd = "msggrep".$Config{_exe}." -N \"$master\" -o ".
These quotes are mandatory in the case where there is a space in the name of the master file. If it does not work with double quote for you, we'll gonna start the external process another way.
from po4a.
Yes, it also works with escaped double quotes.
Here's the excerpt of debug output:
.
.
.
po4a::transtractor::process: Call read(c:/Data/Projects/doc-prevod/original/TXT/usr_03.txt)
po4a::transtractor::process: Done read(c:/Data/Projects/doc-prevod/original/TXT/usr_03.txt)
po4a::transtractor::process: Call parse()
po4a::transtractor::process: Done parse()
po4a::transtractor::process: Chdir . (calldir)
(453 entries)
msggrep.exe -N "c:/Data/Projects/doc-prevod/original/TXT/usr_01.txt" -o C:\temp\po4a5Fin.pot C:\temp\po4aIMOF.pot
msggrep.exe -N "c:/Data/Projects/doc-prevod/original/TXT/usr_toc.txt" -o C:\temp\po4aLIeT.pot C:\temp\po4aIMOF.pot
msggrep.exe -N "c:/Data/Projects/doc-prevod/original/TXT/help.txt" -o C:\temp\po4aRxEC.pot C:\temp\po4aIMOF.pot
msggrep.exe -N "c:/Data/Projects/doc-prevod/original/TXT/usr_02.txt" -o C:\temp\po4aTJD_.pot C:\temp\po4aIMOF.pot
msggrep.exe -N "c:/Data/Projects/doc-prevod/original/TXT/usr_03.txt" -o C:\temp\po4a3BP9.pot C:\temp\po4aIMOF.pot
.
.
.
Everything finishes nice.
from po4a.
Thanks a lot, I just commited what I believe to be a fix.
from po4a.
Related Issues (20)
- \input should not be parsed when it's part of a verbatim environment (po4a::tex: Cannot find 'main.tex' with kpsewhich)
- Use of uninitialized values when trying to translate the darktable documentation HOT 5
- Build failure with `gettext 0.22`
- Can po4a handle the Doxygen's Source Files, *.doc? HOT 2
- proposal: use xmlcatalog to find docbook.xsl
- po file generated with an extension ending by a dot at middle line height HOT 2
- Ambiguity in license statement HOT 5
- Temp pot file not created HOT 10
- Yaml module fails to generate array like string HOT 6
- .po file language translation to another language tutorial or howto?
- Feature request for AsciiDoc: Translate tables by line HOT 3
- Creating an empty .po file causes non-ASCII characters to be silently discarded from msgids HOT 6
- Broken parsing of files with Unicode BOM HOT 1
- Asciidoc: Problem with + in list items HOT 8
- po4a modifes the msgid from man page
- 0.69: bulid is failing HOT 3
- AsciiDoc: numbered list or TIP box text starting with bold markup becomes no-wrap
- PO4A:LATEX ifthenelse puts everything in one message
- Pod.pm: probably outdated documentation on parameters
- AsciiDoc: Sentences joined by a double space in a para - sentence per line HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from po4a.