View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000615 | luatex | luatex bug | public | 2011-04-28 21:03 | 2011-05-10 06:56 |
| Reporter | phi | Assigned To | Taco | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Core 2 Duo | OS | OS X | OS Version | 10.6.7 |
| Product Version | 0.66.0 | ||||
| Fixed in Version | 0.70.0 | ||||
| Summary | 0000615: LuaTeX writes recorder file to current instead of output directory | ||||
| Description | Currently LuaTeX places the recorder file in the current directory instead of the output directory. The attached patch fixes this. | ||||
| Tags | No tags attached. | ||||
|
|
recorder-dir.patch (1,129 bytes)
Index: source/texk/web2c/luatexdir/tex/texfileio.w
===================================================================
--- source/texk/web2c/luatexdir/tex/texfileio.w (revision 4219)
+++ source/texk/web2c/luatexdir/tex/texfileio.w (working copy)
@@ -784,7 +784,17 @@
@c
unsigned char *texmf_log_name; /* full name of the log file */
+static void set_recorder_filename(char *filename) {
+ if (output_directory) {
+ filename = concat3(output_directory, DIR_SEP_STRING, filename);
+ recorder_change_filename(filename);
+ free(filename);
+ } else {
+ recorder_change_filename(filename);
+ }
+}
+
@ The |open_log_file| routine is used to open the transcript file and to help
it catch up to what has previously been printed on the terminal.
@@ -799,7 +809,7 @@
if (job_name == 0)
job_name = getjobname(maketexstring("texput")); /* TODO */
fn = pack_job_name(".fls");
- recorder_change_filename(fn);
+ set_recorder_filename(fn);
fn = pack_job_name(".log");
while (!lua_a_open_out(&log_file, fn, 0)) {
/* Try to get a different log file name */
|
|
|
Patch applied, thanks a lot. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-04-28 21:03 | phi | New Issue | |
| 2011-04-28 21:03 | phi | File Added: recorder-dir.patch | |
| 2011-04-30 07:34 | Taco | Note Added: 0000829 | |
| 2011-04-30 07:34 | Taco | Status | new => resolved |
| 2011-04-30 07:34 | Taco | Resolution | open => fixed |
| 2011-04-30 07:34 | Taco | Assigned To | => Taco |
| 2011-05-10 06:56 | Taco | Fixed in Version | => 0.70.0 |
| 2011-05-10 06:56 | Taco | Status | resolved => closed |