Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
09-18-2012, 04:11 PM
|
#211
|
|
Senior Member
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 3,651
|
Quote:
Originally Posted by BlackRider
WTF???
|
My thoughts exactly. If you don't install the games, then you deprive yourself of the login quotes.
|
|
|
|
09-18-2012, 11:43 PM
|
#212
|
|
Senior Member
Registered: Nov 2002
Location: Birmingham UK
Distribution: Mint/openSuSE/Manjaro
Posts: 1,694
Rep:
|
If you don't install the games, then you deprive yourself of the login quotes.
Precisely.
|
|
|
|
09-19-2012, 03:03 PM
|
#214
|
|
Member
Registered: Apr 2012
Location: Russia
Distribution: Slackware
Posts: 67
Rep:
|
Hi!
I have installed Bash 4.2.24 and Slackware 14RC4. I have a problem: when I type in english a unknown command, all good:
Code:
$ my_command
bash: my_command: command not found
But if I make an error and type the command in russsian, I get:
Code:
# ьн_сщььфтв
bash:$'\321\214\320\275_\321\201\321\211\321\214\321\214\321\204\321\202\320\262': command not found
I can fix it with a patch:
Code:
*** ./execute_cmd.c.orig 2012-09-19 22:36:49.308655767 +0400
--- ./execute_cmd.c 2012-09-19 22:38:35.043662058 +0400
***************
*** 4731,4739 ****
hookf = find_function (NOTFOUND_HOOK);
if (hookf == 0)
{
- /* Make sure filenames are displayed using printable characters */
- if (ansic_shouldquote (pathname))
- pathname = ansic_quote (pathname, 0, NULL);
internal_error (_("%s: command not found"), pathname);
exit (EX_NOTFOUND); /* Posix.2 says the exit status is 127 */
}
--- 4731,4736 ----
Or with /etc/.bashrc:
Code:
echo 'function command_not_found_handle {
echo "bash: $1 : command not found"
}'
I have this problem also in bash-4.2.037, upgraded in RC2.
Thanks and sorry for my english.
Last edited by yars; 10-26-2012 at 12:25 PM.
Reason: Please, see the post #218 in this thread.
|
|
|
1 members found this post helpful.
|
09-21-2012, 03:37 PM
|
#215
|
|
Member
Registered: Apr 2012
Location: Russia
Distribution: Slackware
Posts: 67
Rep:
|
I will add that there an another patch that solves these problem: ROSA Lab
Code:
--- bash-4.2/lib/sh/strtrans.c.orig 2012-08-06 17:37:02.478363913 +0400
+++ bash-4.2/lib/sh/strtrans.c 2012-08-06 17:45:29.647803781 +0400
@@ -212,6 +212,11 @@
if (str == 0 || *str == 0)
return ((char *)0);
+#if defined (HANDLE_MULTIBYTE)
+ wchar_t wcc;
+ size_t wc_len;
+#endif
+
l = strlen (str);
rsize = 4 * l + 4;
r = ret = (char *)xmalloc (rsize);
@@ -222,6 +227,9 @@
for (s = str, l = 0; *s; s++)
{
c = *s;
+#if defined (HANDLE_MULTIBYTE)
+ wc_len = 1;
+#endif
l = 1; /* 1 == add backslash; 0 == no backslash */
switch (c)
{
@@ -243,7 +251,12 @@
case '\'':
break;
default:
- if (ISPRINT (c) == 0)
+#if defined (HANDLE_MULTIBYTE)
+ wc_len = mbrtowc(&wcc, s, MB_CUR_MAX, NULL);
+ if ((int)wc_len < 0 || iswprint(wcc) == 0)
+#else
+ if (ISPRINT (c) == 0)
+#endif
{
*r++ = '\\';
*r++ = TOCHAR ((c >> 6) & 07);
@@ -256,7 +269,12 @@
}
if (l)
*r++ = '\\';
+#if defined (HANDLE_MULTIBYTE)
+ for (; (int)wc_len > 0; wc_len--, c = wc_len ? *++s : c)
+ *r++ = c;
+#else
*r++ = c;
+#endif
}
*r++ = '\'';
@@ -277,10 +295,34 @@
if (string == 0)
return 0;
+#if defined (HANDLE_MULTIBYTE)
+ const wchar_t *wcs;
+ wchar_t wcc;
+
+ wchar_t *wcstr = NULL;
+ size_t wclen, slen;
+
+
+ slen = mbstowcs (wcstr, string, 0);
+
+ if (slen == -1)
+ slen = 0;
+ wcstr = (wchar_t *)xmalloc (sizeof (wchar_t) * (slen + 1));
+ mbstowcs (wcstr, string, slen + 1);
+
+
+ for (wcs = wcstr; wcc = *wcs; wcs++)
+ if (iswprint(wcc) == 0)
+ {
+ free (wcstr);
+ return 1;
+ }
+ free (wcstr);
+#else
for (s = string; c = *s; s++)
if (ISPRINT (c) == 0)
return 1;
-
+#endif
return 0;
}
This patch is wrote a more professional people, than I.
Last edited by yars; 09-21-2012 at 03:46 PM.
|
|
|
1 members found this post helpful.
|
09-22-2012, 02:24 AM
|
#216
|
|
Member
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 381
Rep:
|
Hi Slackware team.
I only want to ask about an error which I had in 13.37 on Lenovo server hardware.
Here is the original thread:
http://www.linuxquestions.org/questi...3-37-a-935355/
Here is the short log about the problem.
Quote:
Adaptec aacraid driver 1.1-5[26400]-ms
aacraid 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
aacraid 0000:04:00.0: setting latecy timer to 64
AAC0: adapter kernel panic'd ffffffff.
aacraid 0000:04:00.0: PCI INT A disabled
aic94xx: Adaptec aic94xx SAS/SATA driver version 1.0.3 loaded
|
Will this problem be solved in the Slackware14?
Thanks for all your work on Slackware. Slackware is the greatest OS. 
Last edited by hua; 09-22-2012 at 02:25 AM.
|
|
|
|
09-22-2012, 01:31 PM
|
#217
|
|
LQ Newbie
Registered: Apr 2010
Distribution: Slackware64 13.0, Slackware 11.0
Posts: 6
Rep:
|
How about bumping the version of taglib to 1.8? I'm running my own build of v1.8 and I don't have any issues.
|
|
|
|
09-29-2012, 11:41 AM
|
#218
|
|
Senior Member
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,039
Rep: 
|
Quote:
Originally Posted by yars
Hi!
I have installed Bash 4.2.24 and Slackware 14RC4. I have a problem: when I type in english a unknown command, all good:
Code:
$ my_command
bash: my_command: ccommand not found
|
That's not the actual error right? It's just a typo from posting in this thread. (Cause I built the package myself and it's not showing a message like that.)
Last edited by konsolebox; 09-29-2012 at 08:49 PM.
Reason: Grammer :)
|
|
|
|
09-29-2012, 01:01 PM
|
#219
|
|
Member
Registered: Apr 2012
Location: Russia
Distribution: Slackware
Posts: 67
Rep:
|
Quote:
Originally Posted by konsolebox
That not the actually error right? It's just a typo from posting in this thread. (Cause I built the package myself and it's not showing a message like that.)
|
Yes, this is a typo. But I shown a example when I type the unknown command in russian instead english:
Code:
# ьн_сщььфтв
bash:$'\321\214\320\275_\321\201\321\211\321\214\321\214\321\204\321\202\320\262': command not found
This is a bug with the quoting a UTF-8 strings. These patches can solves this problem, but it is not correct from the point of view of experts, that I am not. This bug located in a bash-4.2/lib/sh/strtrans.c file.
The patch on execute_cmd.c just revert behavior of the Bash like bash-4.1.
I would love to do a proper patch, but unfortunately I do not have enough for that knowledge.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|