diff options
| author | Wim Van Sebroeck <wim@iguana.be> | 2007-05-11 19:03:13 +0000 | 
|---|---|---|
| committer | Wim Van Sebroeck <wim@iguana.be> | 2007-05-11 19:03:13 +0000 | 
| commit | 5c34202b8bf942da411b6599668a76b07449bbfd (patch) | |
| tree | 5719c361321eaddc8e4f1b0c8a7994f0e9a6fdd3 /drivers/char/consolemap.c | |
| parent | 0d4804b31f91cfbcff6d62af0bc09a893a1c8ae0 (diff) | |
| parent | 1f8a6b658a943b4f04a1fc7b3a420360202c86cd (diff) | |
Merge /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/char/consolemap.c')
| -rw-r--r-- | drivers/char/consolemap.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/consolemap.c b/drivers/char/consolemap.c index b99b7561260..fd40b959afd 100644 --- a/drivers/char/consolemap.c +++ b/drivers/char/consolemap.c @@ -626,10 +626,10 @@ conv_uni_to_pc(struct vc_data *conp, long ucs)  	/* Only 16-bit codes supported at this time */  	if (ucs > 0xffff) -		ucs = 0xfffd;		/* U+FFFD: REPLACEMENT CHARACTER */ -	else if (ucs < 0x20 || ucs >= 0xfffe) +		return -4;		/* Not found */ +	else if (ucs < 0x20)  		return -1;		/* Not a printable character */ -	else if (ucs == 0xfeff || (ucs >= 0x200a && ucs <= 0x200f)) +	else if (ucs == 0xfeff || (ucs >= 0x200b && ucs <= 0x200f))  		return -2;			/* Zero-width space */  	/*  	 * UNI_DIRECT_BASE indicates the start of the region in the User Zone  | 
