After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 69795 - numtheory.c contains invalid character in message
numtheory.c contains invalid character in message
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Analytics
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2002-01-27 03:55 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Rose 2002-01-27 03:55:34 UTC
From plugins/numtheory/numtheory.c:232:

static char *help_nt_mu = {
	N_("@FUNCTION=NT_MU\n"
	   "@SYNTAX=NT_MU(n)\n"
	   "@DESCRIPTION="
	   "The NT_MU function (Möbius mu function) returns \n"
	   "0  if @n is divisible by the square of a prime .\n"
	   "Otherwise it returns: \n"
	   "-1 if @n has an odd  number of different prime factors .\n"
	   "1  if @n has an even number of different prime factors .\n"
	   "If @n=1 it returns 1\n"
	   "\n"
	   "@EXAMPLES=\n"
	   "@SEEALSO=NT_D, ITHPRIME, NT_PHI")
};


This message has an "ö" in it. This is unfortunate because this message
will break for every translation that doesn't use iso-8859-1. There can
only be one encoding of a po file, and thus msgid:s with iso-8859-1
characters and msgstr:s in another encoding don't match. The result is that
this message can't be translated.

There are two solutions:
1) Replace the ö with ASCII characters (you can always add a comment
immediately before the message that explains how "Möbius" really should be
written)
2) Make this C file UTF-8 and demand all translations to be in UTF-8. Then
you can use "ö" and "µ" and other non-ASCII characters in the messages
whenever you want to.
Comment 1 Jody Goldberg 2002-01-28 01:54:31 UTC
For 1.4 we'll use 'o'
for gnome2 we'll use utf8 and storethe correct character.
Comment 2 Christian Rose 2002-01-31 13:16:29 UTC
plugins/numtheory/numtheory.c in CVS HEAD still has a latin-1 "ö" in
it,  which breaks UTF-8 translations.
Comment 3 Jody Goldberg 2002-02-01 06:53:32 UTC
Fix committed to cvs.