All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] jffs2: fix UTF-8 character in pr_info
@ 2015-04-28 20:54 Andrey Skvortsov
  2015-04-28 21:07   ` Richard Weinberger
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Skvortsov @ 2015-04-28 20:54 UTC (permalink / raw)
  To: David Woodhouse, linux-mtd, linux-kernel; +Cc: Andrey Skvortsov

Boot log contained string:
jffs2: version 2.2. \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.

non-ASCII characters are printed in HEX. 0xC2A9 is copyright sign in UTF-8.
This patch replace it with '(c)' to make boot log readable.

Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
---
 fs/jffs2/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c
index 3d76f28..763a3dc 100644
--- a/fs/jffs2/super.c
+++ b/fs/jffs2/super.c
@@ -382,7 +382,7 @@ static int __init init_jffs2_fs(void)
 #ifdef CONFIG_JFFS2_SUMMARY
 	       " (SUMMARY) "
 #endif
-	       " © 2001-2006 Red Hat, Inc.\n");
+	       " (c) 2001-2006 Red Hat, Inc.\n");
 
 	jffs2_inode_cachep = kmem_cache_create("jffs2_i",
 					     sizeof(struct jffs2_inode_info),
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] jffs2: fix UTF-8 character in pr_info
  2015-04-28 20:54 [PATCH] jffs2: fix UTF-8 character in pr_info Andrey Skvortsov
@ 2015-04-28 21:07   ` Richard Weinberger
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Weinberger @ 2015-04-28 21:07 UTC (permalink / raw)
  To: Andrey Skvortsov; +Cc: David Woodhouse, linux-mtd, LKML

On Tue, Apr 28, 2015 at 10:54 PM, Andrey Skvortsov
<andrej.skvortzov@gmail.com> wrote:
> Boot log contained string:
> jffs2: version 2.2. \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
>
> non-ASCII characters are printed in HEX. 0xC2A9 is copyright sign in UTF-8.
> This patch replace it with '(c)' to make boot log readable.
>
> Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>

FYI
http://lists.infradead.org/pipermail/linux-mtd/2013-April/046591.html

-- 
Thanks,
//richard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] jffs2: fix UTF-8 character in pr_info
@ 2015-04-28 21:07   ` Richard Weinberger
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Weinberger @ 2015-04-28 21:07 UTC (permalink / raw)
  To: Andrey Skvortsov; +Cc: linux-mtd, David Woodhouse, LKML

On Tue, Apr 28, 2015 at 10:54 PM, Andrey Skvortsov
<andrej.skvortzov@gmail.com> wrote:
> Boot log contained string:
> jffs2: version 2.2. \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
>
> non-ASCII characters are printed in HEX. 0xC2A9 is copyright sign in UTF-8.
> This patch replace it with '(c)' to make boot log readable.
>
> Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>

FYI
http://lists.infradead.org/pipermail/linux-mtd/2013-April/046591.html

-- 
Thanks,
//richard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] jffs2: fix UTF-8 character in pr_info
  2015-04-28 21:07   ` Richard Weinberger
  (?)
@ 2015-04-30 20:41   ` Andrey Skvortsov
  -1 siblings, 0 replies; 4+ messages in thread
From: Andrey Skvortsov @ 2015-04-30 20:41 UTC (permalink / raw)
  To: Richard Weinberger; +Cc: linux-mtd, LKML

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

On 28 Apr, Richard Weinberger wrote:
> On Tue, Apr 28, 2015 at 10:54 PM, Andrey Skvortsov
> <andrej.skvortzov@gmail.com> wrote:
> > Boot log contained string:
> > jffs2: version 2.2. \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
> >
> > non-ASCII characters are printed in HEX. 0xC2A9 is copyright sign in UTF-8.
> > This patch replace it with '(c)' to make boot log readable.
> >
> > Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
> 
> FYI
> http://lists.infradead.org/pipermail/linux-mtd/2013-April/046591.html

Richard,
thank you for the link.

My problem was actually missing utf-8 locale on the embedded board.
Now dmesg prints this string correct. 

-- 
Best regards,
Andrey Skvortsov

Secure e-mail with gnupg: See http://www.gnupg.org/
PGP Key ID: 0x57A3AEAD



[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-30 20:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-28 20:54 [PATCH] jffs2: fix UTF-8 character in pr_info Andrey Skvortsov
2015-04-28 21:07 ` Richard Weinberger
2015-04-28 21:07   ` Richard Weinberger
2015-04-30 20:41   ` Andrey Skvortsov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.