[EMAIL PROTECTED] wrote:

> Modified: lyx-devel/trunk/src/lyx_main.C
> URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/lyx_main.C?rev=15955
>
==============================================================================
> --- lyx-devel/trunk/src/lyx_main.C (original)
> +++ lyx-devel/trunk/src/lyx_main.C Fri Nov 17 17:58:32 2006
> @@ -387,9 +387,11 @@
>  lyxerr[Debug::INFO] << "Deleting tmp dir " << package().temp_dir() <<
>  endl;
>  
>  if (!destroyDir(package().temp_dir())) {
> -             docstring const msg =
> -                     bformat(_("Unable to remove the temporary directory 
> %1$s"),
> -                     from_utf8(package().temp_dir()));
> +             // FIXME UNICODE: package().temp_dir() could in theory contain 
> utf8
> characters.
> +             // We cannot use from_utf8() here because this involves the use 
> of
> static data
> +             // that may have been destroyed already on Mac systems.
> +             docstring const msg = _("Unable to remove the temporary 
> directory") + "
> "
> +                     + package().temp_dir().c_str();
>  Alert::warning(_("Unable to remove temporary directory"), msg);


This fix will create extra translator work, and nobody will remmeber that
bformat should be used instead of your solution once the real problem is
fixed. If you use from_ascii instead of from_utf8 everything is OK. utf8
can be wrong as encoding for files anyway, so for now we require that files
are pure ascii.


Georg

Reply via email to