#205: Repair the TracNav bar
------------------------+---------------------------------------------------
Reporter: levill_r | Owner: Olena Team
Type: defect | Status: new
Priority: minor | Milestone:
Component: Trac | Version: 1.0
Keywords: system web |
------------------------+---------------------------------------------------
Since the update of Trac, many Wiki pages using the !TracNav plug-in won't
display the !TracNav bar (menu on the right of some pages), and show this
error instead :
{{{
Error: Failed to load processor TracNav
No macro or processor named 'TracNav' found
}}}
The curious thing is, the !TracNav bar is working ''sometimes''!!
To see this in action, try reloading a page several times (e.g.
CodingStyle): sometimes you'll see the bar, other times you'll get the
error.
I assume other Tracs ([https://trac.lrde.org/vaucanson/ Vaucanson's],
[https://trac.lrde.org/transformers/ Transfomers'], etc.) face the same
problem; we should discuss this issue with their maintainers. Therefore I
(Roland) am cc'ing this ticket to the `projects` mailing list as well.
--
Ticket URL: <https://trac.lrde.org/olena/ticket/205>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image processing library.
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Nolimips, a MIPS simulator with infinitely many registers".
The branch master has been updated
via 0703bb7c2526372c01f09e92709c768a961a51b6 (commit)
from 9c67b2b7ce8c81850145adb0bb1065e9556b210a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
0703bb7 Do not use locale in misc::escape.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
src/misc/escape.hh | 24 +++++++++++++++++++-----
2 files changed, 26 insertions(+), 5 deletions(-)
hooks/post-receive
--
Nolimips, a MIPS simulator with infinitely many registers
* src/misc/escape.hh (operator<<(std::ostream&, const escape&)):
Here.
---
ChangeLog | 7 +++++++
src/misc/escape.hh | 24 +++++++++++++++++++-----
2 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 448a49f..ca9dfda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-23 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Do not use locale in misc::escape.
+
+ * src/misc/escape.hh (operator<<(std::ostream&, const escape&)):
+ Here.
+
2012-05-22 Roland Levillain <roland(a)lrde.epita.fr>
Fix the handling of `.half' assembler directives.
diff --git a/src/misc/escape.hh b/src/misc/escape.hh
index cfa61f2..5ca2ffb 100644
--- a/src/misc/escape.hh
+++ b/src/misc/escape.hh
@@ -1,7 +1,7 @@
//
// escape.hh: escaping special characters for output
-// Copyright (C) 2003, 2004 Akim Demaille <akim(a)epita.fr> and
-// Benoit Perrot <benoit(a)lrde.epita.fr>
+// Copyright (C) 2003, 2004, 2012 Akim Demaille <akim(a)epita.fr> and
+// Benoit Perrot <benoit(a)lrde.epita.fr>
//
// This is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -24,7 +24,6 @@
# include <iostream>
# include <string>
# include <cctype>
-# include <locale>
class escape
{
@@ -39,7 +38,22 @@ public:
inline std::ostream&
operator<<(std::ostream& o, const escape& e)
{
- static std::locale locale ("");
+ /* For some reason, when we use std::locale on Mac OS X, the
+ following exception may be thrown:
+
+ terminate called after throwing an instance of 'std::runtime_error'
+ what(): locale::facet::_S_create_c_locale name not valid
+
+ A workaround is to unset the environment variable `LANG' prior to
+ using std::locale, but this is cumbersome.
+
+ So we use the C locale-agnostic version of isprint() from header
+ `cctype', instead of C++ isprint() from header `locale' taking a
+ locale as second argument.
+
+ See also
+ http://stackoverflow.com/questions/1745045/stdlocale-breakage-on-macos-10-6…
+ on this topic. */
std::ios_base::fmtflags flags = o.flags (std::ios_base::hex);
for (std::string::const_iterator p = e.s_.begin (); p != e.s_.end (); ++p)
switch (*p)
@@ -54,7 +68,7 @@ operator<<(std::ostream& o, const escape& e)
case '\\': o << "\\\\"; break;
case '\"': o << "\\\""; break;
default:
- if (std::isprint (*p, locale))
+ if (std::isprint (*p))
o << *p;
else
o << "\\x"
--
1.7.2.5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Nolimips, a MIPS simulator with infinitely many registers".
The branch master has been updated
via 9c67b2b7ce8c81850145adb0bb1065e9556b210a (commit)
via 4a1885dc570285912eba128dde6403c67dd80424 (commit)
via 990adfef6501e7ffd92dae4a915b142932db9268 (commit)
from b1ba162c37f097ab33e1421ed5fd69155ccf9a3e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
9c67b2b Fix the handling of `.half' assembler directives.
4a1885d Fix the comparison of produced and expected tests outputs.
990adfe Get rid of mutable references, rejected by g++ since version 4.6.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 30 ++++++++++++++++++++++++++++++
src/inst/program_builder.hxx | 4 ++--
src/task/boolean_task.hh | 6 +++---
src/task/int_task.hh | 6 +++---
tests/good/Makefile.am | 3 ++-
tests/good/print-half.ref | 1 +
tests/good/print-half.s | 22 ++++++++++++++++++++++
tests/nolimips-check | 4 ++--
8 files changed, 65 insertions(+), 11 deletions(-)
create mode 100644 tests/good/print-half.ref
create mode 100644 tests/good/print-half.s
hooks/post-receive
--
Nolimips, a MIPS simulator with infinitely many registers
* tests/nolimips-check: Look for reference outputs in the source
directory, not the build directory.
Use the unified diff format.
---
ChangeLog | 8 ++++++++
tests/nolimips-check | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 80e75ca..2c122cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2012-05-22 Roland Levillain <roland(a)lrde.epita.fr>
+ Fix the comparison of produced and expected tests outputs.
+
+ * tests/nolimips-check: Look for reference outputs in the source
+ directory, not the build directory.
+ Use the unified diff format.
+
+2012-05-22 Roland Levillain <roland(a)lrde.epita.fr>
+
Get rid of mutable references, rejected by g++ since version 4.6.
* src/task/boolean_task.hh (task::BooleanTask::flag_)
diff --git a/tests/nolimips-check b/tests/nolimips-check
index e20c2fb..24a0e71 100755
--- a/tests/nolimips-check
+++ b/tests/nolimips-check
@@ -24,7 +24,7 @@ SRCDIR=$top_srcdir/tests/$MODULE
for STDASM in $SRCDIR/*.s; do
ASM=`basename $STDASM`
- STDREF=$BUILDDIR/`echo $ASM | sed 's/\.s$/\.ref/g'`
+ STDREF=$SRCDIR/`echo $ASM | sed 's/\.s$/\.ref/g'`
STDOUT=$BUILDDIR/`echo $ASM | sed 's/\.s$/\.out/g'`
STDIN=$SRCDIR/`echo $ASM | sed 's/\.s$/\.in/g'`
if test ! -f $STDIN; then
@@ -39,7 +39,7 @@ for STDASM in $SRCDIR/*.s; do
fail
else
if test -f $STDREF; then
- diff $STDOUT $STDREF
+ diff -u $STDOUT $STDREF
if test $? -ne 0; then
fail
fi
--
1.7.2.5
* src/task/boolean_task.hh (task::BooleanTask::flag_)
* src/task/int_task.hh (task::IntTask::var_):
Here.
Reported by Theophile Ranquet <theophile.ranquet(a)epita.fr>.
---
ChangeLog | 9 +++++++++
src/task/boolean_task.hh | 6 +++---
src/task/int_task.hh | 6 +++---
3 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 305b7a8..80e75ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-05-22 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Get rid of mutable references, rejected by g++ since version 4.6.
+
+ * src/task/boolean_task.hh (task::BooleanTask::flag_)
+ * src/task/int_task.hh (task::IntTask::var_):
+ Here.
+ Reported by Theophile Ranquet <theophile.ranquet(a)epita.fr>.
+
2012-03-19 Roland Levillain <roland(a)lrde.epita.fr>
Update the address of the FSF in the text of the GNU FDL.
diff --git a/src/task/boolean_task.hh b/src/task/boolean_task.hh
index b86d0db..1afcfe8 100644
--- a/src/task/boolean_task.hh
+++ b/src/task/boolean_task.hh
@@ -1,7 +1,7 @@
//
// This file is part of Nolimips, a MIPS simulator with unlimited registers
-// Copyright (C) 2004, 2006 Akim Demaille <akim(a)epita.fr> and
-// Benoit Perrot <benoit(a)lrde.epita.fr>
+// Copyright (C) 2004, 2006, 2012 Akim Demaille <akim(a)epita.fr> and
+// Benoit Perrot <benoit(a)lrde.epita.fr>
//
// Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -36,7 +36,7 @@ namespace task
virtual void execute() const;
private:
- mutable bool &flag_;
+ bool &flag_;
};
} // namespace task
diff --git a/src/task/int_task.hh b/src/task/int_task.hh
index 98e81ae..b8b6506 100644
--- a/src/task/int_task.hh
+++ b/src/task/int_task.hh
@@ -1,7 +1,7 @@
//
// This file is part of Nolimips, a MIPS simulator with unlimited registers
-// Copyright (C) 2004, 2006 Akim Demaille <akim(a)epita.fr> and
-// Benoit Perrot <benoit(a)lrde.epita.fr>
+// Copyright (C) 2004, 2006, 2012 Akim Demaille <akim(a)epita.fr> and
+// Benoit Perrot <benoit(a)lrde.epita.fr>
//
// Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -40,7 +40,7 @@ namespace task
private:
mutable int value_;
- mutable int &var_;
+ int &var_;
int min_;
int max_;
};
--
1.7.2.5