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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-18-2012, 05:11 PM
|
#211
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
|
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-19-2012, 12:43 AM
|
#212
|
Senior Member
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736
Rep: 
|
If you don't install the games, then you deprive yourself of the login quotes.
Precisely.
|
|
|
09-19-2012, 04:03 PM
|
#214
|
Member
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 272
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 01:25 PM.
Reason: Please, see the post #218 in this thread.
|
|
1 members found this post helpful.
|
09-21-2012, 04:37 PM
|
#215
|
Member
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 272
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 04:46 PM.
|
|
1 members found this post helpful.
|
09-22-2012, 03:24 AM
|
#216
|
Member
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 463
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 03:25 AM.
|
|
|
09-22-2012, 02: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, 12:41 PM
|
#218
|
Senior Member
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
|
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 09:49 PM.
Reason: Grammer :)
|
|
|
09-29-2012, 02:01 PM
|
#219
|
Member
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 272
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.
|
|
|
10-27-2013, 10:11 AM
|
#220
|
Member
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946
|
xine-ui 0.99.7
Quote:
Originally Posted by willysr
yes, the current xine-ui is now 5 years old and it lack several features that are present in 0.99.7
however, strange thing is that i couldn't find any bug report about this problem in other distributions. It seems that their package is fine
|
I've finally found a patch over at BLFS which solves the pesky Open file issue:
http://www.linuxfromscratch.org/blfs...a/xine-ui.html
http://www.linuxfromscratch.org/patc...am_fix-1.patch
This patch also works on Slackware 14.1 RC2.
Mats
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 01:04 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
|
|